Interface CookiesConsentPreferencePersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CookiesConsentPreference>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoidcacheResult(CookiesConsentPreference cookiesConsentPreference) Caches the cookies consent preference in the entity cache if it is enabled.voidcacheResult(List<CookiesConsentPreference> cookiesConsentPreferences) Caches the cookies consent preferences in the entity cache if it is enabled.intcountAll()Returns the number of cookies consent preferences.intcountByExpirationDate(Date expirationDate) Returns the number of cookies consent preferences where expirationDate = ?.intcountByU_D(long userId, String domain) Returns the number of cookies consent preferences where userId = ? and domain = ?.intcountByU_D_N(long userId, String domain, String name) Returns the number of cookies consent preferences where userId = ? and domain = ? and name = ?.intcountByUserId(long userId) Returns the number of cookies consent preferences where userId = ?.create(long cookiesConsentPreferenceId) Creates a new cookies consent preference with the primary key.fetchByExpirationDate_First(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<CookiesConsentPreference> orderByComparator) Returns the first cookies consent preference in the ordered set where expirationDate = ?.fetchByPrimaryKey(long cookiesConsentPreferenceId) Returns the cookies consent preference with the primary key or returnsnullif it could not be found.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 = ?.fetchByU_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.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.fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<CookiesConsentPreference> orderByComparator) Returns the first cookies consent preference in the ordered set where userId = ?.findAll()Returns all the cookies consent preferences.findAll(int start, int end) Returns a range of all the cookies consent preferences.findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CookiesConsentPreference> orderByComparator) Returns an ordered range of all the cookies consent preferences.findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CookiesConsentPreference> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cookies consent preferences.findByExpirationDate(Date expirationDate) Returns all the cookies consent preferences where expirationDate = ?.findByExpirationDate(Date expirationDate, int start, int end) Returns a range of all the cookies consent preferences where expirationDate = ?.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 = ?.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 = ?.findByExpirationDate_First(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<CookiesConsentPreference> orderByComparator) Returns the first cookies consent preference in the ordered set where expirationDate = ?.findByPrimaryKey(long cookiesConsentPreferenceId) Returns the cookies consent preference with the primary key or throws aNoSuchCookiesConsentPreferenceExceptionif it could not be found.Returns all the cookies consent preferences where userId = ? and domain = ?.Returns a range of all the cookies consent preferences where userId = ? and domain = ?.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 = ?.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 = ?.findByU_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 = ?.findByU_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.findByUserId(long userId) Returns all the cookies consent preferences where userId = ?.findByUserId(long userId, int start, int end) Returns a range of all the cookies consent preferences where userId = ?.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 = ?.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 = ?.findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<CookiesConsentPreference> orderByComparator) Returns the first cookies consent preference in the ordered set where userId = ?.remove(long cookiesConsentPreferenceId) Removes the cookies consent preference with the primary key from the database.voidRemoves all the cookies consent preferences from the database.voidremoveByExpirationDate(Date expirationDate) Removes all the cookies consent preferences where expirationDate = ? from the database.voidremoveByU_D(long userId, String domain) Removes all the cookies consent preferences where userId = ? and domain = ? from the database.removeByU_D_N(long userId, String domain, String name) Removes the cookies consent preference where userId = ? and domain = ? and name = ? from the database.voidremoveByUserId(long userId) Removes all the cookies consent preferences where userId = ? from the database.updateImpl(CookiesConsentPreference cookiesConsentPreference) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
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
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
-
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 - 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
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
- 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 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
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
Returns all the cookies consent preferences where expirationDate = ?.- Parameters:
expirationDate- the expiration date- Returns:
- the matching cookies consent preferences
-
findByExpirationDate
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
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
-
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 - 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
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
- 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 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
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
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
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
-
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 - 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
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
- 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 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
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
- Throws:
NoSuchCookiesConsentPreferenceException- if a matching cookies consent preference 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
-
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 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
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
-
cacheResult
Caches the cookies consent preference in the entity cache if it is enabled.- Parameters:
cookiesConsentPreference- the cookies consent preference
-
cacheResult
Caches the cookies consent preferences in the entity cache if it is enabled.- Parameters:
cookiesConsentPreferences- the 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
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
-
findByPrimaryKey
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
- Throws:
NoSuchCookiesConsentPreferenceException- if a cookies consent preference with the primary key could not be found
-
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
-
findAll
List<CookiesConsentPreference> findAll()Returns all the cookies consent preferences.- Returns:
- the cookies consent preferences
-
findAll
Returns a range of all the cookies consent preferences.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:
start- 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 cookies consent preferences
-
findAll
List<CookiesConsentPreference> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CookiesConsentPreference> orderByComparator) Returns an ordered range of all the cookies consent preferences.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:
start- 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 cookies consent preferences
-
findAll
List<CookiesConsentPreference> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CookiesConsentPreference> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cookies consent preferences.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:
start- 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 cookies consent preferences
-
removeAll
void removeAll()Removes all the cookies consent preferences from the database. -
countAll
int countAll()Returns the number of cookies consent preferences.- Returns:
- the number of cookies consent preferences
-