Class CRMUserHome
- java.lang.Object
-
- fr.paris.lutece.plugins.crm.business.user.CRMUserHome
-
public final class CRMUserHome extends Object
CRMUserHome
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcreate(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 CRMUserfindByPrimaryKey(int nIdCRMUser)Load the data from the tablestatic CRMUserfindByUserGuid(String strUserGuid)Load the data from a given user guidstatic List<Integer>findListIdsCRMUserByFilter(CRMUserFilter filter)Find list ids crm user by filter.static intnewPrimaryKey()Generates a new primary keystatic voidremove(int nIdCRMUser)Delete a record from the tablestatic voidupdate(CRMUser user)Update the record in the table
-
-
-
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
-
-