Class SetTenantStatementBuilder.SetTenantStatement
- java.lang.Object
-
- com.tangosol.coherence.dslquery.queryplus.AbstractQueryPlusStatementBuilder.AbstractStatement
-
- com.tangosol.coherence.dslquery.queryplus.SetTenantStatementBuilder.SetTenantStatement
-
- All Implemented Interfaces:
Statement
- Enclosing class:
- SetTenantStatementBuilder
public class SetTenantStatementBuilder.SetTenantStatement extends AbstractQueryPlusStatementBuilder.AbstractStatement
The implementation of the QueryPlus "ALTER SESSION SET DOMAIN PARTITION" statement.
-
-
Constructor Summary
Constructors Constructor Description SetTenantStatement(String sTenant)
Construct a SetTenantStatement that will set the current tenant used by the QueryPlus session to the specified tenant.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatementResult
execute(ExecutionContext ctx)
Set the current tenant to be used by the CohQL session.-
Methods inherited from class com.tangosol.coherence.dslquery.queryplus.AbstractQueryPlusStatementBuilder.AbstractStatement
getExecutionConfirmation, sanityCheck, showPlan
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.tangosol.coherence.dslquery.Statement
executeAsync, isManagingTimeout
-
-
-
-
Field Detail
-
f_sTenant
protected final String f_sTenant
The name of the tenant to set as the current tenant.
-
-
Constructor Detail
-
SetTenantStatement
public SetTenantStatement(String sTenant)
Construct a SetTenantStatement that will set the current tenant used by the QueryPlus session to the specified tenant.- Parameters:
sTenant
- the name of the tenant to set as the current tenant
-
-
Method Detail
-
execute
public StatementResult execute(ExecutionContext ctx)
Set the current tenant to be used by the CohQL session.- Parameters:
ctx
- thecontext
to use- Returns:
- Always returns
StatementResult.NULL_RESULT
-
-