E
- Entity type.PK
- Primary key type.public abstract class AbstractEntityRepository<E,PK extends Serializable> extends Object implements EntityRepository<E,PK>
Constructor and Description |
---|
AbstractEntityRepository() |
Modifier and Type | Method and Description |
---|---|
protected abstract javax.persistence.criteria.CriteriaQuery<E> |
criteriaQuery()
Utility method to create a criteria query.
|
protected abstract Class<E> |
entityClass()
Get the entity class this Repository is related to.
|
protected abstract javax.persistence.EntityManager |
entityManager()
Utility method to get hold of the entity manager for this Repository.
|
protected abstract javax.persistence.TypedQuery<E> |
typedQuery(String qlString)
Utility method to create a typed query.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
count, count, countLike, findAll, findAll, findBy, findBy, findBy, findByLike, findByLike, flush, refresh, remove, removeAndFlush, save, saveAndFlush, saveAndFlushAndRefresh
protected abstract javax.persistence.EntityManager entityManager()
protected abstract javax.persistence.criteria.CriteriaQuery<E> criteriaQuery()
protected abstract javax.persistence.TypedQuery<E> typedQuery(String qlString)
qlString
- Query stringCopyright © 2015 The Apache Software Foundation. All rights reserved.