public class SetTenantStatementBuilder.SetTenantStatement extends AbstractQueryPlusStatementBuilder.AbstractStatement
| Modifier and Type | Field and Description |
|---|---|
protected String |
f_sTenant
The name of the tenant to set as the current tenant.
|
| Constructor and Description |
|---|
SetTenantStatement(String sTenant)
Construct a SetTenantStatement that will set the
current tenant used by the QueryPlus session to the
specified tenant.
|
| Modifier and Type | Method and Description |
|---|---|
StatementResult |
execute(ExecutionContext ctx)
Set the current tenant to be used by the CohQL session.
|
getExecutionConfirmation, sanityCheck, showPlanclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisManagingTimeoutprotected final String f_sTenant
public SetTenantStatement(String sTenant)
sTenant - the name of the tenant to set as the
current tenantpublic StatementResult execute(ExecutionContext ctx)
ctx - the context to useStatementResult.NULL_RESULT