Class AbstractSelectExpressionStateObjectBuilder
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.tools.model.AbstractStateObjectBuilder
-
- org.eclipse.persistence.jpa.jpql.tools.model.AbstractScalarExpressionStateObjectBuilder<ISelectExpressionStateObjectBuilder>
-
- org.eclipse.persistence.jpa.jpql.tools.model.AbstractSelectExpressionStateObjectBuilder
-
- All Implemented Interfaces:
IScalarExpressionStateObjectBuilder<ISelectExpressionStateObjectBuilder>,ISelectExpressionStateObjectBuilder
- Direct Known Subclasses:
AbstractEclipseLinkSelectExpressionStateObjectBuilder,DefaultSelectExpressionStateObjectBuilder
public abstract class AbstractSelectExpressionStateObjectBuilder extends AbstractScalarExpressionStateObjectBuilder<ISelectExpressionStateObjectBuilder> implements ISelectExpressionStateObjectBuilder
- Since:
- 2.4
- Version:
- 2.4
- Author:
- Pascal Filion
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ISelectExpressionStateObjectBuilderappend()Appends the previously created select item and starts a new stack to create a new select item.voidcommit()Pushes the changes created by this builder to the state object.ISelectExpressionStateObjectBuildernew_(String className, ISelectExpressionStateObjectBuilder... parameters)Creates the expressionNEW constructor_name(identification_variable).ISelectExpressionStateObjectBuilderobject(String identificationVariable)Creates the expressionOBJECT(identification_variable).ISelectExpressionStateObjectBuilderresultVariable(String resultVariable)Defines the current state object with the given result variable.ISelectExpressionStateObjectBuilderresultVariableAs(String resultVariable)Defines the current state object with the given result variable.ISelectExpressionStateObjectBuildervariable(String variable)Creates the expression representing an identification variable.-
Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.model.AbstractScalarExpressionStateObjectBuilder
abs, 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, type
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.persistence.jpa.jpql.tools.model.IScalarExpressionStateObjectBuilder
abs, 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, type
-
-
-
-
Method Detail
-
append
public ISelectExpressionStateObjectBuilder append()
Appends the previously created select item and starts a new stack to create a new select item.- Specified by:
appendin interfaceISelectExpressionStateObjectBuilder- Returns:
- This builder
-
commit
public void commit()
Pushes the changes created by this builder to the state object.- Specified by:
commitin interfaceISelectExpressionStateObjectBuilder
-
new_
public ISelectExpressionStateObjectBuilder new_(String className, ISelectExpressionStateObjectBuilder... parameters)
Creates the expressionNEW constructor_name(identification_variable).- Specified by:
new_in interfaceISelectExpressionStateObjectBuilder- Parameters:
className- The fully qualified class nameparameters- The parameters of the constructor- Returns:
- This builder
-
object
public ISelectExpressionStateObjectBuilder object(String identificationVariable)
Creates the expressionOBJECT(identification_variable).- Specified by:
objectin interfaceISelectExpressionStateObjectBuilder- Parameters:
identificationVariable- The identification variable- Returns:
- This builder
-
resultVariable
public ISelectExpressionStateObjectBuilder resultVariable(String resultVariable)
Defines the current state object with the given result variable.- Specified by:
resultVariablein interfaceISelectExpressionStateObjectBuilder- Parameters:
resultVariable- The variable identifying the current select expression- Returns:
- This builder
-
resultVariableAs
public ISelectExpressionStateObjectBuilder resultVariableAs(String resultVariable)
Defines the current state object with the given result variable.- Specified by:
resultVariableAsin interfaceISelectExpressionStateObjectBuilder- Parameters:
resultVariable- The variable identifying the current select expression- Returns:
- This builder
-
variable
public ISelectExpressionStateObjectBuilder variable(String variable)
Creates the expression representing an identification variable.- Specified by:
variablein interfaceISelectExpressionStateObjectBuilder- Parameters:
variable- The identification variable- Returns:
- This
builder
-
-