net.sourceforge.domian.specification
Class Specification2HqlConverter

java.lang.Object
  extended by net.sourceforge.domian.specification.Specification2HqlConverter

public final class Specification2HqlConverter
extends java.lang.Object

HQL will be a fall-back from JPQL...


Field Summary
private static org.slf4j.Logger log
           
 
Constructor Summary
Specification2HqlConverter()
           
 
Method Summary
private static void buildHqlFromCompositeSpecification(CompositeSpecification<?> compositeSpecification, net.sourceforge.domian.specification.ParameterizedSpecification parentParameterizedSpecification, boolean negated, java.lang.StringBuilder hqlExpression)
           
private static void buildHqlFromEntityTypeCompositeSpecification(CompositeSpecification<Entity> specification, java.lang.StringBuilder hqlExpression)
           
static java.lang.String convertSpecification2HqlQuery(Specification<? extends Entity> specification)
          An attempt to convert Entity-type Specification to polymorphic-friendly Hibernate Query language (HQL) query expression.
private static boolean isTypeOnlyCompositeSpecification(CompositeSpecification<Entity> compositeSpecification)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.slf4j.Logger log
Constructor Detail

Specification2HqlConverter

public Specification2HqlConverter()
Method Detail

convertSpecification2HqlQuery

public static java.lang.String convertSpecification2HqlQuery(Specification<? extends Entity> specification)
An attempt to convert Entity-type Specification to polymorphic-friendly Hibernate Query language (HQL) query expression.

Returns:
an HQL query expression string

buildHqlFromEntityTypeCompositeSpecification

private static void buildHqlFromEntityTypeCompositeSpecification(CompositeSpecification<Entity> specification,
                                                                 java.lang.StringBuilder hqlExpression)

buildHqlFromCompositeSpecification

private static void buildHqlFromCompositeSpecification(CompositeSpecification<?> compositeSpecification,
                                                       net.sourceforge.domian.specification.ParameterizedSpecification parentParameterizedSpecification,
                                                       boolean negated,
                                                       java.lang.StringBuilder hqlExpression)

isTypeOnlyCompositeSpecification

private static boolean isTypeOnlyCompositeSpecification(CompositeSpecification<Entity> compositeSpecification)


Copyright © 2009-2010. All Rights Reserved.