Class TranslationItemDAO
java.lang.Object
fr.paris.lutece.plugins.referencelist.business.TranslationItemDAO
- All Implemented Interfaces:
ITranslationItemDAO
@ApplicationScoped
public final class TranslationItemDAO
extends Object
implements ITranslationItemDAO
This class provides Data Access methods for TranslationItem objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(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.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectTranslationItems(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
-
Constructor Details
-
TranslationItemDAO
public TranslationItemDAO()
-
-
Method Details
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceITranslationItemDAO- Parameters:
item- instance of the TranslationItem object to insertplugin- the Plugin
-
load
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
Update the record in the table- Specified by:
storein interfaceITranslationItemDAO- Parameters:
item- the reference of the TranslationItemplugin- the Plugin
-
selectTranslationItems
public 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
-