Class CacheUserAttributeHome
java.lang.Object
fr.paris.lutece.plugins.mylutece.modules.cacheuserattribute.business.CacheUserAttributeHome
This class provides instances management methods (create, find, ...) for CacheUserAttribute objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic CacheUserAttributecreate(CacheUserAttribute cacheUserAttribute) Create an instance of the cacheUserAttribute classstatic CacheUserAttributecreateOrUpdateIfDifferent(CacheUserAttribute cacheUserAttribute) Create an instance of the cacheUserAttribute if not exists or update the data if differentstatic Optional<CacheUserAttribute>findByPrimaryKey(int nKey) Returns an instance of a cacheUserAttribute whose identifier is specified in parameterstatic Optional<CacheUserAttribute>findByUserAndAttributeId(String strUserId, int nAttrId) Returns an instance of a cacheUserAttribute whose identifier is specified in parameterstatic List<CacheUserAttribute>getCacheUserAttributeByListUserIdsAndAttributeId(List<String> listUserIds, int nAttributeId) Load the data of all the cacheUserAttribute objects by list id user and id attributestatic List<CacheUserAttribute>getCacheUserAttributesListByUserKey(String strUserKey) Load the data of all the cacheUserAttribute objects and returns them as a listgetIdCacheUserAttributesList(String strUserKey) Load the id of all the cacheUserAttribute objects and returns them as a liststatic voidremove(int nKey) Remove the cacheUserAttribute whose identifier is specified in parameterstatic CacheUserAttributeupdate(CacheUserAttribute cacheUserAttribute) Update of the cacheUserAttribute which is specified in parameter
-
Method Details
-
create
Create an instance of the cacheUserAttribute class- Parameters:
cacheUserAttribute- The instance of the CacheUserAttribute which contains the informations to store- Returns:
- The instance of cacheUserAttribute which has been created with its primary key.
-
createOrUpdateIfDifferent
Create an instance of the cacheUserAttribute if not exists or update the data if different- Parameters:
cacheUserAttribute- The instance of the CacheUserAttribute which contains the informations to store- Returns:
- The instance of cacheUserAttribute which has been created with its primary key.
-
update
Update of the cacheUserAttribute which is specified in parameter- Parameters:
cacheUserAttribute- The instance of the CacheUserAttribute which contains the data to store- Returns:
- The instance of the cacheUserAttribute which has been updated
-
remove
public static void remove(int nKey) Remove the cacheUserAttribute whose identifier is specified in parameter- Parameters:
nKey- The cacheUserAttribute Id
-
findByPrimaryKey
Returns an instance of a cacheUserAttribute whose identifier is specified in parameter- Parameters:
nKey- The cacheUserAttribute primary key- Returns:
- an instance of CacheUserAttribute
-
findByUserAndAttributeId
Returns an instance of a cacheUserAttribute whose identifier is specified in parameter- Parameters:
nKey- The cacheUserAttribute primary key- Returns:
- an instance of CacheUserAttribute
-
getCacheUserAttributesListByUserKey
Load the data of all the cacheUserAttribute objects and returns them as a list- Returns:
- the list which contains the data of all the cacheUserAttribute objects
-
getIdCacheUserAttributesList
Load the id of all the cacheUserAttribute objects and returns them as a list- Returns:
- the list which contains the id of all the cacheUserAttribute objects
-
getCacheUserAttributeByListUserIdsAndAttributeId
public static List<CacheUserAttribute> getCacheUserAttributeByListUserIdsAndAttributeId(List<String> listUserIds, int nAttributeId) Load the data of all the cacheUserAttribute objects by list id user and id attribute- Parameters:
listUserIds-nAttributeId-- Returns:
- The list which contains the data of all the cacheUserAttribute objects
-