Top Fields Constructors Methods
org.eclipse.persistence.jpa.jpql.tools.model

public abstract Class AbstractSelectExpressionStateObjectBuilder

extends AbstractScalarExpressionStateObjectBuilder<ISelectExpressionStateObjectBuilder>
implements ISelectExpressionStateObjectBuilder
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.jpa.jpql.tools.model.ISelectExpressionStateObjectBuilder, org.eclipse.persistence.jpa.jpql.tools.model.IScalarExpressionStateObjectBuilder
Known Direct Subclasses
org.eclipse.persistence.jpa.jpql.tools.model.DefaultSelectExpressionStateObjectBuilder, org.eclipse.persistence.jpa.jpql.tools.model.AbstractEclipseLinkSelectExpressionStateObjectBuilder
Imports
java.util.ArrayList, .List, org.eclipse.persistence.jpa.jpql.tools.model.query.ConstructorExpressionStateObject, .ObjectExpressionStateObject, .ResultVariableStateObject, .SelectClauseStateObject, .StateObject

Author
Pascal Filion
Since
2.4
Version
2.4

Field Summary

Modifier and TypeField and Description
protected List<StateObject>
stateObjectList

The list of select items, which were added by invoking append().

Constructor Summary

AccessConstructor and Description
protected
AbstractSelectExpressionStateObjectBuilder(SelectClauseStateObject
The select clause for which this builder can create a select expression
parent
)

Creates a new AbstractSelectExpressionStateObjectBuilder.

Method Summary

Modifier and TypeMethod and Description
public ISelectExpressionStateObjectBuilder
append()

Implements org.eclipse.persistence.jpa.jpql.tools.model.ISelectExpressionStateObjectBuilder.append.

Appends the previously created select item and starts a new stack to create a new select item.
public void
commit()

Implements org.eclipse.persistence.jpa.jpql.tools.model.ISelectExpressionStateObjectBuilder.commit.

Pushes the changes created by this builder to the state object.
protected SelectClauseStateObject
getParent()

Overrides org.eclipse.persistence.jpa.jpql.tools.model.AbstractScalarExpressionStateObjectBuilder.getParent.

Returns the parent of the expression to build, which is only required when a JPQL fragment needs to be parsed.
public ISelectExpressionStateObjectBuilder
new_(String
The fully qualified class name
className
,
ISelectExpressionStateObjectBuilder...
The parameters of the constructor
parameters
)

Implements org.eclipse.persistence.jpa.jpql.tools.model.ISelectExpressionStateObjectBuilder.new_.

Creates the expression NEW constructor_name(identification_variable).
public ISelectExpressionStateObjectBuilder
object(String
The identification variable
identificationVariable
)

Implements org.eclipse.persistence.jpa.jpql.tools.model.ISelectExpressionStateObjectBuilder.object.

Creates the expression OBJECT(identification_variable).
public ISelectExpressionStateObjectBuilder
resultVariable(String
The variable identifying the current select expression
resultVariable
)

Implements org.eclipse.persistence.jpa.jpql.tools.model.ISelectExpressionStateObjectBuilder.resultVariable.

Defines the current state object with the given result variable.
protected void
resultVariable(String resultVariable, boolean as)

public ISelectExpressionStateObjectBuilder
resultVariableAs(String
The variable identifying the current select expression
resultVariable
)

Implements org.eclipse.persistence.jpa.jpql.tools.model.ISelectExpressionStateObjectBuilder.resultVariableAs.

Defines the current state object with the given result variable.
public ISelectExpressionStateObjectBuilder
variable(String
The identification variable
variable
)

Implements org.eclipse.persistence.jpa.jpql.tools.model.ISelectExpressionStateObjectBuilder.variable.

Creates the expression representing an identification variable.
Inherited from org.eclipse.persistence.jpa.jpql.tools.model.AbstractScalarExpressionStateObjectBuilder:
absaddarithmeticavgavgavgDistinctbuildCollectionPathbuildIdentificationVariablebuildInputParameterbuildNumericbuildNumericbuildStateFieldPathbuildStringLiteralcase_coalescecoalesceconcatconcatcountcountcountDistinctcurrentDatecurrentTimecurrentTimestampdatedivideentityTypeenumLiteralfunctionfunctionfunctiongetCaseBuilderindexlengthliteralliteralslocatelocatemaxmaxmaxDistinctminminminDistinctminusmodmultiplynullIfnumericnumericparameterpathplussizesqrtstateObjectsstateObjectsstringsubsubtractsumsumsumDistincttype

Field Detail

stateObjectListback to summary
protected List<StateObject> stateObjectList

