Interface DataViewer


  • public interface DataViewer
    The Interface DataViewer.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <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.
      <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 type
        V - the value type
        Parameters:
        clazz - the clazz
        property - the property
        clazz2 - the clazz 2
        property2 - the property 2
        value - 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 clazz
        property - the property
        value - 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 type
        V - the value type
        Parameters:
        clazz - the clazz
        property - the property
        clazz2 - the clazz 2
        property2 - the property 2
        value - 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 clazz
        values - the values
        properties - 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 clazz
        property - the property
        value - 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 type
        V - the value type
        Parameters:
        clazz - the clazz
        property - the property
        clazz2 - the clazz 2
        property2 - the property 2
        value - the value
        orderByProperty - 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 type
        V - the value type
        Parameters:
        clazz - the clazz
        property - the property
        clazz2 - the clazz 2
        property2 - the property 2
        value - the value
        orderByProperty - 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 clazz
        property - the property
        value - the value
        orderByProperty - 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 clazz
        orderByProperty - the order by property
        values - the values
        properties - 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 clazz
        property - 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 clazz
        pageNr - the page nr
        resultPerPage - 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 clazz
        pageNr - the page nr
        resultPerPage - the result per page
        property - 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 clazz
        id - the id
        Returns:
        the t