Package org.hibernate.jpa.criteria.expression

Examples of org.hibernate.jpa.criteria.expression.LiteralExpression


      Object rightHandSide) {
    super( criteriaBuilder );
    this.comparisonOperator = comparisonOperator;
    this.leftHandSide = leftHandSide;
    if ( ValueHandlerFactory.isNumeric( leftHandSide.getJavaType() ) ) {
      this.rightHandSide = new LiteralExpression(
          criteriaBuilder,
          ValueHandlerFactory.convert( rightHandSide, (Class<Number>) leftHandSide.getJavaType() )
      );
    }
    else {
      this.rightHandSide = new LiteralExpression( criteriaBuilder, rightHandSide );
    }
  }
View Full Code Here


    super( criteriaBuilder );
    this.comparisonOperator = comparisonOperator;
    this.leftHandSide = leftHandSide;
    Class type = leftHandSide.getJavaType();
    if ( Number.class.equals( type ) ) {
      this.rightHandSide = new LiteralExpression( criteriaBuilder, rightHandSide );
    }
    else {
      N converted = (N) ValueHandlerFactory.convert( rightHandSide, type );
      this.rightHandSide = new LiteralExpression<N>( criteriaBuilder, converted );
    }
View Full Code Here

  public AggregationFunction(
      CriteriaBuilderImpl criteriaBuilder,
      Class<T> returnType,
      String functionName,
      Object argument) {
    this( criteriaBuilder, returnType, functionName, new LiteralExpression( criteriaBuilder, argument ) );
  }
View Full Code Here

      Object rightHandSide) {
    super( criteriaBuilder );
    this.comparisonOperator = comparisonOperator;
    this.leftHandSide = leftHandSide;
    if ( ValueHandlerFactory.isNumeric( leftHandSide.getJavaType() ) ) {
      this.rightHandSide = new LiteralExpression(
          criteriaBuilder,
          ValueHandlerFactory.convert( rightHandSide, (Class<Number>) leftHandSide.getJavaType() )
      );
    }
    else {
      this.rightHandSide = new LiteralExpression( criteriaBuilder, rightHandSide );
    }
  }
View Full Code Here

    super( criteriaBuilder );
    this.comparisonOperator = comparisonOperator;
    this.leftHandSide = leftHandSide;
    Class type = leftHandSide.getJavaType();
    if ( Number.class.equals( type ) ) {
      this.rightHandSide = new LiteralExpression( criteriaBuilder, rightHandSide );
    }
    else {
      N converted = (N) ValueHandlerFactory.convert( rightHandSide, type );
      this.rightHandSide = new LiteralExpression<N>( criteriaBuilder, converted );
    }
View Full Code Here

  public AggregationFunction(
      CriteriaBuilderImpl criteriaBuilder,
      Class<T> returnType,
      String functionName,
      Object argument) {
    this( criteriaBuilder, returnType, functionName, new LiteralExpression( criteriaBuilder, argument ) );
  }
View Full Code Here

TOP

Related Classes of org.hibernate.jpa.criteria.expression.LiteralExpression

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.