|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.synyx.hades.dao.orm.GenericDaoSupport<T>
org.synyx.hades.dao.orm.GenericJpaDao<T,PK>
org.synyx.hades.dao.orm.AbstractExtendedGenericJpaDao<T,PK>
org.synyx.hades.dao.orm.GenericEclipseLinkJpaDao<T,PK>
public class GenericEclipseLinkJpaDao<T,PK extends java.io.Serializable>
EclipseLink based implementation of ExtendedGenericDao.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.synyx.hades.dao.orm.GenericDaoSupport |
|---|
GenericDaoSupport.IsNewStrategy, GenericDaoSupport.PersistableIsNewStrategy, GenericDaoSupport.ReflectiveIsNewStrategy |
| Constructor Summary | |
|---|---|
GenericEclipseLinkJpaDao()
|
|
| Method Summary | ||
|---|---|---|
static
|
create(javax.persistence.EntityManager entityManager,
java.lang.Class<T> domainClass)
Factory method to create GenericEclipseLinkJpaDao instances. |
|
void |
deleteByExample(java.util.Collection<T> examples)
Deletes all entities mathing the given examples. |
|
protected org.eclipse.persistence.jpa.JpaEntityManager |
getEntityManager()
Returns the EntityManager. |
|
java.util.List<T> |
readByExample(java.util.Collection<T> examples)
Returns all entites matching the given criteria sorted by the given sort options. |
|
Page<T> |
readByExample(Pageable pageable,
java.util.Collection<T> examples)
Allows pageable access to all entities matching the given examples. |
|
java.util.List<T> |
readByExample(Sort sort,
java.util.Collection<T> examples)
Returns all entites matching the given criteria sorted by the given sort options. |
|
void |
validate()
Callback method to validate the class setup. |
|
| Methods inherited from class org.synyx.hades.dao.orm.AbstractExtendedGenericJpaDao |
|---|
deleteByExample, readByExample, readByExample, readByExample |
| Methods inherited from class org.synyx.hades.dao.orm.GenericJpaDao |
|---|
count, delete, delete, deleteAll, exists, flush, readAll, readAll, readAll, readByPrimaryKey, readPage, save, save, saveAndFlush |
| Methods inherited from class org.synyx.hades.dao.orm.GenericDaoSupport |
|---|
assertEntityManagerClass, createIsNewStrategy, getCountQueryString, getDeleteAllQueryString, getDomainClass, getIsNewStrategy, getReadAllQuery, getReadAllQueryString, setDomainClass, setEntityManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.synyx.hades.dao.GenericDao |
|---|
count, delete, delete, deleteAll, exists, flush, readAll, readAll, readAll, readByPrimaryKey, save, save, saveAndFlush |
| Constructor Detail |
|---|
public GenericEclipseLinkJpaDao()
| Method Detail |
|---|
public static <T extends Persistable<PK>,PK extends java.io.Serializable> ExtendedGenericDao<T,PK> create(javax.persistence.EntityManager entityManager,
java.lang.Class<T> domainClass)
GenericEclipseLinkJpaDao instances.
T - the type of the entity to handlePK - the type of the entity's identifierentityManager - the EntityManager backing the DAOdomainClass - the domain class to handle
public java.util.List<T> readByExample(java.util.Collection<T> examples)
ExtendedGenericDao
ExtendedGenericDao.readByExample(Object...)
public java.util.List<T> readByExample(Sort sort,
java.util.Collection<T> examples)
ExtendedGenericDao
ExtendedGenericDao.readByExample(Object...)
public Page<T> readByExample(Pageable pageable,
java.util.Collection<T> examples)
ExtendedGenericDaonull for the pageable, the call is identical to
ExtendedGenericDao#readByExample(T...).
public void deleteByExample(java.util.Collection<T> examples)
ExtendedGenericDao
protected org.eclipse.persistence.jpa.JpaEntityManager getEntityManager()
GenericDaoSupportEntityManager.
getEntityManager in class GenericDaoSupport<T>public void validate()
GenericDaoSupport
validate in class GenericDaoSupport<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||