|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.contact.business.ContactDAO
public final class ContactDAO
This class provides Data Access methods for Contact objects
Constructor Summary | |
---|---|
ContactDAO()
|
Method Summary | |
---|---|
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 |
java.util.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,
java.lang.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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContactDAO()
Method Detail |
---|
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 plugin
public 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, java.lang.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 plugin
public java.util.Collection<Contact> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAll
in interface IContactDAO
plugin
- The plugin
public 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 plugin
public 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 contact
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |