Package com.hack23.cia.service.api
Interface DataContainer<T extends java.io.Serializable,I extends java.io.Serializable>
-
- Type Parameters:
T
- the generic typeI
- the generic type
public interface DataContainer<T extends java.io.Serializable,I extends java.io.Serializable>
The Interface DataContainer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T,V>
TfindByQueryProperty(java.lang.Class<T> clazz, javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object> property, java.lang.Class<V> clazz2, javax.persistence.metamodel.SingularAttribute<V,? extends java.lang.Object> property2, java.lang.Object value)
Find by query property.<T,V>
java.util.List<T>findListByEmbeddedProperty(java.lang.Class<T> clazz, javax.persistence.metamodel.SingularAttribute<T,V> property, java.lang.Class<V> clazz2, javax.persistence.metamodel.SingularAttribute<V,? extends java.lang.Object> property2, java.lang.Object value)
Find list by embedded property.java.util.List<T>
findListByProperty(java.lang.Object[] values, javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object>... properties)
Find list by property.<T,V>
java.util.List<T>findOrderedByPropertyListByEmbeddedProperty(java.lang.Class<T> clazz, javax.persistence.metamodel.SingularAttribute<T,V> property, java.lang.Class<V> clazz2, javax.persistence.metamodel.SingularAttribute<V,? extends java.lang.Object> property2, java.lang.Object value, javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object> orderByProperty)
Find ordered by property list by embedded property.<T,V>
java.util.List<T>findOrderedListByEmbeddedProperty(java.lang.Class<T> clazz, javax.persistence.metamodel.SingularAttribute<T,V> property, java.lang.Class<V> clazz2, javax.persistence.metamodel.SingularAttribute<V,? extends java.lang.Object> property2, java.lang.Object value, javax.persistence.metamodel.SingularAttribute<V,? extends java.lang.Object> orderByProperty)
Find ordered list by embedded property.java.util.List<T>
findOrderedListByProperty(javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object> orderByProperty, java.lang.Object[] values, javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object>... properties)
Find ordered list by property.java.util.List<T>
findOrderedListByProperty(javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object> property, java.lang.Object value, javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object> orderByProperty)
Find ordered list by property.java.util.List<T>
getAll()
Gets the all.java.util.List<T>
getAllBy(javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object> property, java.lang.Object value)
Gets the all by.java.util.List<T>
getAllOrderBy(javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object> property)
Gets the all order by.java.util.List<T>
getPage(int pageNr, int resultPerPage)
Gets the page.java.util.List<T>
getPageOrderBy(int pageNr, int resultPerPage, javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object> orderBy)
Gets the page order by.java.lang.Long
getSize()
Gets the size.T
load(I id)
Load.
-
-
-
Method Detail
-
getAll
java.util.List<T> getAll()
Gets the all.- Returns:
- the all
-
getAllOrderBy
java.util.List<T> getAllOrderBy(javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object> property)
Gets the all order by.- Parameters:
property
- the property- Returns:
- the all order by
-
getPage
java.util.List<T> getPage(int pageNr, int resultPerPage)
Gets the page.- Parameters:
pageNr
- the page nrresultPerPage
- the result per page- Returns:
- the page
-
getPageOrderBy
java.util.List<T> getPageOrderBy(int pageNr, int resultPerPage, javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object> orderBy)
Gets the page order by.- Parameters:
pageNr
- the page nrresultPerPage
- the result per pageorderBy
- the order by- Returns:
- the page order by
-
getAllBy
java.util.List<T> getAllBy(javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object> property, java.lang.Object value)
Gets the all by.- Parameters:
property
- the propertyvalue
- the value- Returns:
- the all by
-
findListByProperty
java.util.List<T> findListByProperty(java.lang.Object[] values, javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object>... properties)
Find list by property.- Parameters:
values
- the valuesproperties
- the properties- Returns:
- the list
-
findOrderedListByProperty
java.util.List<T> findOrderedListByProperty(javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object> property, java.lang.Object value, javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object> orderByProperty)
Find ordered list by property.- Parameters:
property
- the propertyvalue
- the valueorderByProperty
- the order by property- Returns:
- the list
-
findOrderedListByProperty
java.util.List<T> findOrderedListByProperty(javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object> orderByProperty, java.lang.Object[] values, javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object>... properties)
Find ordered list by property.- Parameters:
orderByProperty
- the order by propertyvalues
- the valuesproperties
- the properties- Returns:
- the list
-
findByQueryProperty
<T,V> T findByQueryProperty(java.lang.Class<T> clazz, javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object> property, java.lang.Class<V> clazz2, javax.persistence.metamodel.SingularAttribute<V,? extends java.lang.Object> property2, java.lang.Object value)
Find by query property.- Type Parameters:
T
- the generic typeV
- the value type- Parameters:
clazz
- the clazzproperty
- the propertyclazz2
- the clazz2property2
- the property2value
- the value- Returns:
- the t
-
findListByEmbeddedProperty
<T,V> java.util.List<T> findListByEmbeddedProperty(java.lang.Class<T> clazz, javax.persistence.metamodel.SingularAttribute<T,V> property, java.lang.Class<V> clazz2, javax.persistence.metamodel.SingularAttribute<V,? extends java.lang.Object> property2, java.lang.Object value)
Find list by embedded property.- Type Parameters:
T
- the generic typeV
- the value type- Parameters:
clazz
- the clazzproperty
- the propertyclazz2
- the clazz2property2
- the property2value
- the value- Returns:
- the list
-
findOrderedListByEmbeddedProperty
<T,V> java.util.List<T> findOrderedListByEmbeddedProperty(java.lang.Class<T> clazz, javax.persistence.metamodel.SingularAttribute<T,V> property, java.lang.Class<V> clazz2, javax.persistence.metamodel.SingularAttribute<V,? extends java.lang.Object> property2, java.lang.Object value, javax.persistence.metamodel.SingularAttribute<V,? extends java.lang.Object> orderByProperty)
Find ordered list by embedded property.- Type Parameters:
T
- the generic typeV
- the value type- Parameters:
clazz
- the clazzproperty
- the propertyclazz2
- the clazz2property2
- the property2value
- the valueorderByProperty
- the order by property- Returns:
- the list
-
findOrderedByPropertyListByEmbeddedProperty
<T,V> java.util.List<T> findOrderedByPropertyListByEmbeddedProperty(java.lang.Class<T> clazz, javax.persistence.metamodel.SingularAttribute<T,V> property, java.lang.Class<V> clazz2, javax.persistence.metamodel.SingularAttribute<V,? extends java.lang.Object> property2, java.lang.Object value, javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object> orderByProperty)
Find ordered by property list by embedded property.- Type Parameters:
T
- the generic typeV
- the value type- Parameters:
clazz
- the clazzproperty
- the propertyclazz2
- the clazz2property2
- the property2value
- the valueorderByProperty
- the order by property- Returns:
- the list
-
getSize
java.lang.Long getSize()
Gets the size.- Returns:
- the size
-
-