
T - the generic typeI - the generic typepublic interface AbstractGenericDAO<T extends Serializable,I extends Serializable>
| Modifier and Type | Method and Description |
|---|---|
void |
delete(T entity)
Delete.
|
T |
findFirstByProperty(javax.persistence.metamodel.SingularAttribute<T,? extends Object> property,
Object value)
Find first by property.
|
<V> List<T> |
findListByEmbeddedProperty(javax.persistence.metamodel.SingularAttribute<T,V> property,
Class<V> clazz2,
javax.persistence.metamodel.SingularAttribute<V,? extends Object> property2,
Object value)
Find list by embedded property.
|
List<T> |
findListByProperty(Object[] values,
javax.persistence.metamodel.SingularAttribute<T,? extends Object>... properties)
Find list by property.
|
List<T> |
findListByProperty(javax.persistence.metamodel.SingularAttribute<T,? extends Object> property,
Object value)
Find list by property.
|
<V> List<T> |
findOrderedByPropertyListByEmbeddedProperty(javax.persistence.metamodel.SingularAttribute<T,V> property,
Class<V> clazz2,
javax.persistence.metamodel.SingularAttribute<V,? extends Object> property2,
Object value,
javax.persistence.metamodel.SingularAttribute<T,? extends Object> orderByProperty)
Find ordered by property list by embedded property.
|
List<T> |
getAll()
Gets the all.
|
List<T> |
getAllOrderBy(javax.persistence.metamodel.SingularAttribute<T,? extends Object> orderBy)
Gets the all order by.
|
List<T> |
getPage(int pageNr,
int resultPerPage)
Gets the page.
|
List<T> |
getPageOrderBy(int pageNr,
int resultPerPage,
javax.persistence.metamodel.SingularAttribute<T,? extends Object> orderBy)
Gets the page order by.
|
Long |
getSize()
Gets the size.
|
T |
load(I id)
Load.
|
T |
merge(T entity)
Merge.
|
void |
persist(List<T> list)
Persist.
|
void |
persist(T entity)
Persist.
|
List<T> |
search(String searchExpression,
Integer maxResults,
String... fields)
Search.
|
void delete(T entity)
entity - the entityT findFirstByProperty(javax.persistence.metamodel.SingularAttribute<T,? extends Object> property, Object value)
property - the propertyvalue - the valueList<T> findListByProperty(Object[] values, javax.persistence.metamodel.SingularAttribute<T,? extends Object>... properties)
values - the valuesproperties - the propertiesList<T> findListByProperty(javax.persistence.metamodel.SingularAttribute<T,? extends Object> property, Object value)
property - the propertyvalue - the value<V> List<T> findListByEmbeddedProperty(javax.persistence.metamodel.SingularAttribute<T,V> property, Class<V> clazz2, javax.persistence.metamodel.SingularAttribute<V,? extends Object> property2, Object value)
V - the value typeproperty - the propertyclazz2 - the clazz 2property2 - the property 2value - the value<V> List<T> findOrderedByPropertyListByEmbeddedProperty(javax.persistence.metamodel.SingularAttribute<T,V> property, Class<V> clazz2, javax.persistence.metamodel.SingularAttribute<V,? extends Object> property2, Object value, javax.persistence.metamodel.SingularAttribute<T,? extends Object> orderByProperty)
V - the value typeproperty - the propertyclazz2 - the clazz 2property2 - the property 2value - the valueorderByProperty - the order by propertyList<T> getAllOrderBy(javax.persistence.metamodel.SingularAttribute<T,? extends Object> orderBy)
orderBy - the order byList<T> getPage(int pageNr, int resultPerPage)
pageNr - the page nrresultPerPage - the result per pageList<T> getPageOrderBy(int pageNr, int resultPerPage, javax.persistence.metamodel.SingularAttribute<T,? extends Object> orderBy)
pageNr - the page nrresultPerPage - the result per pageorderBy - the order byLong getSize()
void persist(T entity)
entity - the entityCopyright © 2010–2017 www.hack23.com. All rights reserved.