Class PortalPreferenceValuePersistenceImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory
,com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.PortalPreferenceValue>
,com.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- {$generated.description}
-
Field Summary
FieldsFields inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, databaseInMaxParameters, dbColumnNames, dummyEntityCache, dummyFinderCache, entityCacheEnabled, FINDER_ARGS_EMPTY, finderCacheEnabled, NULL_SAFE_STRING_COMPARATOR, nullModel, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Initializes the portal preference value persistence.void
cacheResult
(com.liferay.portal.kernel.model.PortalPreferenceValue portalPreferenceValue) Caches the portal preference value in the entity cache if it is enabled.void
cacheResult
(List<com.liferay.portal.kernel.model.PortalPreferenceValue> portalPreferenceValues) Caches the portal preference values in the entity cache if it is enabled.protected void
cacheUniqueFindersCache
(PortalPreferenceValueModelImpl portalPreferenceValueModelImpl) void
Clears the cache for all portal preference values.void
clearCache
(com.liferay.portal.kernel.model.PortalPreferenceValue portalPreferenceValue) Clears the cache for the portal preference value.void
clearCache
(List<com.liferay.portal.kernel.model.PortalPreferenceValue> portalPreferenceValues) void
clearCache
(Set<Serializable> primaryKeys) int
countAll()
Returns the number of portal preference values.int
countByP_I_K_N
(long portalPreferencesId, int index, String key, String namespace) Returns the number of portal preference values where portalPreferencesId = ? and index = ? and key = ? and namespace = ?.int
countByP_K_N
(long portalPreferencesId, String key, String namespace) Returns the number of portal preference values where portalPreferencesId = ? and key = ? and namespace = ?.int
countByP_K_N_SV
(long portalPreferencesId, String key, String namespace, String smallValue) Returns the number of portal preference values where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.int
countByP_N
(long portalPreferencesId, String namespace) Returns the number of portal preference values where portalPreferencesId = ? and namespace = ?.int
countByPortalPreferencesId
(long portalPreferencesId) Returns the number of portal preference values where portalPreferencesId = ?.com.liferay.portal.kernel.model.PortalPreferenceValue
create
(long portalPreferenceValueId) Creates a new portal preference value with the primary key.void
destroy()
com.liferay.portal.kernel.model.PortalPreferenceValue
fetchByP_I_K_N
(long portalPreferencesId, int index, String key, String namespace) Returns the portal preference value where portalPreferencesId = ? and index = ? and key = ? and namespace = ? or returnsnull
if it could not be found.com.liferay.portal.kernel.model.PortalPreferenceValue
fetchByP_I_K_N
(long portalPreferencesId, int index, String key, String namespace, boolean useFinderCache) Returns the portal preference value where portalPreferencesId = ? and index = ? and key = ? and namespace = ? or returnsnull
if it could not be found, optionally using the finder cache.com.liferay.portal.kernel.model.PortalPreferenceValue
fetchByP_K_N_First
(long portalPreferencesId, String key, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the first portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ?.com.liferay.portal.kernel.model.PortalPreferenceValue
fetchByP_K_N_Last
(long portalPreferencesId, String key, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the last portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ?.com.liferay.portal.kernel.model.PortalPreferenceValue
fetchByP_K_N_SV_First
(long portalPreferencesId, String key, String namespace, String smallValue, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the first portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.com.liferay.portal.kernel.model.PortalPreferenceValue
fetchByP_K_N_SV_Last
(long portalPreferencesId, String key, String namespace, String smallValue, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the last portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.com.liferay.portal.kernel.model.PortalPreferenceValue
fetchByP_N_First
(long portalPreferencesId, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the first portal preference value in the ordered set where portalPreferencesId = ? and namespace = ?.com.liferay.portal.kernel.model.PortalPreferenceValue
fetchByP_N_Last
(long portalPreferencesId, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the last portal preference value in the ordered set where portalPreferencesId = ? and namespace = ?.com.liferay.portal.kernel.model.PortalPreferenceValue
fetchByPortalPreferencesId_First
(long portalPreferencesId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the first portal preference value in the ordered set where portalPreferencesId = ?.com.liferay.portal.kernel.model.PortalPreferenceValue
fetchByPortalPreferencesId_Last
(long portalPreferencesId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the last portal preference value in the ordered set where portalPreferencesId = ?.com.liferay.portal.kernel.model.PortalPreferenceValue
fetchByPrimaryKey
(long portalPreferenceValueId) Returns the portal preference value with the primary key or returnsnull
if it could not be found.List<com.liferay.portal.kernel.model.PortalPreferenceValue>
findAll()
Returns all the portal preference values.List<com.liferay.portal.kernel.model.PortalPreferenceValue>
findAll
(int start, int end) Returns a range of all the portal preference values.List<com.liferay.portal.kernel.model.PortalPreferenceValue>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns an ordered range of all the portal preference values.List<com.liferay.portal.kernel.model.PortalPreferenceValue>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the portal preference values.com.liferay.portal.kernel.model.PortalPreferenceValue
findByP_I_K_N
(long portalPreferencesId, int index, String key, String namespace) Returns the portal preference value where portalPreferencesId = ? and index = ? and key = ? and namespace = ? or throws aNoSuchPreferenceValueException
if it could not be found.List<com.liferay.portal.kernel.model.PortalPreferenceValue>
findByP_K_N
(long portalPreferencesId, String key, String namespace) Returns all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ?.List<com.liferay.portal.kernel.model.PortalPreferenceValue>
findByP_K_N
(long portalPreferencesId, String key, String namespace, int start, int end) Returns a range of all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ?.List<com.liferay.portal.kernel.model.PortalPreferenceValue>
findByP_K_N
(long portalPreferencesId, String key, String namespace, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns an ordered range of all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ?.List<com.liferay.portal.kernel.model.PortalPreferenceValue>
findByP_K_N
(long portalPreferencesId, String key, String namespace, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ?.com.liferay.portal.kernel.model.PortalPreferenceValue
findByP_K_N_First
(long portalPreferencesId, String key, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the first portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ?.com.liferay.portal.kernel.model.PortalPreferenceValue
findByP_K_N_Last
(long portalPreferencesId, String key, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the last portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ?.com.liferay.portal.kernel.model.PortalPreferenceValue[]
findByP_K_N_PrevAndNext
(long portalPreferenceValueId, long portalPreferencesId, String key, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the portal preference values before and after the current portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ?.List<com.liferay.portal.kernel.model.PortalPreferenceValue>
findByP_K_N_SV
(long portalPreferencesId, String key, String namespace, String smallValue) Returns all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.List<com.liferay.portal.kernel.model.PortalPreferenceValue>
findByP_K_N_SV
(long portalPreferencesId, String key, String namespace, String smallValue, int start, int end) Returns a range of all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.List<com.liferay.portal.kernel.model.PortalPreferenceValue>
findByP_K_N_SV
(long portalPreferencesId, String key, String namespace, String smallValue, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns an ordered range of all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.List<com.liferay.portal.kernel.model.PortalPreferenceValue>
findByP_K_N_SV
(long portalPreferencesId, String key, String namespace, String smallValue, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.com.liferay.portal.kernel.model.PortalPreferenceValue
findByP_K_N_SV_First
(long portalPreferencesId, String key, String namespace, String smallValue, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the first portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.com.liferay.portal.kernel.model.PortalPreferenceValue
findByP_K_N_SV_Last
(long portalPreferencesId, String key, String namespace, String smallValue, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the last portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.com.liferay.portal.kernel.model.PortalPreferenceValue[]
findByP_K_N_SV_PrevAndNext
(long portalPreferenceValueId, long portalPreferencesId, String key, String namespace, String smallValue, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the portal preference values before and after the current portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.List<com.liferay.portal.kernel.model.PortalPreferenceValue>
Returns all the portal preference values where portalPreferencesId = ? and namespace = ?.List<com.liferay.portal.kernel.model.PortalPreferenceValue>
Returns a range of all the portal preference values where portalPreferencesId = ? and namespace = ?.List<com.liferay.portal.kernel.model.PortalPreferenceValue>
findByP_N
(long portalPreferencesId, String namespace, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns an ordered range of all the portal preference values where portalPreferencesId = ? and namespace = ?.List<com.liferay.portal.kernel.model.PortalPreferenceValue>
findByP_N
(long portalPreferencesId, String namespace, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the portal preference values where portalPreferencesId = ? and namespace = ?.com.liferay.portal.kernel.model.PortalPreferenceValue
findByP_N_First
(long portalPreferencesId, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the first portal preference value in the ordered set where portalPreferencesId = ? and namespace = ?.com.liferay.portal.kernel.model.PortalPreferenceValue
findByP_N_Last
(long portalPreferencesId, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the last portal preference value in the ordered set where portalPreferencesId = ? and namespace = ?.com.liferay.portal.kernel.model.PortalPreferenceValue[]
findByP_N_PrevAndNext
(long portalPreferenceValueId, long portalPreferencesId, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the portal preference values before and after the current portal preference value in the ordered set where portalPreferencesId = ? and namespace = ?.List<com.liferay.portal.kernel.model.PortalPreferenceValue>
findByPortalPreferencesId
(long portalPreferencesId) Returns all the portal preference values where portalPreferencesId = ?.List<com.liferay.portal.kernel.model.PortalPreferenceValue>
findByPortalPreferencesId
(long portalPreferencesId, int start, int end) Returns a range of all the portal preference values where portalPreferencesId = ?.List<com.liferay.portal.kernel.model.PortalPreferenceValue>
findByPortalPreferencesId
(long portalPreferencesId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns an ordered range of all the portal preference values where portalPreferencesId = ?.List<com.liferay.portal.kernel.model.PortalPreferenceValue>
findByPortalPreferencesId
(long portalPreferencesId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the portal preference values where portalPreferencesId = ?.com.liferay.portal.kernel.model.PortalPreferenceValue
findByPortalPreferencesId_First
(long portalPreferencesId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the first portal preference value in the ordered set where portalPreferencesId = ?.com.liferay.portal.kernel.model.PortalPreferenceValue
findByPortalPreferencesId_Last
(long portalPreferencesId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the last portal preference value in the ordered set where portalPreferencesId = ?.com.liferay.portal.kernel.model.PortalPreferenceValue[]
findByPortalPreferencesId_PrevAndNext
(long portalPreferenceValueId, long portalPreferencesId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the portal preference values before and after the current portal preference value in the ordered set where portalPreferencesId = ?.com.liferay.portal.kernel.model.PortalPreferenceValue
findByPrimaryKey
(long portalPreferenceValueId) Returns the portal preference value with the primary key or throws aNoSuchPreferenceValueException
if it could not be found.com.liferay.portal.kernel.model.PortalPreferenceValue
findByPrimaryKey
(Serializable primaryKey) Returns the portal preference value with the primary key or throws acom.liferay.portal.kernel.exception.NoSuchModelException
if it could not be found.protected com.liferay.portal.kernel.model.PortalPreferenceValue
getByP_K_N_PrevAndNext
(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.PortalPreferenceValue portalPreferenceValue, long portalPreferencesId, String key, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator, boolean previous) protected com.liferay.portal.kernel.model.PortalPreferenceValue
getByP_K_N_SV_PrevAndNext
(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.PortalPreferenceValue portalPreferenceValue, long portalPreferencesId, String key, String namespace, String smallValue, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator, boolean previous) protected com.liferay.portal.kernel.model.PortalPreferenceValue
getByP_N_PrevAndNext
(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.PortalPreferenceValue portalPreferenceValue, long portalPreferencesId, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator, boolean previous) protected com.liferay.portal.kernel.model.PortalPreferenceValue
getByPortalPreferencesId_PrevAndNext
(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.PortalPreferenceValue portalPreferenceValue, long portalPreferencesId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator, boolean previous) protected com.liferay.portal.kernel.dao.orm.EntityCache
protected com.liferay.portal.kernel.dao.orm.FinderCache
protected String
protected String
com.liferay.portal.kernel.model.PortalPreferenceValue
remove
(long portalPreferenceValueId) Removes the portal preference value with the primary key from the database.com.liferay.portal.kernel.model.PortalPreferenceValue
remove
(Serializable primaryKey) Removes the portal preference value with the primary key from the database.void
Removes all the portal preference values from the database.com.liferay.portal.kernel.model.PortalPreferenceValue
removeByP_I_K_N
(long portalPreferencesId, int index, String key, String namespace) Removes the portal preference value where portalPreferencesId = ? and index = ? and key = ? and namespace = ? from the database.void
removeByP_K_N
(long portalPreferencesId, String key, String namespace) Removes all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ? from the database.void
removeByP_K_N_SV
(long portalPreferencesId, String key, String namespace, String smallValue) Removes all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ? from the database.void
removeByP_N
(long portalPreferencesId, String namespace) Removes all the portal preference values where portalPreferencesId = ? and namespace = ? from the database.void
removeByPortalPreferencesId
(long portalPreferencesId) Removes all the portal preference values where portalPreferencesId = ? from the database.protected com.liferay.portal.kernel.model.PortalPreferenceValue
removeImpl
(com.liferay.portal.kernel.model.PortalPreferenceValue portalPreferenceValue) com.liferay.portal.kernel.model.PortalPreferenceValue
updateImpl
(com.liferay.portal.kernel.model.PortalPreferenceValue portalPreferenceValue) Methods inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCompoundPKColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeByFunction, removeConjunction, setConfiguration, setDataSource, setDBColumnNames, setEntityCacheEnabled, setModelClass, setModelImplClass, setModelPKClass, setSessionFactory, setTable, unregisterListener, update, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, removeByFunction, setDataSource, unregisterListener, update, update
-
Field Details
-
FINDER_CLASS_NAME_ENTITY
-
FINDER_CLASS_NAME_LIST_WITH_PAGINATION
-
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
-
-
Constructor Details
-
PortalPreferenceValuePersistenceImpl
public PortalPreferenceValuePersistenceImpl()
-
-
Method Details
-
findByPortalPreferencesId
public List<com.liferay.portal.kernel.model.PortalPreferenceValue> findByPortalPreferencesId(long portalPreferencesId) Returns all the portal preference values where portalPreferencesId = ?.- Specified by:
findByPortalPreferencesId
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences ID- Returns:
- the matching portal preference values
-
findByPortalPreferencesId
public List<com.liferay.portal.kernel.model.PortalPreferenceValue> findByPortalPreferencesId(long portalPreferencesId, int start, int end) Returns a range of all the portal preference values where portalPreferencesId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromPortalPreferenceValueModelImpl
.- Specified by:
findByPortalPreferencesId
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDstart
- the lower bound of the range of portal preference valuesend
- the upper bound of the range of portal preference values (not inclusive)- Returns:
- the range of matching portal preference values
-
findByPortalPreferencesId
public List<com.liferay.portal.kernel.model.PortalPreferenceValue> findByPortalPreferencesId(long portalPreferencesId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns an ordered range of all the portal preference values where portalPreferencesId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromPortalPreferenceValueModelImpl
.- Specified by:
findByPortalPreferencesId
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDstart
- the lower bound of the range of portal preference valuesend
- the upper bound of the range of portal preference values (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching portal preference values
-
findByPortalPreferencesId
public List<com.liferay.portal.kernel.model.PortalPreferenceValue> findByPortalPreferencesId(long portalPreferencesId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the portal preference values where portalPreferencesId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromPortalPreferenceValueModelImpl
.- Specified by:
findByPortalPreferencesId
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDstart
- the lower bound of the range of portal preference valuesend
- the upper bound of the range of portal preference values (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching portal preference values
-
findByPortalPreferencesId_First
public com.liferay.portal.kernel.model.PortalPreferenceValue findByPortalPreferencesId_First(long portalPreferencesId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchPreferenceValueException Returns the first portal preference value in the ordered set where portalPreferencesId = ?.- Specified by:
findByPortalPreferencesId_First
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching portal preference value
- Throws:
com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
- if a matching portal preference value could not be found
-
fetchByPortalPreferencesId_First
public com.liferay.portal.kernel.model.PortalPreferenceValue fetchByPortalPreferencesId_First(long portalPreferencesId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the first portal preference value in the ordered set where portalPreferencesId = ?.- Specified by:
fetchByPortalPreferencesId_First
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching portal preference value, or
null
if a matching portal preference value could not be found
-
findByPortalPreferencesId_Last
public com.liferay.portal.kernel.model.PortalPreferenceValue findByPortalPreferencesId_Last(long portalPreferencesId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchPreferenceValueException Returns the last portal preference value in the ordered set where portalPreferencesId = ?.- Specified by:
findByPortalPreferencesId_Last
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching portal preference value
- Throws:
com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
- if a matching portal preference value could not be found
-
fetchByPortalPreferencesId_Last
public com.liferay.portal.kernel.model.PortalPreferenceValue fetchByPortalPreferencesId_Last(long portalPreferencesId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the last portal preference value in the ordered set where portalPreferencesId = ?.- Specified by:
fetchByPortalPreferencesId_Last
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching portal preference value, or
null
if a matching portal preference value could not be found
-
findByPortalPreferencesId_PrevAndNext
public com.liferay.portal.kernel.model.PortalPreferenceValue[] findByPortalPreferencesId_PrevAndNext(long portalPreferenceValueId, long portalPreferencesId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchPreferenceValueException Returns the portal preference values before and after the current portal preference value in the ordered set where portalPreferencesId = ?.- Specified by:
findByPortalPreferencesId_PrevAndNext
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferenceValueId
- the primary key of the current portal preference valueportalPreferencesId
- the portal preferences IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next portal preference value
- Throws:
com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
- if a portal preference value with the primary key could not be found
-
getByPortalPreferencesId_PrevAndNext
protected com.liferay.portal.kernel.model.PortalPreferenceValue getByPortalPreferencesId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.PortalPreferenceValue portalPreferenceValue, long portalPreferencesId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator, boolean previous) -
removeByPortalPreferencesId
public void removeByPortalPreferencesId(long portalPreferencesId) Removes all the portal preference values where portalPreferencesId = ? from the database.- Specified by:
removeByPortalPreferencesId
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences ID
-
countByPortalPreferencesId
public int countByPortalPreferencesId(long portalPreferencesId) Returns the number of portal preference values where portalPreferencesId = ?.- Specified by:
countByPortalPreferencesId
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences ID- Returns:
- the number of matching portal preference values
-
findByP_N
public List<com.liferay.portal.kernel.model.PortalPreferenceValue> findByP_N(long portalPreferencesId, String namespace) Returns all the portal preference values where portalPreferencesId = ? and namespace = ?.- Specified by:
findByP_N
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDnamespace
- the namespace- Returns:
- the matching portal preference values
-
findByP_N
public List<com.liferay.portal.kernel.model.PortalPreferenceValue> findByP_N(long portalPreferencesId, String namespace, int start, int end) Returns a range of all the portal preference values where portalPreferencesId = ? and namespace = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromPortalPreferenceValueModelImpl
.- Specified by:
findByP_N
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDnamespace
- the namespacestart
- the lower bound of the range of portal preference valuesend
- the upper bound of the range of portal preference values (not inclusive)- Returns:
- the range of matching portal preference values
-
findByP_N
public List<com.liferay.portal.kernel.model.PortalPreferenceValue> findByP_N(long portalPreferencesId, String namespace, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns an ordered range of all the portal preference values where portalPreferencesId = ? and namespace = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromPortalPreferenceValueModelImpl
.- Specified by:
findByP_N
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDnamespace
- the namespacestart
- the lower bound of the range of portal preference valuesend
- the upper bound of the range of portal preference values (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching portal preference values
-
findByP_N
public List<com.liferay.portal.kernel.model.PortalPreferenceValue> findByP_N(long portalPreferencesId, String namespace, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the portal preference values where portalPreferencesId = ? and namespace = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromPortalPreferenceValueModelImpl
.- Specified by:
findByP_N
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDnamespace
- the namespacestart
- the lower bound of the range of portal preference valuesend
- the upper bound of the range of portal preference values (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching portal preference values
-
findByP_N_First
public com.liferay.portal.kernel.model.PortalPreferenceValue findByP_N_First(long portalPreferencesId, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchPreferenceValueException Returns the first portal preference value in the ordered set where portalPreferencesId = ? and namespace = ?.- Specified by:
findByP_N_First
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDnamespace
- the namespaceorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching portal preference value
- Throws:
com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
- if a matching portal preference value could not be found
-
fetchByP_N_First
public com.liferay.portal.kernel.model.PortalPreferenceValue fetchByP_N_First(long portalPreferencesId, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the first portal preference value in the ordered set where portalPreferencesId = ? and namespace = ?.- Specified by:
fetchByP_N_First
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDnamespace
- the namespaceorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching portal preference value, or
null
if a matching portal preference value could not be found
-
findByP_N_Last
public com.liferay.portal.kernel.model.PortalPreferenceValue findByP_N_Last(long portalPreferencesId, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchPreferenceValueException Returns the last portal preference value in the ordered set where portalPreferencesId = ? and namespace = ?.- Specified by:
findByP_N_Last
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDnamespace
- the namespaceorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching portal preference value
- Throws:
com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
- if a matching portal preference value could not be found
-
fetchByP_N_Last
public com.liferay.portal.kernel.model.PortalPreferenceValue fetchByP_N_Last(long portalPreferencesId, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the last portal preference value in the ordered set where portalPreferencesId = ? and namespace = ?.- Specified by:
fetchByP_N_Last
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDnamespace
- the namespaceorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching portal preference value, or
null
if a matching portal preference value could not be found
-
findByP_N_PrevAndNext
public com.liferay.portal.kernel.model.PortalPreferenceValue[] findByP_N_PrevAndNext(long portalPreferenceValueId, long portalPreferencesId, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchPreferenceValueException Returns the portal preference values before and after the current portal preference value in the ordered set where portalPreferencesId = ? and namespace = ?.- Specified by:
findByP_N_PrevAndNext
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferenceValueId
- the primary key of the current portal preference valueportalPreferencesId
- the portal preferences IDnamespace
- the namespaceorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next portal preference value
- Throws:
com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
- if a portal preference value with the primary key could not be found
-
getByP_N_PrevAndNext
protected com.liferay.portal.kernel.model.PortalPreferenceValue getByP_N_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.PortalPreferenceValue portalPreferenceValue, long portalPreferencesId, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator, boolean previous) -
removeByP_N
Removes all the portal preference values where portalPreferencesId = ? and namespace = ? from the database.- Specified by:
removeByP_N
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDnamespace
- the namespace
-
countByP_N
Returns the number of portal preference values where portalPreferencesId = ? and namespace = ?.- Specified by:
countByP_N
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDnamespace
- the namespace- Returns:
- the number of matching portal preference values
-
findByP_K_N
public List<com.liferay.portal.kernel.model.PortalPreferenceValue> findByP_K_N(long portalPreferencesId, String key, String namespace) Returns all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ?.- Specified by:
findByP_K_N
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespace- Returns:
- the matching portal preference values
-
findByP_K_N
public List<com.liferay.portal.kernel.model.PortalPreferenceValue> findByP_K_N(long portalPreferencesId, String key, String namespace, int start, int end) Returns a range of all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromPortalPreferenceValueModelImpl
.- Specified by:
findByP_K_N
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespacestart
- the lower bound of the range of portal preference valuesend
- the upper bound of the range of portal preference values (not inclusive)- Returns:
- the range of matching portal preference values
-
findByP_K_N
public List<com.liferay.portal.kernel.model.PortalPreferenceValue> findByP_K_N(long portalPreferencesId, String key, String namespace, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns an ordered range of all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromPortalPreferenceValueModelImpl
.- Specified by:
findByP_K_N
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespacestart
- the lower bound of the range of portal preference valuesend
- the upper bound of the range of portal preference values (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching portal preference values
-
findByP_K_N
public List<com.liferay.portal.kernel.model.PortalPreferenceValue> findByP_K_N(long portalPreferencesId, String key, String namespace, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromPortalPreferenceValueModelImpl
.- Specified by:
findByP_K_N
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespacestart
- the lower bound of the range of portal preference valuesend
- the upper bound of the range of portal preference values (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching portal preference values
-
findByP_K_N_First
public com.liferay.portal.kernel.model.PortalPreferenceValue findByP_K_N_First(long portalPreferencesId, String key, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchPreferenceValueException Returns the first portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ?.- Specified by:
findByP_K_N_First
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespaceorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching portal preference value
- Throws:
com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
- if a matching portal preference value could not be found
-
fetchByP_K_N_First
public com.liferay.portal.kernel.model.PortalPreferenceValue fetchByP_K_N_First(long portalPreferencesId, String key, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the first portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ?.- Specified by:
fetchByP_K_N_First
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespaceorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching portal preference value, or
null
if a matching portal preference value could not be found
-
findByP_K_N_Last
public com.liferay.portal.kernel.model.PortalPreferenceValue findByP_K_N_Last(long portalPreferencesId, String key, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchPreferenceValueException Returns the last portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ?.- Specified by:
findByP_K_N_Last
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespaceorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching portal preference value
- Throws:
com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
- if a matching portal preference value could not be found
-
fetchByP_K_N_Last
public com.liferay.portal.kernel.model.PortalPreferenceValue fetchByP_K_N_Last(long portalPreferencesId, String key, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the last portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ?.- Specified by:
fetchByP_K_N_Last
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespaceorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching portal preference value, or
null
if a matching portal preference value could not be found
-
findByP_K_N_PrevAndNext
public com.liferay.portal.kernel.model.PortalPreferenceValue[] findByP_K_N_PrevAndNext(long portalPreferenceValueId, long portalPreferencesId, String key, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchPreferenceValueException Returns the portal preference values before and after the current portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ?.- Specified by:
findByP_K_N_PrevAndNext
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferenceValueId
- the primary key of the current portal preference valueportalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespaceorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next portal preference value
- Throws:
com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
- if a portal preference value with the primary key could not be found
-
getByP_K_N_PrevAndNext
protected com.liferay.portal.kernel.model.PortalPreferenceValue getByP_K_N_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.PortalPreferenceValue portalPreferenceValue, long portalPreferencesId, String key, String namespace, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator, boolean previous) -
removeByP_K_N
Removes all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ? from the database.- Specified by:
removeByP_K_N
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespace
-
countByP_K_N
Returns the number of portal preference values where portalPreferencesId = ? and key = ? and namespace = ?.- Specified by:
countByP_K_N
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespace- Returns:
- the number of matching portal preference values
-
findByP_I_K_N
public com.liferay.portal.kernel.model.PortalPreferenceValue findByP_I_K_N(long portalPreferencesId, int index, String key, String namespace) throws com.liferay.portal.kernel.exception.NoSuchPreferenceValueException Returns the portal preference value where portalPreferencesId = ? and index = ? and key = ? and namespace = ? or throws aNoSuchPreferenceValueException
if it could not be found.- Specified by:
findByP_I_K_N
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDindex
- the indexkey
- the keynamespace
- the namespace- Returns:
- the matching portal preference value
- Throws:
com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
- if a matching portal preference value could not be found
-
fetchByP_I_K_N
public com.liferay.portal.kernel.model.PortalPreferenceValue fetchByP_I_K_N(long portalPreferencesId, int index, String key, String namespace) Returns the portal preference value where portalPreferencesId = ? and index = ? and key = ? and namespace = ? or returnsnull
if it could not be found. Uses the finder cache.- Specified by:
fetchByP_I_K_N
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDindex
- the indexkey
- the keynamespace
- the namespace- Returns:
- the matching portal preference value, or
null
if a matching portal preference value could not be found
-
fetchByP_I_K_N
public com.liferay.portal.kernel.model.PortalPreferenceValue fetchByP_I_K_N(long portalPreferencesId, int index, String key, String namespace, boolean useFinderCache) Returns the portal preference value where portalPreferencesId = ? and index = ? and key = ? and namespace = ? or returnsnull
if it could not be found, optionally using the finder cache.- Specified by:
fetchByP_I_K_N
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDindex
- the indexkey
- the keynamespace
- the namespaceuseFinderCache
- whether to use the finder cache- Returns:
- the matching portal preference value, or
null
if a matching portal preference value could not be found
-
removeByP_I_K_N
public com.liferay.portal.kernel.model.PortalPreferenceValue removeByP_I_K_N(long portalPreferencesId, int index, String key, String namespace) throws com.liferay.portal.kernel.exception.NoSuchPreferenceValueException Removes the portal preference value where portalPreferencesId = ? and index = ? and key = ? and namespace = ? from the database.- Specified by:
removeByP_I_K_N
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDindex
- the indexkey
- the keynamespace
- the namespace- Returns:
- the portal preference value that was removed
- Throws:
com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
-
countByP_I_K_N
Returns the number of portal preference values where portalPreferencesId = ? and index = ? and key = ? and namespace = ?.- Specified by:
countByP_I_K_N
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDindex
- the indexkey
- the keynamespace
- the namespace- Returns:
- the number of matching portal preference values
-
findByP_K_N_SV
public List<com.liferay.portal.kernel.model.PortalPreferenceValue> findByP_K_N_SV(long portalPreferencesId, String key, String namespace, String smallValue) Returns all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.- Specified by:
findByP_K_N_SV
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespacesmallValue
- the small value- Returns:
- the matching portal preference values
-
findByP_K_N_SV
public List<com.liferay.portal.kernel.model.PortalPreferenceValue> findByP_K_N_SV(long portalPreferencesId, String key, String namespace, String smallValue, int start, int end) Returns a range of all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromPortalPreferenceValueModelImpl
.- Specified by:
findByP_K_N_SV
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespacesmallValue
- the small valuestart
- the lower bound of the range of portal preference valuesend
- the upper bound of the range of portal preference values (not inclusive)- Returns:
- the range of matching portal preference values
-
findByP_K_N_SV
public List<com.liferay.portal.kernel.model.PortalPreferenceValue> findByP_K_N_SV(long portalPreferencesId, String key, String namespace, String smallValue, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns an ordered range of all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromPortalPreferenceValueModelImpl
.- Specified by:
findByP_K_N_SV
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespacesmallValue
- the small valuestart
- the lower bound of the range of portal preference valuesend
- the upper bound of the range of portal preference values (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching portal preference values
-
findByP_K_N_SV
public List<com.liferay.portal.kernel.model.PortalPreferenceValue> findByP_K_N_SV(long portalPreferencesId, String key, String namespace, String smallValue, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromPortalPreferenceValueModelImpl
.- Specified by:
findByP_K_N_SV
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespacesmallValue
- the small valuestart
- the lower bound of the range of portal preference valuesend
- the upper bound of the range of portal preference values (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching portal preference values
-
findByP_K_N_SV_First
public com.liferay.portal.kernel.model.PortalPreferenceValue findByP_K_N_SV_First(long portalPreferencesId, String key, String namespace, String smallValue, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchPreferenceValueException Returns the first portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.- Specified by:
findByP_K_N_SV_First
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespacesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching portal preference value
- Throws:
com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
- if a matching portal preference value could not be found
-
fetchByP_K_N_SV_First
public com.liferay.portal.kernel.model.PortalPreferenceValue fetchByP_K_N_SV_First(long portalPreferencesId, String key, String namespace, String smallValue, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the first portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.- Specified by:
fetchByP_K_N_SV_First
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespacesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching portal preference value, or
null
if a matching portal preference value could not be found
-
findByP_K_N_SV_Last
public com.liferay.portal.kernel.model.PortalPreferenceValue findByP_K_N_SV_Last(long portalPreferencesId, String key, String namespace, String smallValue, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchPreferenceValueException Returns the last portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.- Specified by:
findByP_K_N_SV_Last
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespacesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching portal preference value
- Throws:
com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
- if a matching portal preference value could not be found
-
fetchByP_K_N_SV_Last
public com.liferay.portal.kernel.model.PortalPreferenceValue fetchByP_K_N_SV_Last(long portalPreferencesId, String key, String namespace, String smallValue, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns the last portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.- Specified by:
fetchByP_K_N_SV_Last
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespacesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching portal preference value, or
null
if a matching portal preference value could not be found
-
findByP_K_N_SV_PrevAndNext
public com.liferay.portal.kernel.model.PortalPreferenceValue[] findByP_K_N_SV_PrevAndNext(long portalPreferenceValueId, long portalPreferencesId, String key, String namespace, String smallValue, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchPreferenceValueException Returns the portal preference values before and after the current portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.- Specified by:
findByP_K_N_SV_PrevAndNext
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferenceValueId
- the primary key of the current portal preference valueportalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespacesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next portal preference value
- Throws:
com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
- if a portal preference value with the primary key could not be found
-
getByP_K_N_SV_PrevAndNext
protected com.liferay.portal.kernel.model.PortalPreferenceValue getByP_K_N_SV_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.PortalPreferenceValue portalPreferenceValue, long portalPreferencesId, String key, String namespace, String smallValue, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator, boolean previous) -
removeByP_K_N_SV
public void removeByP_K_N_SV(long portalPreferencesId, String key, String namespace, String smallValue) Removes all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ? from the database.- Specified by:
removeByP_K_N_SV
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespacesmallValue
- the small value
-
countByP_K_N_SV
public int countByP_K_N_SV(long portalPreferencesId, String key, String namespace, String smallValue) Returns the number of portal preference values where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.- Specified by:
countByP_K_N_SV
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespacesmallValue
- the small value- Returns:
- the number of matching portal preference values
-
cacheResult
public void cacheResult(com.liferay.portal.kernel.model.PortalPreferenceValue portalPreferenceValue) Caches the portal preference value in the entity cache if it is enabled.- Specified by:
cacheResult
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Overrides:
cacheResult
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortalPreferenceValue>
- Parameters:
portalPreferenceValue
- the portal preference value
-
cacheResult
public void cacheResult(List<com.liferay.portal.kernel.model.PortalPreferenceValue> portalPreferenceValues) Caches the portal preference values in the entity cache if it is enabled.- Specified by:
cacheResult
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferenceValues
- the portal preference values
-
clearCache
public void clearCache()Clears the cache for all portal preference values.The
EntityCache
andFinderCache
are both cleared by this method.- Specified by:
clearCache
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.PortalPreferenceValue>
- Overrides:
clearCache
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortalPreferenceValue>
-
clearCache
public void clearCache(com.liferay.portal.kernel.model.PortalPreferenceValue portalPreferenceValue) Clears the cache for the portal preference value.The
EntityCache
andFinderCache
are both cleared by this method.- Specified by:
clearCache
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.PortalPreferenceValue>
- Overrides:
clearCache
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortalPreferenceValue>
-
clearCache
public void clearCache(List<com.liferay.portal.kernel.model.PortalPreferenceValue> portalPreferenceValues) - Specified by:
clearCache
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.PortalPreferenceValue>
- Overrides:
clearCache
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortalPreferenceValue>
-
clearCache
- Specified by:
clearCache
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.PortalPreferenceValue>
-
cacheUniqueFindersCache
protected void cacheUniqueFindersCache(PortalPreferenceValueModelImpl portalPreferenceValueModelImpl) -
create
public com.liferay.portal.kernel.model.PortalPreferenceValue create(long portalPreferenceValueId) Creates a new portal preference value with the primary key. Does not add the portal preference value to the database.- Specified by:
create
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferenceValueId
- the primary key for the new portal preference value- Returns:
- the new portal preference value
-
remove
public com.liferay.portal.kernel.model.PortalPreferenceValue remove(long portalPreferenceValueId) throws com.liferay.portal.kernel.exception.NoSuchPreferenceValueException Removes the portal preference value with the primary key from the database. Also notifies the appropriate model listeners.- Specified by:
remove
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferenceValueId
- the primary key of the portal preference value- Returns:
- the portal preference value that was removed
- Throws:
com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
- if a portal preference value with the primary key could not be found
-
remove
public com.liferay.portal.kernel.model.PortalPreferenceValue remove(Serializable primaryKey) throws com.liferay.portal.kernel.exception.NoSuchPreferenceValueException Removes the portal preference value with the primary key from the database. Also notifies the appropriate model listeners.- Specified by:
remove
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.PortalPreferenceValue>
- Overrides:
remove
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortalPreferenceValue>
- Parameters:
primaryKey
- the primary key of the portal preference value- Returns:
- the portal preference value that was removed
- Throws:
com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
- if a portal preference value with the primary key could not be found
-
removeImpl
protected com.liferay.portal.kernel.model.PortalPreferenceValue removeImpl(com.liferay.portal.kernel.model.PortalPreferenceValue portalPreferenceValue) - Overrides:
removeImpl
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortalPreferenceValue>
-
updateImpl
public com.liferay.portal.kernel.model.PortalPreferenceValue updateImpl(com.liferay.portal.kernel.model.PortalPreferenceValue portalPreferenceValue) - Specified by:
updateImpl
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Overrides:
updateImpl
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortalPreferenceValue>
-
findByPrimaryKey
public com.liferay.portal.kernel.model.PortalPreferenceValue findByPrimaryKey(Serializable primaryKey) throws com.liferay.portal.kernel.exception.NoSuchPreferenceValueException Returns the portal preference value with the primary key or throws acom.liferay.portal.kernel.exception.NoSuchModelException
if it could not be found.- Specified by:
findByPrimaryKey
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.PortalPreferenceValue>
- Overrides:
findByPrimaryKey
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortalPreferenceValue>
- Parameters:
primaryKey
- the primary key of the portal preference value- Returns:
- the portal preference value
- Throws:
com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
- if a portal preference value with the primary key could not be found
-
findByPrimaryKey
public com.liferay.portal.kernel.model.PortalPreferenceValue findByPrimaryKey(long portalPreferenceValueId) throws com.liferay.portal.kernel.exception.NoSuchPreferenceValueException Returns the portal preference value with the primary key or throws aNoSuchPreferenceValueException
if it could not be found.- Specified by:
findByPrimaryKey
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferenceValueId
- the primary key of the portal preference value- Returns:
- the portal preference value
- Throws:
com.liferay.portal.kernel.exception.NoSuchPreferenceValueException
- if a portal preference value with the primary key could not be found
-
fetchByPrimaryKey
public com.liferay.portal.kernel.model.PortalPreferenceValue fetchByPrimaryKey(long portalPreferenceValueId) Returns the portal preference value with the primary key or returnsnull
if it could not be found.- Specified by:
fetchByPrimaryKey
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
portalPreferenceValueId
- the primary key of the portal preference value- Returns:
- the portal preference value, or
null
if a portal preference value with the primary key could not be found
-
findAll
Returns all the portal preference values.- Specified by:
findAll
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Returns:
- the portal preference values
-
findAll
Returns a range of all the portal preference values.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromPortalPreferenceValueModelImpl
.- Specified by:
findAll
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
start
- the lower bound of the range of portal preference valuesend
- the upper bound of the range of portal preference values (not inclusive)- Returns:
- the range of portal preference values
-
findAll
public List<com.liferay.portal.kernel.model.PortalPreferenceValue> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator) Returns an ordered range of all the portal preference values.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromPortalPreferenceValueModelImpl
.- Specified by:
findAll
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
start
- the lower bound of the range of portal preference valuesend
- the upper bound of the range of portal preference values (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of portal preference values
-
findAll
public List<com.liferay.portal.kernel.model.PortalPreferenceValue> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.PortalPreferenceValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the portal preference values.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromPortalPreferenceValueModelImpl
.- Specified by:
findAll
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Parameters:
start
- the lower bound of the range of portal preference valuesend
- the upper bound of the range of portal preference values (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of portal preference values
-
removeAll
public void removeAll()Removes all the portal preference values from the database.- Specified by:
removeAll
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
-
countAll
public int countAll()Returns the number of portal preference values.- Specified by:
countAll
in interfacecom.liferay.portal.kernel.service.persistence.PortalPreferenceValuePersistence
- Returns:
- the number of portal preference values
-
getBadColumnNames
- Specified by:
getBadColumnNames
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.PortalPreferenceValue>
- Overrides:
getBadColumnNames
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortalPreferenceValue>
-
getEntityCache
protected com.liferay.portal.kernel.dao.orm.EntityCache getEntityCache()- Overrides:
getEntityCache
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortalPreferenceValue>
-
getPKDBName
- Overrides:
getPKDBName
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortalPreferenceValue>
-
getSelectSQL
- Overrides:
getSelectSQL
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortalPreferenceValue>
-
getTableColumnsMap
- Overrides:
getTableColumnsMap
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortalPreferenceValue>
-
afterPropertiesSet
public void afterPropertiesSet()Initializes the portal preference value persistence. -
destroy
public void destroy() -
getFinderCache
protected com.liferay.portal.kernel.dao.orm.FinderCache getFinderCache()- Overrides:
getFinderCache
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.PortalPreferenceValue>
-