|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcom.hack23.cia.service.data.impl.AbstractGenericDAOImpl<T,ID>
T - the generic typeID - the generic type@Repository public abstract class AbstractGenericDAOImpl<T extends Serializable,ID extends Serializable>
The Class AbstractGenericDAOImpl.
| Constructor Summary | |
|---|---|
protected |
AbstractGenericDAOImpl(Class<T> persistentClass)
Instantiates a new abstract generic dao impl. |
| Method Summary | |
|---|---|
protected void |
addCacheHints(javax.persistence.TypedQuery<?> typedQuery,
String comment)
Adds the cache hints. |
void |
delete(T entity)
Delete. |
T |
findFirstByProperty(javax.persistence.metamodel.SingularAttribute<T,? extends Object> property,
Object value)
Find first by property. |
List<T> |
findListByProperty(javax.persistence.metamodel.SingularAttribute<T,? extends Object> property,
Object value)
Find list by property. |
List<T> |
getAll()
Gets the all. |
javax.persistence.criteria.CriteriaBuilder |
getCriteriaBuilder()
Gets the criteria builder. |
protected javax.persistence.EntityManager |
getEntityManager()
Gets the entity manager. |
protected javax.persistence.metamodel.Metamodel |
getMetamodel()
Gets the metamodel. |
Class<T> |
getPersistentClass()
Gets the persistent class. |
T |
load(ID id)
Load. |
T |
merge(T entity)
Merge. |
void |
persist(List<T> list)
Persist. |
void |
persist(T entity)
Persist. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.hack23.cia.service.data.api.AbstractGenericDAO |
|---|
getSize |
| Constructor Detail |
|---|
protected AbstractGenericDAOImpl(Class<T> persistentClass)
persistentClass - the persistent class| Method Detail |
|---|
protected void addCacheHints(javax.persistence.TypedQuery<?> typedQuery,
String comment)
typedQuery - the typed querycomment - the commentpublic void delete(T entity)
AbstractGenericDAO
delete in interface AbstractGenericDAO<T extends Serializable,ID extends Serializable>entity - the entity
public T findFirstByProperty(javax.persistence.metamodel.SingularAttribute<T,? extends Object> property,
Object value)
AbstractGenericDAO
findFirstByProperty in interface AbstractGenericDAO<T extends Serializable,ID extends Serializable>property - the propertyvalue - the value
public List<T> findListByProperty(javax.persistence.metamodel.SingularAttribute<T,? extends Object> property,
Object value)
AbstractGenericDAO
findListByProperty in interface AbstractGenericDAO<T extends Serializable,ID extends Serializable>property - the propertyvalue - the value
public List<T> getAll()
AbstractGenericDAO
getAll in interface AbstractGenericDAO<T extends Serializable,ID extends Serializable>public javax.persistence.criteria.CriteriaBuilder getCriteriaBuilder()
protected javax.persistence.EntityManager getEntityManager()
protected final javax.persistence.metamodel.Metamodel getMetamodel()
public Class<T> getPersistentClass()
public T load(ID id)
AbstractGenericDAO
load in interface AbstractGenericDAO<T extends Serializable,ID extends Serializable>id - the id
public T merge(T entity)
AbstractGenericDAO
merge in interface AbstractGenericDAO<T extends Serializable,ID extends Serializable>entity - the entity
public void persist(List<T> list)
AbstractGenericDAO
persist in interface AbstractGenericDAO<T extends Serializable,ID extends Serializable>list - the listpublic void persist(T entity)
AbstractGenericDAO
persist in interface AbstractGenericDAO<T extends Serializable,ID extends Serializable>entity - the entity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||