E
- Entity type.PK
- Primary key type.public abstract class AbstractEntityRepository<E,PK extends Serializable> extends Object implements EntityRepository<E,PK>, EntityPersistenceRepository<E,PK>, EntityCountRepository<E>
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 String |
entityName()
Get the entity name this Repository is related to.
|
protected abstract String |
tableName()
Get the entity table name this Repository is related to.
|
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
findAll, findAll, findBy, findBy, findBy, findByLike, findByLike, findOptionalBy
attachAndRemove, flush, getPrimaryKey, refresh, remove, removeAndFlush, save, saveAndFlush, saveAndFlushAndRefresh
count, count, countLike
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 stringprotected abstract Class<E> entityClass()
protected abstract String tableName()
protected abstract String entityName()
Copyright © 2020 The Apache Software Foundation. All rights reserved.