The list of select items, which were added by invoking append().

Constructor Detail

AbstractSelectExpressionStateObjectBuilderback to summary
protected AbstractSelectExpressionStateObjectBuilder(SelectClauseStateObject parent)

Creates a new AbstractSelectExpressionStateObjectBuilder.

Parameters
parent:SelectClauseStateObject

The select clause for which this builder can create a select expression

Method Detail

appendback to summary
public ISelectExpressionStateObjectBuilder append()

Implements org.eclipse.persistence.jpa.jpql.tools.model.ISelectExpressionStateObjectBuilder.append.

Doc from org.eclipse.persistence.jpa.jpql.tools.model.ISelectExpressionStateObjectBuilder.append.

Appends the previously created select item and starts a new stack to create a new select item.

Returns:ISelectExpressionStateObjectBuilder

This builder

Annotations
@Override
commitback to summary
public void commit()

Implements org.eclipse.persistence.jpa.jpql.tools.model.ISelectExpressionStateObjectBuilder.commit.

Doc from org.eclipse.persistence.jpa.jpql.tools.model.ISelectExpressionStateObjectBuilder.commit.

Pushes the changes created by this builder to the state object.

Annotations
@Override
getParentback to summary
protected SelectClauseStateObject getParent()

Overrides org.eclipse.persistence.jpa.jpql.tools.model.AbstractScalarExpressionStateObjectBuilder.getParent.

Doc from org.eclipse.persistence.jpa.jpql.tools.model.AbstractScalarExpressionStateObjectBuilder.getParent.

Returns the parent of the expression to build, which is only required when a JPQL fragment needs to be parsed.

Returns:SelectClauseStateObject

The parent

Annotations
@Override
new_back to summary
public ISelectExpressionStateObjectBuilder new_(String className, ISelectExpressionStateObjectBuilder... parameters)

Implements org.eclipse.persistence.jpa.jpql.tools.model.ISelectExpressionStateObjectBuilder.new_.

Doc from org.eclipse.persistence.jpa.jpql.tools.model.ISelectExpressionStateObjectBuilder.new_.

Creates the expression NEW constructor_name(identification_variable).

Parameters
className:String

The fully qualified class name

parameters:ISelectExpressionStateObjectBuilder[]

The parameters of the constructor

Returns:ISelectExpressionStateObjectBuilder

This builder

Annotations
@Override
objectback to summary
public ISelectExpressionStateObjectBuilder object(String identificationVariable)

Implements org.eclipse.persistence.jpa.jpql.tools.model.ISelectExpressionStateObjectBuilder.object.

Doc from org.eclipse.persistence.jpa.jpql.tools.model.ISelectExpressionStateObjectBuilder.object.

Creates the expression OBJECT(identification_variable).

Parameters
identificationVariable:String

The identification variable

Returns:ISelectExpressionStateObjectBuilder

This builder

Annotations
@Override
resultVariableback to summary
public ISelectExpressionStateObjectBuilder resultVariable(String resultVariable)

Implements org.eclipse.persistence.jpa.jpql.tools.model.ISelectExpressionStateObjectBuilder.resultVariable.

Doc from org.eclipse.persistence.jpa.jpql.tools.model.ISelectExpressionStateObjectBuilder.resultVariable.

Defines the current state object with the given result variable.

Parameters
resultVariable:String

The variable identifying the current select expression

Returns:ISelectExpressionStateObjectBuilder

This builder

Annotations
@Override
resultVariableback to summary
protected void resultVariable(String resultVariable, boolean as)
resultVariableAsback to summary
public ISelectExpressionStateObjectBuilder resultVariableAs(String resultVariable)

Implements org.eclipse.persistence.jpa.jpql.tools.model.ISelectExpressionStateObjectBuilder.resultVariableAs.

Doc from org.eclipse.persistence.jpa.jpql.tools.model.ISelectExpressionStateObjectBuilder.resultVariableAs.

Defines the current state object with the given result variable.

Parameters
resultVariable:String

The variable identifying the current select expression

Returns:ISelectExpressionStateObjectBuilder

This builder

Annotations
@Override
variableback to summary
public ISelectExpressionStateObjectBuilder variable(String variable)

Implements org.eclipse.persistence.jpa.jpql.tools.model.ISelectExpressionStateObjectBuilder.variable.

Doc from org.eclipse.persistence.jpa.jpql.tools.model.ISelectExpressionStateObjectBuilder.variable.

Creates the expression representing an identification variable.

Parameters
variable:String

The identification variable

Returns:ISelectExpressionStateObjectBuilder

This builder

Annotations
@Override