fr.paris.lutece.plugins.crm.business.user
Class CRMUserDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.crm.business.user.CRMUserDAO
All Implemented Interfaces:
ICRMUserDAO

public class CRMUserDAO
extends java.lang.Object
implements ICRMUserDAO

CRMUserDAO


Constructor Summary
CRMUserDAO()
           
 
Method Summary
 void delete(int nIdCRMUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 int insert(CRMUser user, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 CRMUser load(int nIdCRMUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data from the table
 CRMUser loadByUserGuid(java.lang.String strUserGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data from a given user guid
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 void store(CRMUser user, 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

CRMUserDAO

public CRMUserDAO()
Method Detail

newPrimaryKey

public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key

Specified by:
newPrimaryKey in interface ICRMUserDAO
Parameters:
plugin - The Plugin
Returns:
The new primary key

insert

public int insert(CRMUser user,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Specified by:
insert in interface ICRMUserDAO
Parameters:
user - instance of the CRMUser object to insert
plugin - the Plugin
Returns:
the key of the newly created notification

load

public CRMUser load(int nIdCRMUser,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table

Specified by:
load in interface ICRMUserDAO
Parameters:
nIdCRMUser - The identifier of the CRMUser
plugin - the Plugin
Returns:
The instance of the CRMUser

loadByUserGuid

public CRMUser loadByUserGuid(java.lang.String strUserGuid,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from a given user guid

Specified by:
loadByUserGuid in interface ICRMUserDAO
Parameters:
strUserGuid - the user guid
plugin - the Plugin
Returns:
The instance of the CRMUser

store

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

Specified by:
store in interface ICRMUserDAO
Parameters:
user - the reference of the CRMUser
plugin - the Plugin

delete

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

Specified by:
delete in interface ICRMUserDAO
Parameters:
nIdCRMUser - int identifier of the CRMUser to delete
plugin - the Plugin


Copyright © 2011 Mairie de Paris. All Rights Reserved.