public final class ContactDAO extends Object implements IContactDAO
Constructor and Description |
---|
ContactDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(Contact contact,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(Contact contact,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Contact |
load(int nContactId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of Contact from the table
|
Collection<Contact> |
selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of contacts
|
int |
selectContactIdByOrder(int nContactOrder,
int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a contact identifier in a distinct order
|
int |
selectContactOrderById(int nIdContact,
int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the order of a contact in a list, using the Identifier
|
fr.paris.lutece.util.ReferenceList |
selectContactsByListWithString(int nIdContactList,
String strComboItem,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of contacts
|
void |
store(Contact contact,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
void |
storeContactOrder(int nNewOrder,
int nId,
int nIdContactList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Modify the order of a contact
|
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
|
public void insert(Contact contact, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IContactDAO
contact
- The contact objectplugin
- The pluginpublic Contact load(int nContactId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IContactDAO
nContactId
- The identifier of Contactplugin
- The pluginpublic void delete(Contact contact, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IContactDAO
contact
- The Contact objectplugin
- The pluginpublic void store(Contact contact, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IContactDAO
contact
- The reference of contactplugin
- The pluginpublic fr.paris.lutece.util.ReferenceList selectContactsByListWithString(int nIdContactList, String strComboItem, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectContactsByListWithString
in interface IContactDAO
nIdContactList
- The id of contact ListstrComboItem
- the string to display at the top of the listplugin
- The pluginpublic Collection<Contact> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAll
in interface IContactDAO
plugin
- The pluginpublic void updateHits(int nIdContact, int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateHits
in interface IContactDAO
nIdContact
- id of the contactnIdContactList
- id of contact listplugin
- the plugin Contactpublic void storeContactOrder(int nNewOrder, int nId, int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
storeContactOrder
in interface IContactDAO
nIdContactList
- The id of contactListnNewOrder
- The order numbernId
- The contact identifierplugin
- The pluginpublic int selectContactIdByOrder(int nContactOrder, int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectContactIdByOrder
in interface IContactDAO
nIdContactList
- the id of the contact ListnContactOrder
- The order numberplugin
- The pluginpublic int selectContactOrderById(int nIdContact, int nIdContactList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectContactOrderById
in interface IContactDAO
nIdContact
- the id of contactnIdContactList
- the id of contactListplugin
- the plugin contactCopyright © 2018 City of Paris. All rights reserved.