Package com.hack23.cia.service.data.api
Interface DataViewer
-
public interface DataViewer
The Interface DataViewer.
-
-
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> T
findFirstByProperty(java.lang.Class<T> clazz, javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object> property, java.lang.Object value)
Find first by 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.<T> java.util.List<T>
findListByProperty(java.lang.Class<T> clazz, java.lang.Object[] values, javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object>... properties)
Find list by property.<T> java.util.List<T>
findListByProperty(java.lang.Class<T> clazz, javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object> property, java.lang.Object value)
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.<T> java.util.List<T>
findOrderedListByProperty(java.lang.Class<T> clazz, 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.<T> java.util.List<T>
findOrderedListByProperty(java.lang.Class<T> clazz, 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.<T> java.util.List<T>
getAll(java.lang.Class<T> clazz)
Gets the all.<T> java.util.List<T>
getAllOrderBy(java.lang.Class<T> clazz, javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object> property)
Gets the all order by.<T> java.util.List<T>
getPage(java.lang.Class<T> clazz, int pageNr, int resultPerPage)
Gets the page.<T> java.util.List<T>
getPageOrderBy(java.lang.Class<T> clazz, int pageNr, int resultPerPage, javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object> property)
Gets the page order by.<T> java.lang.Long
getSize(java.lang.Class<T> clazz)
Gets the size.<T> T
load(java.lang.Class<T> clazz, java.lang.Object id)
Load.
-
-
-
Method Detail
-
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 clazz 2property2
- the property 2value
- the value- Returns:
- the t
-
findFirstByProperty
<T> T findFirstByProperty(java.lang.Class<T> clazz, javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object> property, java.lang.Object value)
Find first by property.- Type Parameters:
T
- the generic type- Parameters:
clazz
- the clazzproperty
- the propertyvalue
- 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 clazz 2property2
- the property 2value
- the value- Returns:
- the list
-
findListByProperty
<T> java.util.List<T> findListByProperty(java.lang.Class<T> clazz, java.lang.Object[] values, javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object>... properties)
Find list by property.- Type Parameters:
T
- the generic type- Parameters:
clazz
- the clazzvalues
- the valuesproperties
- the properties- Returns:
- the list
-
findListByProperty
<T> java.util.List<T> findListByProperty(java.lang.Class<T> clazz, javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object> property, java.lang.Object value)
Find list by property.- Type Parameters:
T
- the generic type- Parameters:
clazz
- the clazzproperty
- the propertyvalue
- the value- 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 clazz 2property2
- the property 2value
- the valueorderByProperty
- the order by property- 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 clazz 2property2
- the property 2value
- the valueorderByProperty
- the order by property- Returns:
- the list
-
findOrderedListByProperty
<T> java.util.List<T> findOrderedListByProperty(java.lang.Class<T> clazz, 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.- Type Parameters:
T
- the generic type- Parameters:
clazz
- the clazzproperty
- the propertyvalue
- the valueorderByProperty
- the order by property- Returns:
- the list
-
findOrderedListByProperty
<T> java.util.List<T> findOrderedListByProperty(java.lang.Class<T> clazz, 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.- Type Parameters:
T
- the generic type- Parameters:
clazz
- the clazzorderByProperty
- the order by propertyvalues
- the valuesproperties
- the properties- Returns:
- the list
-
getAll
<T> java.util.List<T> getAll(java.lang.Class<T> clazz)
Gets the all.- Type Parameters:
T
- the generic type- Parameters:
clazz
- the clazz- Returns:
- the all
-
getAllOrderBy
<T> java.util.List<T> getAllOrderBy(java.lang.Class<T> clazz, javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object> property)
Gets the all order by.- Type Parameters:
T
- the generic type- Parameters:
clazz
- the clazzproperty
- the property- Returns:
- the all order by
-
getPage
<T> java.util.List<T> getPage(java.lang.Class<T> clazz, int pageNr, int resultPerPage)
Gets the page.- Type Parameters:
T
- the generic type- Parameters:
clazz
- the clazzpageNr
- the page nrresultPerPage
- the result per page- Returns:
- the page
-
getPageOrderBy
<T> java.util.List<T> getPageOrderBy(java.lang.Class<T> clazz, int pageNr, int resultPerPage, javax.persistence.metamodel.SingularAttribute<T,? extends java.lang.Object> property)
Gets the page order by.- Type Parameters:
T
- the generic type- Parameters:
clazz
- the clazzpageNr
- the page nrresultPerPage
- the result per pageproperty
- the property- Returns:
- the page order by
-
getSize
<T> java.lang.Long getSize(java.lang.Class<T> clazz)
Gets the size.- Type Parameters:
T
- the generic type- Parameters:
clazz
- the clazz- Returns:
- the size
-
load
<T> T load(java.lang.Class<T> clazz, java.lang.Object id)
Load.- Type Parameters:
T
- the generic type- Parameters:
clazz
- the clazzid
- the id- Returns:
- the t
-
-