Interface ITranslationItemDAO
- All Known Implementing Classes:
TranslationItemDAO
public interface ITranslationItemDAO
ITranslationItemDAO Interface
-
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 translationItem, 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 nIdReference, 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 translationItem, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table
-
Method Details
-
insert
Insert a new record in the table.- Parameters:
translationItem- instance of the TranslationItem object to insertplugin- the Plugin
-
store
Update the record in the table- Parameters:
translationItem- the reference of the TranslationItemplugin- the Plugin
-
delete
void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Parameters:
nKey- The identifier of the TranslationItem to deleteplugin- the Plugin
-
deleteAllFromReferenceId
void deleteAllFromReferenceId(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a list of records linked to a Reference- Parameters:
nId- The identifier of the Referenceplugin- the Plugin
-
deleteAllFromReferenceItemId
void deleteAllFromReferenceItemId(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a list of records linked to a ReferenceItem- Parameters:
nId- The identifier of the ReferenceItemplugin- the Plugin
-
load
Load the data from the table- Parameters:
nKey- The identifier of the TranslationItemplugin- the Plugin- Returns:
- The instance of the TranslationItem
-
selectTranslationItems
List<TranslationItem> selectTranslationItems(int nIdReference, 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- Parameters:
nIdReference- the reference idplugin- the Plugin- Returns:
- The list which contains the data of all the TranslationItem objects
-