Examples of LiteralExpression


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

    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

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

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

Examples of org.odata4j.expression.LiteralExpression

      throw new NotImplementedException("Appengine only supports simple property expressions");
    if (!(e.getRHS() instanceof LiteralExpression))
      throw new NotImplementedException("Appengine only supports simple property expressions");

    EntitySimpleProperty lhs = (EntitySimpleProperty) e.getLHS();
    LiteralExpression rhs = (LiteralExpression) e.getRHS();

    String propName = lhs.getPropertyName();
    Object propValue = Expression.literalValue(rhs);

    // Support for filtering navigation properties by key
View Full Code Here

Examples of org.springframework.expression.common.LiteralExpression

*/
public class FileCopyDemoCommon {

  public static void displayDirectories(ApplicationContext context) {
    File inDir = (File) new DirectFieldAccessor(context.getBean(FileReadingMessageSource.class)).getPropertyValue("directory");
    LiteralExpression expression = (LiteralExpression) new DirectFieldAccessor(context.getBean(FileWritingMessageHandler.class)).getPropertyValue("destinationDirectoryExpression");
    File outDir = new File(expression.getValue());
    System.out.println("Input directory is: " + inDir.getAbsolutePath());
    System.out.println("Output directory is: " + outDir.getAbsolutePath());
    System.out.println("===================================================");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.