fr.paris.lutece.plugins.contact.business
Class ContactDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.contact.business.ContactDAO
All Implemented Interfaces:
IContactDAO

public final class ContactDAO
extends java.lang.Object
implements IContactDAO

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
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContactDAO

public ContactDAO()
Method Detail

insert

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

Specified by:
insert in interface IContactDAO
Parameters:
contact - The contact object
plugin - The plugin

load

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

Specified by:
load in interface IContactDAO
Parameters:
nContactId - The identifier of Contact
plugin - The plugin
Returns:
the instance of the Contact

delete

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

Specified by:
delete in interface IContactDAO
Parameters:
contact - The Contact object
plugin - The plugin

store

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

Specified by:
store in interface IContactDAO
Parameters:
contact - The reference of contact
plugin - The plugin

selectContactsByListWithString

public 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

Specified by:
selectContactsByListWithString in interface IContactDAO
Parameters:
nIdContactList -
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

selectAll

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

Specified by:
selectAll in interface IContactDAO
Parameters:
plugin - The plugin
Returns:
The Collection of the Contacts


Copyright © 2008 Mairie de Paris. All Rights Reserved.