Interface CookiesConsentPreferencePersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CookiesConsentPreference>

@ProviderType public interface CookiesConsentPreferencePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CookiesConsentPreference>
The persistence interface for the cookies consent preference service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Details

    • findByUserId

      List<CookiesConsentPreference> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CookiesConsentPreference> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cookies consent preferences where userId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.cookies.model.impl.CookiesConsentPreferenceModelImpl.

      Parameters:
      userId - the user ID
      start - the lower bound of the range of cookies consent preferences
      end - the upper bound of the range of cookies consent preferences (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching cookies consent preferences
    • findByUserId_First

      CookiesConsentPreference findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<CookiesConsentPreference> orderByComparator) throws NoSuchCookiesConsentPreferenceException
      Returns the first cookies consent preference in the ordered set where userId = ?.
      Parameters:
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cookies consent preference
      Throws:
      NoSuchCookiesConsentPreferenceException - if a matching cookies consent preference could not be found
    • fetchByUserId_First

      CookiesConsentPreference fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<CookiesConsentPreference> orderByComparator)
      Returns the first cookies consent preference in the ordered set where userId = ?.
      Parameters:
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cookies consent preference, or null if a matching cookies consent preference could not be found
    • removeByUserId

      void removeByUserId(long userId)
      Removes all the cookies consent preferences where userId = ? from the database.
      Parameters:
      userId - the user ID
    • countByUserId

      int countByUserId(long userId)
      Returns the number of cookies consent preferences where userId = ?.
      Parameters:
      userId - the user ID
      Returns:
      the number of matching cookies consent preferences
    • findByExpirationDate

      List<CookiesConsentPreference> findByExpirationDate(Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CookiesConsentPreference> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cookies consent preferences where expirationDate = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.cookies.model.impl.CookiesConsentPreferenceModelImpl.

      Parameters:
      expirationDate - the expiration date
      start - the lower bound of the range of cookies consent preferences
      end - the upper bound of the range of cookies consent preferences (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching cookies consent preferences
    • findByExpirationDate_First

      CookiesConsentPreference findByExpirationDate_First(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<CookiesConsentPreference> orderByComparator) throws NoSuchCookiesConsentPreferenceException
      Returns the first cookies consent preference in the ordered set where expirationDate = ?.
      Parameters:
      expirationDate - the expiration date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cookies consent preference
      Throws:
      NoSuchCookiesConsentPreferenceException - if a matching cookies consent preference could not be found
    • fetchByExpirationDate_First

      CookiesConsentPreference fetchByExpirationDate_First(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<CookiesConsentPreference> orderByComparator)
      Returns the first cookies consent preference in the ordered set where expirationDate = ?.
      Parameters:
      expirationDate - the expiration date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cookies consent preference, or null if a matching cookies consent preference could not be found
    • removeByExpirationDate

      void removeByExpirationDate(Date expirationDate)
      Removes all the cookies consent preferences where expirationDate = ? from the database.
      Parameters:
      expirationDate - the expiration date
    • countByExpirationDate

      int countByExpirationDate(Date expirationDate)
      Returns the number of cookies consent preferences where expirationDate = ?.
      Parameters:
      expirationDate - the expiration date
      Returns:
      the number of matching cookies consent preferences
    • findByU_D

      List<CookiesConsentPreference> findByU_D(long userId, String domain, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CookiesConsentPreference> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cookies consent preferences where userId = ? and domain = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.cookies.model.impl.CookiesConsentPreferenceModelImpl.

      Parameters:
      userId - the user ID
      domain - the domain
      start - the lower bound of the range of cookies consent preferences
      end - the upper bound of the range of cookies consent preferences (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching cookies consent preferences
    • findByU_D_First

      CookiesConsentPreference findByU_D_First(long userId, String domain, com.liferay.portal.kernel.util.OrderByComparator<CookiesConsentPreference> orderByComparator) throws NoSuchCookiesConsentPreferenceException
      Returns the first cookies consent preference in the ordered set where userId = ? and domain = ?.
      Parameters:
      userId - the user ID
      domain - the domain
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cookies consent preference
      Throws:
      NoSuchCookiesConsentPreferenceException - if a matching cookies consent preference could not be found
    • fetchByU_D_First

      CookiesConsentPreference fetchByU_D_First(long userId, String domain, com.liferay.portal.kernel.util.OrderByComparator<CookiesConsentPreference> orderByComparator)
      Returns the first cookies consent preference in the ordered set where userId = ? and domain = ?.
      Parameters:
      userId - the user ID
      domain - the domain
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cookies consent preference, or null if a matching cookies consent preference could not be found
    • removeByU_D

      void removeByU_D(long userId, String domain)
      Removes all the cookies consent preferences where userId = ? and domain = ? from the database.
      Parameters:
      userId - the user ID
      domain - the domain
    • countByU_D

      int countByU_D(long userId, String domain)
      Returns the number of cookies consent preferences where userId = ? and domain = ?.
      Parameters:
      userId - the user ID
      domain - the domain
      Returns:
      the number of matching cookies consent preferences
    • findByU_D_N

      CookiesConsentPreference findByU_D_N(long userId, String domain, String name) throws NoSuchCookiesConsentPreferenceException
      Returns the cookies consent preference where userId = ? and domain = ? and name = ? or throws a NoSuchCookiesConsentPreferenceException if it could not be found.
      Parameters:
      userId - the user ID
      domain - the domain
      name - the name
      Returns:
      the matching cookies consent preference
      Throws:
      NoSuchCookiesConsentPreferenceException - if a matching cookies consent preference could not be found
    • fetchByU_D_N

      CookiesConsentPreference fetchByU_D_N(long userId, String domain, String name, boolean useFinderCache)
      Returns the cookies consent preference where userId = ? and domain = ? and name = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      userId - the user ID
      domain - the domain
      name - the name
      useFinderCache - whether to use the finder cache
      Returns:
      the matching cookies consent preference, or null if a matching cookies consent preference could not be found
    • removeByU_D_N

      CookiesConsentPreference removeByU_D_N(long userId, String domain, String name) throws NoSuchCookiesConsentPreferenceException
      Removes the cookies consent preference where userId = ? and domain = ? and name = ? from the database.
      Parameters:
      userId - the user ID
      domain - the domain
      name - the name
      Returns:
      the cookies consent preference that was removed
      Throws:
      NoSuchCookiesConsentPreferenceException
    • countByU_D_N

      int countByU_D_N(long userId, String domain, String name)
      Returns the number of cookies consent preferences where userId = ? and domain = ? and name = ?.
      Parameters:
      userId - the user ID
      domain - the domain
      name - the name
      Returns:
      the number of matching cookies consent preferences
    • create

      CookiesConsentPreference create(long cookiesConsentPreferenceId)
      Creates a new cookies consent preference with the primary key. Does not add the cookies consent preference to the database.
      Parameters:
      cookiesConsentPreferenceId - the primary key for the new cookies consent preference
      Returns:
      the new cookies consent preference
    • remove

      CookiesConsentPreference remove(long cookiesConsentPreferenceId) throws NoSuchCookiesConsentPreferenceException
      Removes the cookies consent preference with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      cookiesConsentPreferenceId - the primary key of the cookies consent preference
      Returns:
      the cookies consent preference that was removed
      Throws:
      NoSuchCookiesConsentPreferenceException - if a cookies consent preference with the primary key could not be found
    • updateImpl

      CookiesConsentPreference updateImpl(CookiesConsentPreference cookiesConsentPreference)
    • findByPrimaryKey

      CookiesConsentPreference findByPrimaryKey(long cookiesConsentPreferenceId) throws NoSuchCookiesConsentPreferenceException
      Returns the cookies consent preference with the primary key or throws a NoSuchCookiesConsentPreferenceException if it could not be found.
      Parameters:
      cookiesConsentPreferenceId - the primary key of the cookies consent preference
      Returns:
      the cookies consent preference
      Throws:
      NoSuchCookiesConsentPreferenceException - if a cookies consent preference with the primary key could not be found
    • fetchByPrimaryKey

      CookiesConsentPreference fetchByPrimaryKey(long cookiesConsentPreferenceId)
      Returns the cookies consent preference with the primary key or returns null if it could not be found.
      Parameters:
      cookiesConsentPreferenceId - the primary key of the cookies consent preference
      Returns:
      the cookies consent preference, or null if a cookies consent preference with the primary key could not be found
    • fetchByU_D_N

      default CookiesConsentPreference fetchByU_D_N(long userId, String domain, String name)
      Returns the cookies consent preference where userId = ? and domain = ? and name = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      userId - the user ID
      domain - the domain
      name - the name
      Returns:
      the matching cookies consent preference, or null if a matching cookies consent preference could not be found
    • findByUserId

      default List<CookiesConsentPreference> findByUserId(long userId)
      Returns all the cookies consent preferences where userId = ?.
      Parameters:
      userId - the user ID
      Returns:
      the matching cookies consent preferences
    • findByUserId

      default List<CookiesConsentPreference> findByUserId(long userId, int start, int end)
      Returns a range of all the cookies consent preferences where userId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.cookies.model.impl.CookiesConsentPreferenceModelImpl.

      Parameters:
      userId - the user ID
      start - the lower bound of the range of cookies consent preferences
      end - the upper bound of the range of cookies consent preferences (not inclusive)
      Returns:
      the range of matching cookies consent preferences
    • findByUserId

      default List<CookiesConsentPreference> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CookiesConsentPreference> orderByComparator)
      Returns an ordered range of all the cookies consent preferences where userId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.cookies.model.impl.CookiesConsentPreferenceModelImpl.

      Parameters:
      userId - the user ID
      start - the lower bound of the range of cookies consent preferences
      end - the upper bound of the range of cookies consent preferences (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cookies consent preferences
    • findByExpirationDate

      default List<CookiesConsentPreference> findByExpirationDate(Date expirationDate)
      Returns all the cookies consent preferences where expirationDate = ?.
      Parameters:
      expirationDate - the expiration date
      Returns:
      the matching cookies consent preferences
    • findByExpirationDate

      default List<CookiesConsentPreference> findByExpirationDate(Date expirationDate, int start, int end)
      Returns a range of all the cookies consent preferences where expirationDate = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.cookies.model.impl.CookiesConsentPreferenceModelImpl.

      Parameters:
      expirationDate - the expiration date
      start - the lower bound of the range of cookies consent preferences
      end - the upper bound of the range of cookies consent preferences (not inclusive)
      Returns:
      the range of matching cookies consent preferences
    • findByExpirationDate

      default List<CookiesConsentPreference> findByExpirationDate(Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CookiesConsentPreference> orderByComparator)
      Returns an ordered range of all the cookies consent preferences where expirationDate = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.cookies.model.impl.CookiesConsentPreferenceModelImpl.

      Parameters:
      expirationDate - the expiration date
      start - the lower bound of the range of cookies consent preferences
      end - the upper bound of the range of cookies consent preferences (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cookies consent preferences
    • findByU_D

      default List<CookiesConsentPreference> findByU_D(long userId, String domain)
      Returns all the cookies consent preferences where userId = ? and domain = ?.
      Parameters:
      userId - the user ID
      domain - the domain
      Returns:
      the matching cookies consent preferences
    • findByU_D

      default List<CookiesConsentPreference> findByU_D(long userId, String domain, int start, int end)
      Returns a range of all the cookies consent preferences where userId = ? and domain = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.cookies.model.impl.CookiesConsentPreferenceModelImpl.

      Parameters:
      userId - the user ID
      domain - the domain
      start - the lower bound of the range of cookies consent preferences
      end - the upper bound of the range of cookies consent preferences (not inclusive)
      Returns:
      the range of matching cookies consent preferences
    • findByU_D

      default List<CookiesConsentPreference> findByU_D(long userId, String domain, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CookiesConsentPreference> orderByComparator)
      Returns an ordered range of all the cookies consent preferences where userId = ? and domain = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.cookies.model.impl.CookiesConsentPreferenceModelImpl.

      Parameters:
      userId - the user ID
      domain - the domain
      start - the lower bound of the range of cookies consent preferences
      end - the upper bound of the range of cookies consent preferences (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cookies consent preferences