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
 int maxOrderContact(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Calculate the new max order
 java.util.Collection<Contact> selectContactList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of contacts
 fr.paris.lutece.util.ReferenceList selectContactsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of contacts
 int selectIdByOrder(int nContactOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns a contact identifier in a distinct order
 void store(Contact contact, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 void storeContactOrder(int nNewOrder, int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Modify the order of a contact
 void updateContactOrder(int nNewOrder, int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Modify the order of a contact
 

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
Throws:
AppException

maxOrderContact

int maxOrderContact(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Calculate the new max order

Parameters:
plugin - The plugin
Returns:
the max order of contact

selectContactList

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

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

selectContactsList

fr.paris.lutece.util.ReferenceList selectContactsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of contacts

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

selectIdByOrder

int selectIdByOrder(int nContactOrder,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a contact identifier in a distinct order

Parameters:
nContactOrder - The order number
plugin - The plugin
Returns:
The order of the Contact

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

storeContactOrder

void storeContactOrder(int nNewOrder,
                       int nId,
                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
Modify the order of a contact

Parameters:
nNewOrder - The order number
nId - The contact identifier
plugin - The plugin

updateContactOrder

void updateContactOrder(int nNewOrder,
                        int nId,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Modify the order of a contact

Parameters:
nNewOrder - The order number
nId - The contact identifier
plugin - The plugin


Copyright © 2007 Mairie de Paris. All Rights Reserved.