Class DataEntityDAO

  • All Implemented Interfaces:
    IDataEntityDAO

    public final class DataEntityDAO
    extends java.lang.Object
    implements IDataEntityDAO
    This class provides Data Access methods for Entity objects
    • Constructor Summary

      Constructors 
      Constructor Description
      DataEntityDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(java.lang.String strKey)
      Delete a record from the table
      void insert​(DataEntity entity)
      Insert a new record in the table.
      DataEntity load​(java.lang.String strKey)
      Load the data of the entity from the table
      java.util.List<DataEntity> selectEntitiesByPrefix​(java.lang.String strPrefix)
      Load the data of all the entity objects whose key share a prefix
      java.util.List<DataEntity> selectEntitiesList()
      Load the data of all the entitys and returns them as a List
      void store​(DataEntity entity)
      Update the record in the table
      • Methods inherited from class java.lang.Object

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

      • DataEntityDAO

        public DataEntityDAO()
    • Method Detail

      • insert

        public void insert​(DataEntity entity)
        Insert a new record in the table.
        Specified by:
        insert in interface IDataEntityDAO
        Parameters:
        entity - instance of the Entity object to insert
      • load

        public DataEntity load​(java.lang.String strKey)
        Load the data of the entity from the table
        Specified by:
        load in interface IDataEntityDAO
        Parameters:
        strKey - The identifier of the entity
        Returns:
        the instance of the Entity
      • delete

        public void delete​(java.lang.String strKey)
        Delete a record from the table
        Specified by:
        delete in interface IDataEntityDAO
        Parameters:
        strKey - The identifier of the entity
      • store

        public void store​(DataEntity entity)
        Update the record in the table
        Specified by:
        store in interface IDataEntityDAO
        Parameters:
        entity - The reference of the entity
      • selectEntitiesList

        public java.util.List<DataEntity> selectEntitiesList()
        Load the data of all the entitys and returns them as a List
        Specified by:
        selectEntitiesList in interface IDataEntityDAO
        Returns:
        The List which contains the data of all the entitys
      • selectEntitiesByPrefix

        public java.util.List<DataEntity> selectEntitiesByPrefix​(java.lang.String strPrefix)
        Description copied from interface: IDataEntityDAO
        Load the data of all the entity objects whose key share a prefix
        Specified by:
        selectEntitiesByPrefix in interface IDataEntityDAO
        Parameters:
        strPrefix - the prefix
        Returns:
        the list which contains the data of all the entity objects whose key share a prefix