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 Object

CRMUserHome


Method Summary
static int create(CRMUser user)
          Insert a new record in the table.
static List<CRMUser> findAll()
          Load the data from the table.
static List<CRMUser> findByListIds(List<Integer> listIdsCRMUser)
          Find by list ids.
static CRMUser findByPrimaryKey(int nIdCRMUser)
          Load the data from the table
static CRMUser findByUserGuid(String strUserGuid)
          Load the data from a given user guid
static List<Integer> findListIdsCRMUserByFilter(CRMUserFilter filter)
          Find list ids crm user by filter.
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(String strUserGuid)
Load the data from a given user guid

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

findAll

public static List<CRMUser> findAll()
Load the data from the table.

Returns:
The instance of the CRMUser

findListIdsCRMUserByFilter

public static List<Integer> findListIdsCRMUserByFilter(CRMUserFilter filter)
Find list ids crm user by filter.

Parameters:
filter - the filter
Returns:
the list

findByListIds

public static List<CRMUser> findByListIds(List<Integer> listIdsCRMUser)
Find by list ids.

Parameters:
listIdsCRMUser - the list ids crm user
Returns:
the list


Copyright © 2013 Mairie de Paris. All Rights Reserved.