Class CookiesConsentPreferenceUtil
com.liferay.cookies.service.persistence.impl.CookiesConsentPreferencePersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(CookiesConsentPreference cookiesConsentPreference) static voidcacheResult(List<CookiesConsentPreference> cookiesConsentPreferences) static voidstatic voidclearCache(CookiesConsentPreference cookiesConsentPreference) static intcountByExpirationDate(Date expirationDate) Returns the number of cookies consent preferences where expirationDate = ?.static intcountByU_D(long userId, String domain) Returns the number of cookies consent preferences where userId = ? and domain = ?.static intcountByU_D_N(long userId, String domain, String name) Returns the number of cookies consent preferences where userId = ? and domain = ? and name = ?.static intcountByUserId(long userId) Returns the number of cookies consent preferences where userId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CookiesConsentPreferencecreate(long cookiesConsentPreferenceId) Creates a new cookies consent preference with the primary key.static CookiesConsentPreferencefetchByExpirationDate_First(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<CookiesConsentPreference> orderByComparator) Returns the first cookies consent preference in the ordered set where expirationDate = ?.static CookiesConsentPreferencefetchByPrimaryKey(long cookiesConsentPreferenceId) Returns the cookies consent preference with the primary key or returnsnullif it could not be found.static Map<Serializable, CookiesConsentPreference> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static CookiesConsentPreferencefetchByU_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 = ?.static CookiesConsentPreferencefetchByU_D_N(long userId, String domain, String name) Returns the cookies consent preference where userId = ? and domain = ? and name = ? or returnsnullif it could not be found.static CookiesConsentPreferencefetchByU_D_N(long userId, String domain, String name, boolean useFinderCache) Returns the cookies consent preference where userId = ? and domain = ? and name = ? or returnsnullif it could not be found, optionally using the finder cache.static CookiesConsentPreferencefetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<CookiesConsentPreference> orderByComparator) Returns the first cookies consent preference in the ordered set where userId = ?.static List<CookiesConsentPreference> findByExpirationDate(Date expirationDate) Returns all the cookies consent preferences where expirationDate = ?.static List<CookiesConsentPreference> findByExpirationDate(Date expirationDate, int start, int end) Returns a range of all the cookies consent preferences where expirationDate = ?.static 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 = ?.static 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 = ?.static CookiesConsentPreferencefindByExpirationDate_First(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<CookiesConsentPreference> orderByComparator) Returns the first cookies consent preference in the ordered set where expirationDate = ?.static CookiesConsentPreferencefindByPrimaryKey(long cookiesConsentPreferenceId) Returns the cookies consent preference with the primary key or throws aNoSuchCookiesConsentPreferenceExceptionif it could not be found.static List<CookiesConsentPreference> Returns all the cookies consent preferences where userId = ? and domain = ?.static List<CookiesConsentPreference> Returns a range of all the cookies consent preferences where userId = ? and domain = ?.static 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 = ?.static 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 = ?.static CookiesConsentPreferencefindByU_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 = ?.static CookiesConsentPreferencefindByU_D_N(long userId, String domain, String name) Returns the cookies consent preference where userId = ? and domain = ? and name = ? or throws aNoSuchCookiesConsentPreferenceExceptionif it could not be found.static List<CookiesConsentPreference> findByUserId(long userId) Returns all the cookies consent preferences where userId = ?.static List<CookiesConsentPreference> findByUserId(long userId, int start, int end) Returns a range of all the cookies consent preferences where userId = ?.static 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 = ?.static 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 = ?.static CookiesConsentPreferencefindByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<CookiesConsentPreference> orderByComparator) Returns the first cookies consent preference in the ordered set where userId = ?.static List<CookiesConsentPreference> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CookiesConsentPreference> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CookiesConsentPreference> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CookiesConsentPreference> orderByComparator) static CookiesConsentPreferenceremove(long cookiesConsentPreferenceId) Removes the cookies consent preference with the primary key from the database.static voidremoveByExpirationDate(Date expirationDate) Removes all the cookies consent preferences where expirationDate = ? from the database.static voidremoveByU_D(long userId, String domain) Removes all the cookies consent preferences where userId = ? and domain = ? from the database.static CookiesConsentPreferenceremoveByU_D_N(long userId, String domain, String name) Removes the cookies consent preference where userId = ? and domain = ? and name = ? from the database.static voidremoveByUserId(long userId) Removes all the cookies consent preferences where userId = ? from the database.static voidsetPersistence(CookiesConsentPreferencePersistence persistence) static CookiesConsentPreferenceupdate(CookiesConsentPreference cookiesConsentPreference) static CookiesConsentPreferenceupdate(CookiesConsentPreference cookiesConsentPreference, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CookiesConsentPreferenceupdateImpl(CookiesConsentPreference cookiesConsentPreference)
-
Constructor Details
-
CookiesConsentPreferenceUtil
public CookiesConsentPreferenceUtil()
-
-
Method Details
-
cacheResult
- See Also:
-
cacheResult
- See Also:
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
public static Map<Serializable,CookiesConsentPreference> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
findWithDynamicQuery
public static List<CookiesConsentPreference> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<CookiesConsentPreference> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<CookiesConsentPreference> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CookiesConsentPreference> orderByComparator) - See Also:
-
update
- See Also:
-
update
public static CookiesConsentPreference update(CookiesConsentPreference cookiesConsentPreference, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByUserId
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.cookies.model.impl.CookiesConsentPreferenceModelImpl.- Parameters:
userId- the user IDstart- the lower bound of the range of cookies consent preferencesend- the upper bound of the range of cookies consent preferences (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching cookies consent preferences
-
findByUserId_First
public static 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cookies consent preference
-
fetchByUserId_First
public static 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cookies consent preference, or
nullif a matching cookies consent preference could not be found
-
removeByUserId
public static void removeByUserId(long userId) Removes all the cookies consent preferences where userId = ? from the database.- Parameters:
userId- the user ID
-
countByUserId
public static 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
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.cookies.model.impl.CookiesConsentPreferenceModelImpl.- Parameters:
expirationDate- the expiration datestart- the lower bound of the range of cookies consent preferencesend- the upper bound of the range of cookies consent preferences (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching cookies consent preferences
-
findByExpirationDate_First
public static 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 dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cookies consent preference
-
fetchByExpirationDate_First
public static 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 dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cookies consent preference, or
nullif a matching cookies consent preference could not be found
-
removeByExpirationDate
Removes all the cookies consent preferences where expirationDate = ? from the database.- Parameters:
expirationDate- the expiration date
-
countByExpirationDate
Returns the number of cookies consent preferences where expirationDate = ?.- Parameters:
expirationDate- the expiration date- Returns:
- the number of matching cookies consent preferences
-
findByU_D
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.cookies.model.impl.CookiesConsentPreferenceModelImpl.- Parameters:
userId- the user IDdomain- the domainstart- the lower bound of the range of cookies consent preferencesend- the upper bound of the range of cookies consent preferences (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching cookies consent preferences
-
findByU_D_First
public static 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 IDdomain- the domainorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cookies consent preference
-
fetchByU_D_First
public static 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 IDdomain- the domainorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cookies consent preference, or
nullif a matching cookies consent preference could not be found
-
removeByU_D
Removes all the cookies consent preferences where userId = ? and domain = ? from the database.- Parameters:
userId- the user IDdomain- the domain
-
countByU_D
Returns the number of cookies consent preferences where userId = ? and domain = ?.- Parameters:
userId- the user IDdomain- the domain- Returns:
- the number of matching cookies consent preferences
-
findByU_D_N
public static 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 aNoSuchCookiesConsentPreferenceExceptionif it could not be found.- Parameters:
userId- the user IDdomain- the domainname- the name- Returns:
- the matching cookies consent preference
-
fetchByU_D_N
public static CookiesConsentPreference fetchByU_D_N(long userId, String domain, String name, boolean useFinderCache) Returns the cookies consent preference where userId = ? and domain = ? and name = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
userId- the user IDdomain- the domainname- the nameuseFinderCache- whether to use the finder cache- Returns:
- the matching cookies consent preference, or
nullif a matching cookies consent preference could not be found
-
removeByU_D_N
public static 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 IDdomain- the domainname- the name- Returns:
- the cookies consent preference that was removed
- Throws:
NoSuchCookiesConsentPreferenceException
-
countByU_D_N
Returns the number of cookies consent preferences where userId = ? and domain = ? and name = ?.- Parameters:
userId- the user IDdomain- the domainname- the name- Returns:
- the number of matching cookies consent preferences
-
create
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
public static 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
-
updateImpl
public static CookiesConsentPreference updateImpl(CookiesConsentPreference cookiesConsentPreference) -
findByPrimaryKey
public static CookiesConsentPreference findByPrimaryKey(long cookiesConsentPreferenceId) throws NoSuchCookiesConsentPreferenceException Returns the cookies consent preference with the primary key or throws aNoSuchCookiesConsentPreferenceExceptionif it could not be found.- Parameters:
cookiesConsentPreferenceId- the primary key of the cookies consent preference- Returns:
- the cookies consent preference
-
fetchByPrimaryKey
Returns the cookies consent preference with the primary key or returnsnullif it could not be found.- Parameters:
cookiesConsentPreferenceId- the primary key of the cookies consent preference- Returns:
- the cookies consent preference, or
nullif a cookies consent preference with the primary key could not be found
-
fetchByU_D_N
Returns the cookies consent preference where userId = ? and domain = ? and name = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
userId- the user IDdomain- the domainname- the name- Returns:
- the matching cookies consent preference, or
nullif a matching cookies consent preference could not be found
-
findByUserId
Returns all the cookies consent preferences where userId = ?.- Parameters:
userId- the user ID- Returns:
- the matching cookies consent preferences
-
findByUserId
Returns a range of all the cookies consent preferences where userId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.cookies.model.impl.CookiesConsentPreferenceModelImpl.- Parameters:
userId- the user IDstart- the lower bound of the range of cookies consent preferencesend- the upper bound of the range of cookies consent preferences (not inclusive)- Returns:
- the range of matching cookies consent preferences
-
findByUserId
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.cookies.model.impl.CookiesConsentPreferenceModelImpl.- Parameters:
userId- the user IDstart- the lower bound of the range of cookies consent preferencesend- the upper bound of the range of cookies consent preferences (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cookies consent preferences
-
findByExpirationDate
Returns all the cookies consent preferences where expirationDate = ?.- Parameters:
expirationDate- the expiration date- Returns:
- the matching cookies consent preferences
-
findByExpirationDate
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.cookies.model.impl.CookiesConsentPreferenceModelImpl.- Parameters:
expirationDate- the expiration datestart- the lower bound of the range of cookies consent preferencesend- the upper bound of the range of cookies consent preferences (not inclusive)- Returns:
- the range of matching cookies consent preferences
-
findByExpirationDate
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.cookies.model.impl.CookiesConsentPreferenceModelImpl.- Parameters:
expirationDate- the expiration datestart- the lower bound of the range of cookies consent preferencesend- the upper bound of the range of cookies consent preferences (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cookies consent preferences
-
findByU_D
Returns all the cookies consent preferences where userId = ? and domain = ?.- Parameters:
userId- the user IDdomain- the domain- Returns:
- the matching cookies consent preferences
-
findByU_D
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.cookies.model.impl.CookiesConsentPreferenceModelImpl.- Parameters:
userId- the user IDdomain- the domainstart- the lower bound of the range of cookies consent preferencesend- the upper bound of the range of cookies consent preferences (not inclusive)- Returns:
- the range of matching cookies consent preferences
-
findByU_D
public static 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.cookies.model.impl.CookiesConsentPreferenceModelImpl.- Parameters:
userId- the user IDdomain- the domainstart- the lower bound of the range of cookies consent preferencesend- the upper bound of the range of cookies consent preferences (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cookies consent preferences
-
getPersistence
-
setPersistence
-