Interface IContactDAO
- All Known Implementing Classes:
ContactDAO
public interface IContactDAO
IContactDAO Interface
-
Method Summary
Modifier and TypeMethodDescriptionvoidDelete a record from the tablevoidInsert a new record in the table.load(int nContactId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of Contact from the tableselectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the list of contactsintselectContactIdByOrder(int nContactOrder, int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns a contact identifier in a distinct orderintselectContactOrderById(int nIdContact, int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns a contact identifier in a distinct orderfr.paris.lutece.util.ReferenceListselectContactsByListWithString(int nIdContactList, String strComboItem, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the list of contactsselectContactsListByIds(List<Integer> listIds, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the contact objects and returns them as a listvoidUpdate the record in the tablevoidstoreContactOrder(int nNewOrder, int nId, int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin) Modify the order of a contactvoidupdateHits(int nIdContact, int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update hits of the contact in contact and contact_list_contact tables
-
Method Details
-
delete
Delete a record from the table- Parameters:
contact- The Contact objectplugin- The plugin
-
insert
Insert a new record in the table.- Parameters:
contact- The contact objectplugin- The plugin
-
load
Load the data of Contact from the table- Parameters:
nContactId- The identifier of Contactplugin- The plugin- Returns:
- the instance of the Contact
-
selectAll
Load the list of contacts- Parameters:
plugin- The plugin- Returns:
- The Collection of the Contacts
-
selectContactsByListWithString
fr.paris.lutece.util.ReferenceList selectContactsByListWithString(int nIdContactList, String strComboItem, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the list of contacts- Parameters:
nIdContactList- The id of contactListstrComboItem- the string to display at the top of the listplugin- The plugin- Returns:
- The Collection of the Contacts with the string at the top
-
store
Update the record in the table- Parameters:
contact- The reference of contactplugin- The plugin
-
updateHits
void updateHits(int nIdContact, int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update hits of the contact in contact and contact_list_contact tables- Parameters:
nIdContact- id of the contactnIdContactList- id of contact listplugin- the plugin Contact
-
storeContactOrder
void storeContactOrder(int nNewOrder, int nId, int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin) Modify the order of a contact- Parameters:
nIdContactList- the id of contactListnNewOrder- The order numbernId- The contact identifierplugin- The plugin
-
selectContactIdByOrder
int selectContactIdByOrder(int nContactOrder, int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns a contact identifier in a distinct order- Parameters:
nIdContactList- the id of contactListnContactOrder- The order numberplugin- The plugin- Returns:
- The order of the Contact
-
selectContactOrderById
int selectContactOrderById(int nIdContact, int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns a contact identifier in a distinct order- Parameters:
nIdContact- the id of contactnIdContactList- the id of the contact Listplugin- The plugin- Returns:
- The order of the Contact
-
selectContactsListByIds
List<Contact> selectContactsListByIds(List<Integer> listIds, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the contact objects and returns them as a list- Parameters:
listIds- list of idsplugin- The plugin- Returns:
- The list which contains the data of all the contact objects
-