Class CRMUserDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.crm.business.user.CRMUserDAO
-
- All Implemented Interfaces:
ICRMUserDAO
public class CRMUserDAO extends Object implements ICRMUserDAO
CRMUserDAO
-
-
Constructor Summary
Constructors Constructor Description CRMUserDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nIdCRMUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tableintinsert(CRMUser user, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.CRMUserload(int nIdCRMUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableCRMUserloadByUserGuid(String strUserGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from a given user guidintnewPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)Generates a new primary keyList<CRMUser>selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)Find all.List<CRMUser>selectByListIds(List<Integer> listIdsCRMUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)Select by list ids.List<Integer>selectListIdsCRMUserByFilter(CRMUserFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find list ids crm user by filter.voidstore(CRMUser user, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
newPrimaryKey
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key- Specified by:
newPrimaryKeyin interfaceICRMUserDAO- 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:
insertin interfaceICRMUserDAO- Parameters:
user- instance of the CRMUser object to insertplugin- 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:
loadin interfaceICRMUserDAO- Parameters:
nIdCRMUser- The identifier of the CRMUserplugin- the Plugin- Returns:
- The instance of the CRMUser
-
loadByUserGuid
public CRMUser loadByUserGuid(String strUserGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from a given user guid- Specified by:
loadByUserGuidin interfaceICRMUserDAO- Parameters:
strUserGuid- the user guidplugin- 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:
storein interfaceICRMUserDAO- Parameters:
user- the reference of the CRMUserplugin- the Plugin
-
delete
public void delete(int nIdCRMUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceICRMUserDAO- Parameters:
nIdCRMUser- int identifier of the CRMUser to deleteplugin- the Plugin
-
selectAll
public List<CRMUser> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all.- Specified by:
selectAllin interfaceICRMUserDAO- Parameters:
plugin- the plugin- Returns:
- the list
-
selectListIdsCRMUserByFilter
public List<Integer> selectListIdsCRMUserByFilter(CRMUserFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find list ids crm user by filter.- Specified by:
selectListIdsCRMUserByFilterin interfaceICRMUserDAO- Parameters:
filter- the filterplugin- the plugin- Returns:
- the list
-
selectByListIds
public List<CRMUser> selectByListIds(List<Integer> listIdsCRMUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select by list ids.- Specified by:
selectByListIdsin interfaceICRMUserDAO- Parameters:
listIdsCRMUser- the list ids crm userplugin- the plugin- Returns:
- the list
-
-