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

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


  /**
   * {@inheritDoc}
   */
  public T entityType(String entityTypeName) {
    StateObject stateObject = new EntityTypeLiteralStateObject(parent,entityTypeName);
    add(stateObject);
    return (T) this;
  }
View Full Code Here


  /**
   * {@inheritDoc}
   */
  public T enumLiteral(Enum<? extends Enum<?>> enumConstant) {
    StateObject stateObject = new EnumTypeStateObject(parent, enumConstant);
    add(stateObject);
    return (T) this;
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public T function(String identifier, String functionName, String... arguments) {

    StateObject stateObject = new FunctionExpressionStateObject(
      getParent(),
      identifier,
      functionName,
      literals(arguments)
    );
View Full Code Here

   */
  public T function(String identifier, String functionName, T... arguments) {

    checkBuilders(arguments);

    StateObject stateObject = new FunctionExpressionStateObject(
      getParent(),
      identifier,
      functionName,
      stateObjects(arguments)
    );
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public T index(String variable) {
    StateObject stateObject = new IndexExpressionStateObject(parent, variable);
    add(stateObject);
    return (T) this;
  }
View Full Code Here

   */
  public T length(T builder) {

    checkBuilder(builder);

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

    if (parameter3 != null) {
      checkBuilder(parameter3);
    }

    StateObject thirdStateObject  = (parameter3 != null) ? pop() : null;
    StateObject secondStateObject = pop();
    StateObject firstStateObject  = pop();

    StateObject stateObject = new LocateExpressionStateObject(
      parent,
      firstStateObject,
      secondStateObject,
      thirdStateObject
    );
View Full Code Here

    add(stateObject);
    return (T) this;
  }

  protected void max(boolean distinct, String path) {
    StateObject stateObject = new MaxFunctionStateObject(parent, distinct, literal(path));
    add(stateObject);
  }
View Full Code Here

    max(true, path);
    return (T) this;
  }

  protected void min(boolean distinct, String path) {
    StateObject stateObject = new MaxFunctionStateObject(parent, distinct, literal(path));
    add(stateObject);
  }
View Full Code Here

   */
  public T mod(T parameter1, T parameter2) {

    checkBuilders(parameter1, parameter2);

    StateObject secondStateObject = pop();
    StateObject firstStateObject  = pop();

    StateObject stateObject = new ModExpressionStateObject(
      parent,
      firstStateObject,
      secondStateObject
    );

View Full Code Here

TOP

Related Classes of org.eclipse.persistence.jpa.jpql.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.