java.lang.Object
fr.paris.lutece.plugins.mylutece.modules.cacheuserattribute.business.CacheUserAttributeHome

public final class CacheUserAttributeHome extends Object
This class provides instances management methods (create, find, ...) for CacheUserAttribute objects
  • Method Details

    • create

      public static CacheUserAttribute create(CacheUserAttribute cacheUserAttribute)
      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

      public static CacheUserAttribute createOrUpdateIfDifferent(CacheUserAttribute cacheUserAttribute)
      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

      public static CacheUserAttribute update(CacheUserAttribute cacheUserAttribute)
      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

      public static Optional<CacheUserAttribute> findByPrimaryKey(int nKey)
      Returns an instance of a cacheUserAttribute whose identifier is specified in parameter
      Parameters:
      nKey - The cacheUserAttribute primary key
      Returns:
      an instance of CacheUserAttribute
    • findByUserAndAttributeId

      public static Optional<CacheUserAttribute> findByUserAndAttributeId(String strUserId, int nAttrId)
      Returns an instance of a cacheUserAttribute whose identifier is specified in parameter
      Parameters:
      nKey - The cacheUserAttribute primary key
      Returns:
      an instance of CacheUserAttribute
    • getCacheUserAttributesListByUserKey

      public static List<CacheUserAttribute> getCacheUserAttributesListByUserKey(String strUserKey)
      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

      public static List<Integer> getIdCacheUserAttributesList(String strUserKey)
      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