Interface DataContainer<T extends java.io.Serializable,​I extends java.io.Serializable>

  • Type Parameters:
    T - the generic type
    I - 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>
      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,​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 nr
        resultPerPage - 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 nr
        resultPerPage - the result per page
        orderBy - 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 property
        value - 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 values
        properties - 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 property
        value - the value
        orderByProperty - 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 property
        values - the values
        properties - 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 type
        V - the value type
        Parameters:
        clazz - the clazz
        property - the property
        clazz2 - the clazz2
        property2 - the property2
        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 clazz2
        property2 - the property2
        value - 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 type
        V - the value type
        Parameters:
        clazz - the clazz
        property - the property
        clazz2 - the clazz2
        property2 - the property2
        value - the value
        orderByProperty - 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 type
        V - the value type
        Parameters:
        clazz - the clazz
        property - the property
        clazz2 - the clazz2
        property2 - the property2
        value - the value
        orderByProperty - the order by property
        Returns:
        the list
      • load

        T load​(I id)
        Load.
        Parameters:
        id - the id
        Returns:
        the t
      • getSize

        java.lang.Long getSize()
        Gets the size.
        Returns:
        the size