T
- the generic typepublic interface JavaPersistenceHandler<T>
Modifier and Type | Method and Description |
---|---|
javax.persistence.EntityManager |
createNewManager()
Creates the new manager.
|
List<T> |
executeCriteriaQuery(javax.persistence.criteria.CriteriaQuery<Object> criteriaQuery)
Execute criteria query.
|
List<T> |
executeTypedQuery(javax.persistence.criteria.CriteriaQuery<Object> cq,
int startIndex,
int offset)
Execute typed query.
|
javax.persistence.criteria.CriteriaBuilder |
getCriteriaBuilder()
Gets the criteria builder.
|
javax.persistence.EntityManagerFactory |
getEntityManagerFactory()
Gets the entity manager factory.
|
javax.persistence.criteria.Root<T> |
rootFrom(javax.persistence.criteria.CriteriaQuery<Object> cq)
Root from.
|
javax.persistence.criteria.CriteriaBuilder getCriteriaBuilder() throws DatabaseServiceException
DatabaseServiceException
- the database service exceptionjavax.persistence.EntityManagerFactory getEntityManagerFactory()
javax.persistence.EntityManager createNewManager() throws DatabaseServiceException
DatabaseServiceException
- the database service exceptionList<T> executeCriteriaQuery(javax.persistence.criteria.CriteriaQuery<Object> criteriaQuery) throws DatabaseServiceException
criteriaQuery
- the criteria queryDatabaseServiceException
- the database service exceptionList<T> executeTypedQuery(javax.persistence.criteria.CriteriaQuery<Object> cq, int startIndex, int offset) throws DatabaseServiceException
cq
- the cqstartIndex
- the start indexoffset
- the offsetDatabaseServiceException
- the database service exceptionCopyright © 2018. All Rights Reserved.