Class CacheUserAttributeHome


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

      • 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 java.util.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 java.util.Optional<CacheUserAttribute> findByUserAndAttributeId​(java.lang.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 java.util.List<CacheUserAttribute> getCacheUserAttributesListByUserKey​(java.lang.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 java.util.List<java.lang.Integer> getIdCacheUserAttributesList​(java.lang.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 java.util.List<CacheUserAttribute> getCacheUserAttributeByListUserIdsAndAttributeId​(java.util.List<java.lang.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