Package org.eclipse.persistence.jpa.jpql.tools.model.query

Examples of org.eclipse.persistence.jpa.jpql.tools.model.query.StateObject


  /**
   * {@inheritDoc}
   */
  public T upper(T builder) {
    checkBuilder(builder);
    StateObject stateObject = new UpperExpressionStateObject(getParent(), pop());
    add(stateObject);
    return (T) this;
  }
View Full Code Here


  /**
   * {@inheritDoc}
   */
  public T variable(String variable) {
    StateObject stateObject = buildIdentificationVariable(variable);
    add(stateObject);
    return (T) this;
  }
View Full Code Here

  public ICaseExpressionStateObjectBuilder when(ICaseExpressionStateObjectBuilder when,
                                                ICaseExpressionStateObjectBuilder then) {

    checkBuilders(when, then);

    StateObject thenStateObject = pop();
    StateObject whenStateObject = pop();

    WhenClauseStateObject stateObject = new WhenClauseStateObject(
      caseExpressionStateObject,
      whenStateObject,
      thenStateObject
View Full Code Here

  public ISelectExpressionStateObjectBuilder new_(String className,
                                                  ISelectExpressionStateObjectBuilder... parameters) {

    checkBuilders(parameters);

    StateObject stateObject = new ConstructorExpressionStateObject(
      getParent(),
      className,
      stateObjects(parameters)
    );
    add(stateObject);
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public ISelectExpressionStateObjectBuilder object(String identificationVariable) {
    StateObject stateObject = new ObjectExpressionStateObject(getParent(), identificationVariable);
    add(stateObject);
    return this;
  }
View Full Code Here

    return this;
  }

  protected void resultVariable(String resultVariable, boolean as) {

    StateObject stateObject = new ResultVariableStateObject(
      getParent(),
      pop(),
      as,
      resultVariable
    );
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public ISelectExpressionStateObjectBuilder variable(String variable) {
    StateObject stateObject = buildIdentificationVariable(variable);
    add(stateObject);
    return this;
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  @Override
  public IEclipseLinkSelectExpressionStateObjectBuilder variable(String variable) {
    StateObject stateObject = buildIdentificationVariable(variable);
    add(stateObject);
    return this;
  }
View Full Code Here

   */
  public T abs(T builder) {

    checkBuilder(builder);

    StateObject stateObject = new AbsExpressionStateObject(parent, pop());
    add(stateObject);
    return (T) this;
  }
View Full Code Here

   */
  public T add(T builder) {

    checkBuilder(builder);

    StateObject rightStateObject = pop();
    StateObject leftStateObject  = pop();

    StateObject stateObject = new AdditionExpressionStateObject(
      parent,
      leftStateObject,
      rightStateObject
    );

View Full Code Here

TOP

Related Classes of org.eclipse.persistence.jpa.jpql.tools.model.query.StateObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.