Class UpdateStatementBuilder
- java.lang.Object
-
- com.tangosol.coherence.dslquery.statement.AbstractStatementBuilder<UpdateStatementBuilder.UpdateStatement>
-
- com.tangosol.coherence.dslquery.statement.UpdateStatementBuilder
-
- All Implemented Interfaces:
StatementBuilder<UpdateStatementBuilder.UpdateStatement>
public class UpdateStatementBuilder extends AbstractStatementBuilder<UpdateStatementBuilder.UpdateStatement>
An implementation of aStatementBuilderthat parses a CohQL term tree to produce an instance of aUpdateStatementBuilder.UpdateStatement.- Since:
- Coherence 12.2.1
- Author:
- jk 2013.12.17
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdateStatementBuilder.UpdateStatementImplementation of the CohQL "UPDATE" command.
-
Field Summary
Fields Modifier and Type Field Description static UpdateStatementBuilderINSTANCEAn instance of a UpdateStatementBuilder.
-
Constructor Summary
Constructors Constructor Description UpdateStatementBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.tangosol.coherence.dslquery.internal.UpdateSetListMakercreateUpdateSetListMaker(ExecutionContext context, List listBindVars, ParameterResolver namedBindVars)Create an instance of anUpdateSetListMaker.StringgetDescription()Return a description of the CohQL command suitable for displaying as help text.StringgetSyntax()Return the syntax of the CohQL command.UpdateStatementBuilder.UpdateStatementrealize(ExecutionContext ctx, NodeTerm term, List listBindVars, ParameterResolver namedBindVars)Realizes an implementation of aStatementthat can be executed to perform a specific CohQL command.-
Methods inherited from class com.tangosol.coherence.dslquery.statement.AbstractStatementBuilder
atomicStringValueOf, ensureFilter, getAlias, getCacheName, getExtractor, getFields, getFile, getGroupBy, getInsertKey, getInsertValue, getIsDistinct, getSetList, getWhere, headsMatch
-
-
-
-
Field Detail
-
INSTANCE
public static final UpdateStatementBuilder INSTANCE
An instance of a UpdateStatementBuilder.
-
-
Method Detail
-
realize
public UpdateStatementBuilder.UpdateStatement realize(ExecutionContext ctx, NodeTerm term, List listBindVars, ParameterResolver namedBindVars)
Description copied from interface:StatementBuilderRealizes an implementation of aStatementthat can be executed to perform a specific CohQL command.- Parameters:
ctx- theExecutionContextto use to create commandsterm- the parsedNodeTermused to create the relevant StatementlistBindVars- the indexed bind variablesnamedBindVars- the named bind variables- Returns:
- an executable instance of a Statement
-
getSyntax
public String getSyntax()
Description copied from interface:StatementBuilderReturn the syntax of the CohQL command.- Returns:
- the syntax of the CohQL command
-
getDescription
public String getDescription()
Description copied from interface:StatementBuilderReturn a description of the CohQL command suitable for displaying as help text.- Returns:
- a description of the CohQL command suitable for displaying as help text
-
createUpdateSetListMaker
protected com.tangosol.coherence.dslquery.internal.UpdateSetListMaker createUpdateSetListMaker(ExecutionContext context, List listBindVars, ParameterResolver namedBindVars)
Create an instance of anUpdateSetListMaker.- Parameters:
context- theExecutionContextto use to configure the UpdateSetListMakerlistBindVars- the indexed bind variables that the SelectListMaker should usenamedBindVars- the named bind variables that the SelectListMaker should use- Returns:
- an UpdateSetListMaker
-
-