Class CacheUserAttributeDAO

  • All Implemented Interfaces:
    ICacheUserAttributeDAO

    public final class CacheUserAttributeDAO
    extends java.lang.Object
    implements ICacheUserAttributeDAO
    This class provides Data Access methods for CacheUserAttribute objects
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void insert​(CacheUserAttribute cacheUserAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      java.util.Optional<CacheUserAttribute> load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.Optional<CacheUserAttribute> loadByUserAndAttributeId​(java.lang.String idUser, int idAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<CacheUserAttribute> selectByListUserIdsAndAttributeId​(java.util.List<java.lang.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
      java.util.List<CacheUserAttribute> selectCacheUserAttributesListByUserKey​(java.lang.String strUserKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the cacheUserAttribute objects and returns them as a list
      java.util.List<java.lang.Integer> selectIdCacheUserAttributesListByUserKey​(java.lang.String strUserKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the cacheUserAttribute objects and returns them as a list
      void store​(CacheUserAttribute cacheUserAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CacheUserAttributeDAO

        public CacheUserAttributeDAO()
    • Method Detail

      • insert

        public void insert​(CacheUserAttribute cacheUserAttribute,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Specified by:
        insert in interface ICacheUserAttributeDAO
        Parameters:
        cacheUserAttribute - instance of the CacheUserAttribute object to insert
        plugin - the Plugin
      • load

        public java.util.Optional<CacheUserAttribute> load​(int nKey,
                                                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Specified by:
        load in interface ICacheUserAttributeDAO
        Parameters:
        nKey - The identifier of the cacheUserAttribute
        plugin - 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:
        delete in interface ICacheUserAttributeDAO
        Parameters:
        nKey - The identifier of the CacheUserAttribute to delete
        plugin - the Plugin
      • store

        public void store​(CacheUserAttribute cacheUserAttribute,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Specified by:
        store in interface ICacheUserAttributeDAO
        Parameters:
        cacheUserAttribute - the reference of the CacheUserAttribute
        plugin - the Plugin
      • selectCacheUserAttributesListByUserKey

        public java.util.List<CacheUserAttribute> selectCacheUserAttributesListByUserKey​(java.lang.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:
        selectCacheUserAttributesListByUserKey in interface ICacheUserAttributeDAO
        plugin - the Plugin
        Returns:
        The list which contains the data of all the cacheUserAttribute objects
      • selectIdCacheUserAttributesListByUserKey

        public java.util.List<java.lang.Integer> selectIdCacheUserAttributesListByUserKey​(java.lang.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:
        selectIdCacheUserAttributesListByUserKey in interface ICacheUserAttributeDAO
        plugin - the Plugin
        Returns:
        The list which contains the id of all the cacheUserAttribute objects
      • loadByUserAndAttributeId

        public java.util.Optional<CacheUserAttribute> loadByUserAndAttributeId​(java.lang.String idUser,
                                                                               int idAttribute,
                                                                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Specified by:
        loadByUserAndAttributeId in interface ICacheUserAttributeDAO
        Parameters:
        idUser - the user id
        idAttribute - The identifier of the cacheUserAttribute
        plugin - the Plugin
        Returns:
        The instance of the cacheUserAttribute
      • selectByListUserIdsAndAttributeId

        public java.util.List<CacheUserAttribute> selectByListUserIdsAndAttributeId​(java.util.List<java.lang.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:
        selectByListUserIdsAndAttributeId in interface ICacheUserAttributeDAO
        Parameters:
        listUserIds - the list of id user
        nAttributeId - the id attribute
        plugin - the Plugin
        Returns:
        The list which contains the data of all the cacheUserAttribute objects