fr.paris.lutece.plugins.contact.business
Interface IContactDAO

All Known Implementing Classes:
ContactDAO

public interface IContactDAO

IContactDAO Interface


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
 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
 

Method Detail

delete

void delete(Contact contact,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Parameters:
contact - The Contact object
plugin - The plugin

insert

void insert(Contact contact,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
contact - The contact object
plugin - The plugin

load

Contact load(int nContactId,
             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of Contact from the table

Parameters:
nContactId - The identifier of Contact
plugin - The plugin
Returns:
the instance of the Contact

selectAll

java.util.Collection<Contact> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of contacts

Parameters:
plugin - The plugin
Returns:
The Collection of the Contacts

selectContactsByListWithString

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

Parameters:
nIdContactList - The id of contactList
strComboItem - the string to display at the top of the list
plugin - The plugin
Returns:
The Collection of the Contacts with the string at the top

store

void store(Contact contact,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Parameters:
contact - The reference of contact
plugin - The plugin


Copyright © 2008 Mairie de Paris. All Rights Reserved.