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

java.lang.Object
  extended by fr.paris.lutece.plugins.crm.business.user.CRMUserHome

public final class CRMUserHome
extends java.lang.Object

CRMUserHome


Method Summary
static int create(CRMUser user)
          Insert a new record in the table.
static CRMUser findByPrimaryKey(int nIdCRMUser)
          Load the data from the table
static CRMUser findByUserGuid(java.lang.String strUserGuid)
          Load the data from a given user guid
static int newPrimaryKey()
          Generates a new primary key
static void remove(int nIdCRMUser)
          Delete a record from the table
static void update(CRMUser user)
          Update the record in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newPrimaryKey

public static int newPrimaryKey()
Generates a new primary key

Returns:
The new primary key

create

public static int create(CRMUser user)
Insert a new record in the table.

Parameters:
user - instance of the CRMUser object to insert
Returns:
the key of the newly created notification

update

public static void update(CRMUser user)
Update the record in the table

Parameters:
user - the reference of the CRMUser

remove

public static void remove(int nIdCRMUser)
Delete a record from the table

Parameters:
nIdCRMUser - int identifier of the CRMUser to delete

findByPrimaryKey

public static CRMUser findByPrimaryKey(int nIdCRMUser)
Load the data from the table

Parameters:
nIdCRMUser - The identifier of the CRMUser
Returns:
The instance of the CRMUser

findByUserGuid

public static CRMUser findByUserGuid(java.lang.String strUserGuid)
Load the data from a given user guid

Parameters:
strUserGuid - The user guid
Returns:
The instance of the CRMUser


Copyright © 2011 Mairie de Paris. All Rights Reserved.