Class DataEntityHome


  • public final class DataEntityHome
    extends java.lang.Object
    This class provides instances management methods (create, find, ...) for Entity objects
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static DataEntity create​(DataEntity entity)
      Create an instance of the entity class
      static java.util.List<DataEntity> findAll()
      Load the data of all the entity objects and returns them in form of a collection
      static java.util.List<DataEntity> findByPrefix​(java.lang.String strPrefix)
      Load the data of all the entity objects whose key share a prefix
      static DataEntity findByPrimaryKey​(java.lang.String strKey)
      Returns an instance of a entity whose identifier is specified in parameter
      static void remove​(java.lang.String strKey)
      Remove the entity whose identifier is specified in parameter
      static DataEntity update​(DataEntity entity)
      Update of the entity data specified in parameter
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • create

        public static DataEntity create​(DataEntity entity)
        Create an instance of the entity class
        Parameters:
        entity - The instance of the Entity which contains the informations to store
        Returns:
        The instance of entity which has been created with its primary key.
      • update

        public static DataEntity update​(DataEntity entity)
        Update of the entity data specified in parameter
        Parameters:
        entity - The instance of the Entity which contains the data to store
        Returns:
        The instance of the entity which has been updated
      • remove

        public static void remove​(java.lang.String strKey)
        Remove the entity whose identifier is specified in parameter
        Parameters:
        strKey - The entity Id
      • findByPrimaryKey

        public static DataEntity findByPrimaryKey​(java.lang.String strKey)
        Returns an instance of a entity whose identifier is specified in parameter
        Parameters:
        strKey - The entity primary key
        Returns:
        an instance of Entity
      • findAll

        public static java.util.List<DataEntity> findAll()
        Load the data of all the entity objects and returns them in form of a collection
        Returns:
        the list which contains the data of all the entity objects
      • findByPrefix

        public static java.util.List<DataEntity> findByPrefix​(java.lang.String strPrefix)
        Load the data of all the entity objects whose key share a prefix
        Parameters:
        strPrefix - the prefix
        Returns:
        the list which contains the data of all the entity objects whose key share a prefix
        Since:
        7.0.17