public abstract class AbstractSelectExpressionStateObjectBuilder extends AbstractScalarExpressionStateObjectBuilder<ISelectExpressionStateObjectBuilder> implements ISelectExpressionStateObjectBuilder
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<StateObject> |
stateObjectList
The list of select items, which were added by invoking
append(). |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSelectExpressionStateObjectBuilder(SelectClauseStateObject parent)
Creates a new
AbstractSelectExpressionStateObjectBuilder. |
| Modifier and Type | Method and Description |
|---|---|
ISelectExpressionStateObjectBuilder |
append()
Appends the previously created select item and starts a new stack to create a new select item.
|
void |
commit()
Pushes the changes created by this builder to the state object.
|
protected SelectClauseStateObject |
getParent()
Returns the parent of the expression to build, which is only required when a JPQL fragment
needs to be parsed.
|
ISelectExpressionStateObjectBuilder |
new_(java.lang.String className,
ISelectExpressionStateObjectBuilder... parameters)
Creates the expression
NEW constructor_name(identification_variable). |
ISelectExpressionStateObjectBuilder |
object(java.lang.String identificationVariable)
Creates the expression
OBJECT(identification_variable). |
ISelectExpressionStateObjectBuilder |
resultVariable(java.lang.String resultVariable)
Defines the current state object with the given result variable.
|
protected void |
resultVariable(java.lang.String resultVariable,
boolean as) |
ISelectExpressionStateObjectBuilder |
resultVariableAs(java.lang.String resultVariable)
Defines the current state object with the given result variable.
|
ISelectExpressionStateObjectBuilder |
variable(java.lang.String variable)
Creates the expression representing an identification variable.
|
abs, add, arithmetic, avg, avg, avgDistinct, buildCollectionPath, buildIdentificationVariable, buildInputParameter, buildNumeric, buildNumeric, buildStateFieldPath, buildStringLiteral, case_, coalesce, concat, count, count, countDistinct, currentDate, currentTime, currentTimestamp, date, divide, entityType, enumLiteral, function, function, getCaseBuilder, index, length, literal, literals, locate, locate, max, max, maxDistinct, min, min, minDistinct, minus, mod, multiply, nullIf, numeric, numeric, parameter, path, plus, size, sqrt, stateObjects, stateObjects, string, sub, subtract, sum, sum, sumDistinct, typeadd, checkBuilder, checkBuilders, hasStateObjects, popclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabs, add, avg, avgDistinct, case_, coalesce, concat, count, countDistinct, currentDate, currentTime, currentTimestamp, date, divide, entityType, enumLiteral, function, function, getCaseBuilder, index, length, locate, locate, max, maxDistinct, min, minDistinct, minus, mod, multiply, nullIf, numeric, numeric, parameter, path, plus, size, sqrt, string, sub, subtract, sum, sumDistinct, typeprotected java.util.List<StateObject> stateObjectList
append().protected AbstractSelectExpressionStateObjectBuilder(SelectClauseStateObject parent)
AbstractSelectExpressionStateObjectBuilder.parent - The select clause for which this builder can create a select expressionpublic ISelectExpressionStateObjectBuilder append()
append in interface ISelectExpressionStateObjectBuilderpublic void commit()
commit in interface ISelectExpressionStateObjectBuilderprotected SelectClauseStateObject getParent()
getParent in class AbstractScalarExpressionStateObjectBuilder<ISelectExpressionStateObjectBuilder>public ISelectExpressionStateObjectBuilder new_(java.lang.String className, ISelectExpressionStateObjectBuilder... parameters)
NEW constructor_name(identification_variable).new_ in interface ISelectExpressionStateObjectBuilderclassName - The fully qualified class nameparameters - The parameters of the constructorpublic ISelectExpressionStateObjectBuilder object(java.lang.String identificationVariable)
OBJECT(identification_variable).object in interface ISelectExpressionStateObjectBuilderidentificationVariable - The identification variablepublic ISelectExpressionStateObjectBuilder resultVariable(java.lang.String resultVariable)
resultVariable in interface ISelectExpressionStateObjectBuilderresultVariable - The variable identifying the current select expressionprotected void resultVariable(java.lang.String resultVariable,
boolean as)
public ISelectExpressionStateObjectBuilder resultVariableAs(java.lang.String resultVariable)
resultVariableAs in interface ISelectExpressionStateObjectBuilderresultVariable - The variable identifying the current select expressionpublic ISelectExpressionStateObjectBuilder variable(java.lang.String variable)
variable in interface ISelectExpressionStateObjectBuildervariable - The identification variablebuilder