Class CacheUserAttributeDAO
java.lang.Object
fr.paris.lutece.plugins.mylutece.modules.cacheuserattribute.business.CacheUserAttributeDAO
- All Implemented Interfaces:
ICacheUserAttributeDAO
@ApplicationScoped
public final class CacheUserAttributeDAO
extends Object
implements ICacheUserAttributeDAO
This class provides Data Access methods for CacheUserAttribute objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoidinsert(CacheUserAttribute cacheUserAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableloadByUserAndAttributeId(String idUser, int idAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectByListUserIdsAndAttributeId(List<String> listUserIds, int nAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the cacheUserAttribute objects by list id user and id attributeselectCacheUserAttributesListByUserKey(String strUserKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the cacheUserAttribute objects and returns them as a listselectIdCacheUserAttributesListByUserKey(String strUserKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the id of all the cacheUserAttribute objects and returns them as a listvoidstore(CacheUserAttribute cacheUserAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table
-
Constructor Details
-
CacheUserAttributeDAO
public CacheUserAttributeDAO()
-
-
Method Details
-
insert
public void insert(CacheUserAttribute cacheUserAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.- Specified by:
insertin interfaceICacheUserAttributeDAO- Parameters:
cacheUserAttribute- instance of the CacheUserAttribute object to insertplugin- the Plugin
-
load
public Optional<CacheUserAttribute> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the table- Specified by:
loadin interfaceICacheUserAttributeDAO- Parameters:
nKey- The identifier of the cacheUserAttributeplugin- the Plugin- Returns:
- The instance of the cacheUserAttribute
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Specified by:
deletein interfaceICacheUserAttributeDAO- Parameters:
nKey- The identifier of the CacheUserAttribute to deleteplugin- the Plugin
-
store
public void store(CacheUserAttribute cacheUserAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table- Specified by:
storein interfaceICacheUserAttributeDAO- Parameters:
cacheUserAttribute- the reference of the CacheUserAttributeplugin- the Plugin
-
selectCacheUserAttributesListByUserKey
public List<CacheUserAttribute> selectCacheUserAttributesListByUserKey(String strUserKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the cacheUserAttribute objects and returns them as a list- Specified by:
selectCacheUserAttributesListByUserKeyin interfaceICacheUserAttributeDAOplugin- the Plugin- Returns:
- The list which contains the data of all the cacheUserAttribute objects
-
selectIdCacheUserAttributesListByUserKey
public List<Integer> selectIdCacheUserAttributesListByUserKey(String strUserKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the id of all the cacheUserAttribute objects and returns them as a list- Specified by:
selectIdCacheUserAttributesListByUserKeyin interfaceICacheUserAttributeDAOplugin- the Plugin- Returns:
- The list which contains the id of all the cacheUserAttribute objects
-
loadByUserAndAttributeId
public Optional<CacheUserAttribute> loadByUserAndAttributeId(String idUser, int idAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the table- Specified by:
loadByUserAndAttributeIdin interfaceICacheUserAttributeDAO- Parameters:
idUser- the user ididAttribute- The identifier of the cacheUserAttributeplugin- the Plugin- Returns:
- The instance of the cacheUserAttribute
-
selectByListUserIdsAndAttributeId
public List<CacheUserAttribute> selectByListUserIdsAndAttributeId(List<String> listUserIds, int nAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the cacheUserAttribute objects by list id user and id attribute- Specified by:
selectByListUserIdsAndAttributeIdin interfaceICacheUserAttributeDAO- Parameters:
listUserIds- the list of id usernAttributeId- the id attributeplugin- the Plugin- Returns:
- The list which contains the data of all the cacheUserAttribute objects
-