net.sourceforge.domian.specification
Class Specification2HqlConverter
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static final org.slf4j.Logger log
Specification2HqlConverter
public Specification2HqlConverter()
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.