Interface ISelectExpressionStateObjectBuilder

All Superinterfaces:
IScalarExpressionStateObjectBuilder<ISelectExpressionStateObjectBuilder>
All Known Subinterfaces:
IEclipseLinkSelectExpressionStateObjectBuilder
All Known Implementing Classes:
AbstractEclipseLinkSelectExpressionStateObjectBuilder, AbstractSelectExpressionStateObjectBuilder, DefaultSelectExpressionStateObjectBuilder, EclipseLinkSelectExpressionStateObjectBuilder

public interface ISelectExpressionStateObjectBuilder extends IScalarExpressionStateObjectBuilder<ISelectExpressionStateObjectBuilder>
This builder can be used to easily create a select expression without having to create each object manually. The builder is associated with SelectClauseStateObject.
Since:
2.4
Version:
2.4
  • Method Details

    • append

      Appends the previously created select item and starts a new stack to create a new select item.
      Returns:
      This builder
    • commit

      void commit()
      Pushes the changes created by this builder to the state object.
    • new_

      Creates the expression NEW constructor_name(identification_variable).
      Parameters:
      className - The fully qualified class name
      parameters - The parameters of the constructor
      Returns:
      This builder
    • object

      ISelectExpressionStateObjectBuilder object(String identificationVariable)
      Creates the expression OBJECT(identification_variable).
      Parameters:
      identificationVariable - The identification variable
      Returns:
      This builder
    • resultVariable

      ISelectExpressionStateObjectBuilder resultVariable(String resultVariable)
      Defines the current state object with the given result variable.
      Parameters:
      resultVariable - The variable identifying the current select expression
      Returns:
      This builder
    • resultVariableAs

      ISelectExpressionStateObjectBuilder resultVariableAs(String resultVariable)
      Defines the current state object with the given result variable.
      Parameters:
      resultVariable - The variable identifying the current select expression
      Returns:
      This builder
    • variable

      Creates the expression representing an identification variable.
      Parameters:
      variable - The identification variable
      Returns:
      This builder