org.eclipse.persistence.jpa.jpql.model
Class AbstractEclipseLinkSelectExpressionStateObjectBuilder
java.lang.Object
org.eclipse.persistence.jpa.jpql.model.AbstractStateObjectBuilder
org.eclipse.persistence.jpa.jpql.model.AbstractScalarExpressionStateObjectBuilder<ISelectExpressionStateObjectBuilder>
org.eclipse.persistence.jpa.jpql.model.AbstractSelectExpressionStateObjectBuilder
org.eclipse.persistence.jpa.jpql.model.AbstractEclipseLinkSelectExpressionStateObjectBuilder
- All Implemented Interfaces:
- IEclipseLinkSelectExpressionStateObjectBuilder, IScalarExpressionStateObjectBuilder<ISelectExpressionStateObjectBuilder>, ISelectExpressionStateObjectBuilder
- Direct Known Subclasses:
- EclipseLinkSelectExpressionStateObjectBuilder
public abstract class AbstractEclipseLinkSelectExpressionStateObjectBuilder
- extends AbstractSelectExpressionStateObjectBuilder
- implements IEclipseLinkSelectExpressionStateObjectBuilder
- Version:
- 2.4
- Author:
- Pascal Filion
- Since:
- 2.4
Methods inherited from class org.eclipse.persistence.jpa.jpql.model.AbstractScalarExpressionStateObjectBuilder |
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, type |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.persistence.jpa.jpql.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 |
AbstractEclipseLinkSelectExpressionStateObjectBuilder
protected AbstractEclipseLinkSelectExpressionStateObjectBuilder(SelectClauseStateObject parent)
- Creates a new
AbstractEclipseLinkSelectExpressionStateObjectBuilder
.
- Parameters:
parent
- The select clause for which this builder can create a select expression
append
public IEclipseLinkSelectExpressionStateObjectBuilder append()
- Appends the previously created select item and starts a new stack to create a new select item.
- Specified by:
append
in interface IEclipseLinkSelectExpressionStateObjectBuilder
- Specified by:
append
in interface ISelectExpressionStateObjectBuilder
- Overrides:
append
in class AbstractSelectExpressionStateObjectBuilder
- Returns:
- This builder
new_
public IEclipseLinkSelectExpressionStateObjectBuilder new_(java.lang.String className,
ISelectExpressionStateObjectBuilder... parameters)
- Creates the expression
NEW constructor_name(identification_variable)
.
- Specified by:
new_
in interface IEclipseLinkSelectExpressionStateObjectBuilder
- Specified by:
new_
in interface ISelectExpressionStateObjectBuilder
- Overrides:
new_
in class AbstractSelectExpressionStateObjectBuilder
- Parameters:
className
- The fully qualified class nameparameters
- The parameters of the constructor
- Returns:
- This builder
object
public IEclipseLinkSelectExpressionStateObjectBuilder object(java.lang.String identificationVariable)
- Creates the expression
OBJECT(identification_variable)
.
- Specified by:
object
in interface IEclipseLinkSelectExpressionStateObjectBuilder
- Specified by:
object
in interface ISelectExpressionStateObjectBuilder
- Overrides:
object
in class AbstractSelectExpressionStateObjectBuilder
- Parameters:
identificationVariable
- The identification variable
- Returns:
- This builder
resultVariable
public IEclipseLinkSelectExpressionStateObjectBuilder resultVariable(java.lang.String resultVariable)
- Defines the current state object with the given result variable.
- Specified by:
resultVariable
in interface IEclipseLinkSelectExpressionStateObjectBuilder
- Specified by:
resultVariable
in interface ISelectExpressionStateObjectBuilder
- Overrides:
resultVariable
in class AbstractSelectExpressionStateObjectBuilder
- Parameters:
resultVariable
- The variable identifying the current select expression
- Returns:
- This builder
resultVariableAs
public IEclipseLinkSelectExpressionStateObjectBuilder resultVariableAs(java.lang.String resultVariable)
- Defines the current state object with the given result variable.
- Specified by:
resultVariableAs
in interface IEclipseLinkSelectExpressionStateObjectBuilder
- Specified by:
resultVariableAs
in interface ISelectExpressionStateObjectBuilder
- Overrides:
resultVariableAs
in class AbstractSelectExpressionStateObjectBuilder
- Parameters:
resultVariable
- The variable identifying the current select expression
- Returns:
- This builder
variable
public IEclipseLinkSelectExpressionStateObjectBuilder variable(java.lang.String variable)
- Creates the expression representing an identification variable.
- Specified by:
variable
in interface IEclipseLinkSelectExpressionStateObjectBuilder
- Specified by:
variable
in interface ISelectExpressionStateObjectBuilder
- Overrides:
variable
in class AbstractSelectExpressionStateObjectBuilder
- Parameters:
variable
- The identification variable
- Returns:
- This
builder