Class TranslationItemDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.referencelist.business.TranslationItemDAO
-
- All Implemented Interfaces:
ITranslationItemDAO
public final class TranslationItemDAO extends java.lang.Object implements ITranslationItemDAO
This class provides Data Access methods for TranslationItem objects
-
-
Constructor Summary
Constructors Constructor Description TranslationItemDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoiddeleteAllFromReferenceId(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a list of records linked to a ReferencevoiddeleteAllFromReferenceItemId(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a list of records linked to a ReferenceItemvoidinsert(TranslationItem item, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.TranslationItemload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.List<TranslationItem>selectTranslationItems(int idReference, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the TranslationItems objects in a reference and returns them as a listvoidstore(TranslationItem item, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(TranslationItem item, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceITranslationItemDAO- Parameters:
item- instance of the TranslationItem object to insertplugin- the Plugin
-
load
public TranslationItem load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceITranslationItemDAO- Parameters:
nKey- The identifier of the TranslationItemplugin- the Plugin- Returns:
- The instance of the TranslationItem
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceITranslationItemDAO- Parameters:
nKey- The identifier of the TranslationItem to deleteplugin- the Plugin
-
deleteAllFromReferenceId
public void deleteAllFromReferenceId(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a list of records linked to a Reference- Specified by:
deleteAllFromReferenceIdin interfaceITranslationItemDAO- Parameters:
nId- The identifier of the Referenceplugin- the Plugin
-
deleteAllFromReferenceItemId
public void deleteAllFromReferenceItemId(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a list of records linked to a ReferenceItem- Specified by:
deleteAllFromReferenceItemIdin interfaceITranslationItemDAO- Parameters:
nId- The identifier of the ReferenceItemplugin- the Plugin
-
store
public void store(TranslationItem item, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceITranslationItemDAO- Parameters:
item- the reference of the TranslationItemplugin- the Plugin
-
selectTranslationItems
public java.util.List<TranslationItem> selectTranslationItems(int idReference, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the TranslationItems objects in a reference and returns them as a list- Specified by:
selectTranslationItemsin interfaceITranslationItemDAO- Parameters:
idReference- the reference idplugin- the Plugin- Returns:
- The list which contains the data of all the TranslationItem objects
-
-