Top Description Methods
org.eclipse.persistence.jpa.jpql.tools.model

public Interface ISelectExpressionStateObjectBuilder

extends IScalarExpressionStateObjectBuilder<ISelectExpressionStateObjectBuilder>
Known Direct Subinterfaces
org.eclipse.persistence.jpa.jpql.tools.model.IEclipseLinkSelectExpressionStateObjectBuilder
Known Direct Implementers
org.eclipse.persistence.jpa.jpql.tools.model.AbstractSelectExpressionStateObjectBuilder

This builder can be used to easily create a select expression without having to create each object manually. The builder is associated with SelectClauseStateObject.
Author
Pascal Filion
Since
2.4
Version
2.4

Method Summary

Modifier and TypeMethod and Description
public ISelectExpressionStateObjectBuilder

Returns:

This builder
append
()

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

public void
commit()

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

public ISelectExpressionStateObjectBuilder

Returns:

This builder
new_
(String
The fully qualified class name
className
,
ISelectExpressionStateObjectBuilder...
The parameters of the constructor
parameters
)

Creates the expression NEW constructor_name(identification_variable).

public ISelectExpressionStateObjectBuilder

Returns:

This builder
object
(String
The identification variable
identificationVariable
)

Creates the expression OBJECT(identification_variable).

public ISelectExpressionStateObjectBuilder

Returns:

This builder
resultVariable
(String
The variable identifying the current select expression
resultVariable
)

Defines the current state object with the given result variable.

public ISelectExpressionStateObjectBuilder

Returns:

This builder
resultVariableAs
(String
The variable identifying the current select expression
resultVariable
)

Defines the current state object with the given result variable.

public ISelectExpressionStateObjectBuilder

Returns:

This builder
variable
(String
The identification variable
variable
)

Creates the expression representing an identification variable.

Inherited from org.eclipse.persistence.jpa.jpql.tools.model.IScalarExpressionStateObjectBuilder:
absaddavgavgDistinctcase_coalescecoalesceconcatconcatcountcountDistinctcurrentDatecurrentTimecurrentTimestampdatedivideentityTypeenumLiteralfunctionfunctionfunctiongetCaseBuilderindexlengthlocatelocatemaxmaxDistinctminminDistinctminusmodmultiplynullIfnumericnumericparameterpathplussizesqrtstringsubsubtractsumsumDistincttype

Method Detail

appendback to summary
public ISelectExpressionStateObjectBuilder append()

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

Returns:ISelectExpressionStateObjectBuilder

This builder

commitback to summary
public void commit()

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

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

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

objectback to summary
public ISelectExpressionStateObjectBuilder object(String identificationVariable)

Creates the expression OBJECT(identification_variable).

Parameters
identificationVariable:String

The identification variable

Returns:ISelectExpressionStateObjectBuilder

This builder

resultVariableback to summary
public ISelectExpressionStateObjectBuilder resultVariable(String 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

resultVariableAsback to summary
public ISelectExpressionStateObjectBuilder resultVariableAs(String 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

variableback to summary
public ISelectExpressionStateObjectBuilder variable(String variable)

Creates the expression representing an identification variable.

Parameters
variable:String

The identification variable

Returns:ISelectExpressionStateObjectBuilder

This builder