public interface CriteriaBuilderFactory
Modifier and Type | Method and Description |
---|---|
<T> CriteriaBuilder<T> |
create(javax.persistence.EntityManager entityManager,
Class<T> resultClass)
Like
create(javax.persistence.EntityManager, java.lang.Class, java.lang.String)
but with the alias equivalent to the camel cased result of what Class.getSimpleName() of the result class returns. |
<T> CriteriaBuilder<T> |
create(javax.persistence.EntityManager entityManager,
Class<T> resultClass,
String alias)
Creates a new criteria builder with the given result class.
|
<T> T |
getService(Class<T> serviceClass)
Returns the service provided by this criteria builder factory or null if none is available.
|
<T> CriteriaBuilder<T> create(javax.persistence.EntityManager entityManager, Class<T> resultClass)
create(javax.persistence.EntityManager, java.lang.Class, java.lang.String)
but with the alias equivalent to the camel cased result of what Class.getSimpleName()
of the result class returns.T
- The type of the result classentityManager
- The entity manager to use for the criteria builderresultClass
- The result class of the query<T> CriteriaBuilder<T> create(javax.persistence.EntityManager entityManager, Class<T> resultClass, String alias)
BaseQueryBuilder.from(java.lang.Class, java.lang.String)
.T
- The type of the result classentityManager
- The entity manager to use for the criteria builderresultClass
- The result class of the queryalias
- The alias that should be used for the result class from clause<T> T getService(Class<T> serviceClass)
serviceClass
- The type of the serviceCopyright © 2015 Blazebit. All Rights Reserved.