public class JpaCriteriaQueryFactory extends JpaQueryFactoryBase implements JpaQueryFactory
computedAttrs, em, metaLookup| Modifier and Type | Method and Description |
|---|---|
static JpaCriteriaQueryFactory |
newInstance() |
<T> JpaCriteriaQuery<T> |
query(Class<?> entityClass,
String attrName,
List<?> entityIds)
Builds a new query for the given attribute.
|
<T> JpaCriteriaQuery<T> |
query(Class<T> entityClass)
Builds a new query for the given entity class.
|
void |
registerComputedAttribute(Class<?> targetClass,
String attributeName,
Type attributeType,
JpaCriteriaExpressionFactory<?> expressionFactory) |
getComputedAttributes, getEntityManager, initalizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComputedAttributes, initalizepublic static JpaCriteriaQueryFactory newInstance()
public <T> JpaCriteriaQuery<T> query(Class<T> entityClass)
JpaQueryFactoryquery in interface JpaQueryFactoryT - entityentityClass - to querypublic <T> JpaCriteriaQuery<T> query(Class<?> entityClass, String attrName, List<?> entityIds)
JpaQueryFactoryquery in interface JpaQueryFactoryT - parent entityentityClass - to fetch children fromattrName - on parent entityentityIds - to retrieve the children frompublic void registerComputedAttribute(Class<?> targetClass, String attributeName, Type attributeType, JpaCriteriaExpressionFactory<?> expressionFactory)
Copyright © 2017. All Rights Reserved.