Class DataEntityDAO
- java.lang.Object
-
- fr.paris.lutece.portal.business.datastore.DataEntityDAO
-
- All Implemented Interfaces:
IDataEntityDAO
public final class DataEntityDAO extends 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 voiddelete(String strKey)Delete a record from the tablevoidinsert(DataEntity entity)Insert a new record in the table.DataEntityload(String strKey)Load the data of the entity from the tableList<DataEntity>selectEntitiesList()Load the data of all the entitys and returns them as a Listvoidstore(DataEntity entity)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(DataEntity entity)
Insert a new record in the table.- Specified by:
insertin interfaceIDataEntityDAO- Parameters:
entity- instance of the Entity object to insert
-
load
public DataEntity load(String strKey)
Load the data of the entity from the table- Specified by:
loadin interfaceIDataEntityDAO- Parameters:
strKey- The identifier of the entity- Returns:
- the instance of the Entity
-
delete
public void delete(String strKey)
Delete a record from the table- Specified by:
deletein interfaceIDataEntityDAO- Parameters:
strKey- The identifier of the entity
-
store
public void store(DataEntity entity)
Update the record in the table- Specified by:
storein interfaceIDataEntityDAO- Parameters:
entity- The reference of the entity
-
selectEntitiesList
public List<DataEntity> selectEntitiesList()
Load the data of all the entitys and returns them as a List- Specified by:
selectEntitiesListin interfaceIDataEntityDAO- Returns:
- The List which contains the data of all the entitys
-
-