public class PortalPreferenceValueUtil
extends Object
com.liferay.portal.service.persistence.impl.PortalPreferenceValuePersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
PortalPreferenceValuePersistence
Constructor and Description |
---|
PortalPreferenceValueUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(List<PortalPreferenceValue> portalPreferenceValues)
Caches the portal preference values in the entity cache if it is enabled.
|
static void |
cacheResult(PortalPreferenceValue portalPreferenceValue)
Caches the portal preference value in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(PortalPreferenceValue portalPreferenceValue) |
static int |
countAll()
Returns the number of portal preference values.
|
static 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 = ?.
|
static 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 = ?.
|
static int |
countByP_K_N(long portalPreferencesId,
String key,
String namespace)
Returns the number of portal preference values where portalPreferencesId = ? and key = ? and namespace = ?.
|
static int |
countByP_N(long portalPreferencesId,
String namespace)
Returns the number of portal preference values where portalPreferencesId = ? and namespace = ?.
|
static int |
countByPortalPreferencesId(long portalPreferencesId)
Returns the number of portal preference values where portalPreferencesId = ?.
|
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery) |
static PortalPreferenceValue |
create(long portalPreferenceValueId)
Creates a new portal preference value with the primary key.
|
static 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 returns
null if it could not be found. |
static 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 returns
null if it could not be found, optionally using the finder cache. |
static PortalPreferenceValue |
fetchByP_K_N_First(long portalPreferencesId,
String key,
String namespace,
OrderByComparator<PortalPreferenceValue> orderByComparator)
Returns the first portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ?.
|
static PortalPreferenceValue |
fetchByP_K_N_Last(long portalPreferencesId,
String key,
String namespace,
OrderByComparator<PortalPreferenceValue> orderByComparator)
Returns the last portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ?.
|
static PortalPreferenceValue |
fetchByP_K_N_SV_First(long portalPreferencesId,
String key,
String namespace,
String smallValue,
OrderByComparator<PortalPreferenceValue> orderByComparator)
Returns the first portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.
|
static PortalPreferenceValue |
fetchByP_K_N_SV_Last(long portalPreferencesId,
String key,
String namespace,
String smallValue,
OrderByComparator<PortalPreferenceValue> orderByComparator)
Returns the last portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.
|
static PortalPreferenceValue |
fetchByP_N_First(long portalPreferencesId,
String namespace,
OrderByComparator<PortalPreferenceValue> orderByComparator)
Returns the first portal preference value in the ordered set where portalPreferencesId = ? and namespace = ?.
|
static PortalPreferenceValue |
fetchByP_N_Last(long portalPreferencesId,
String namespace,
OrderByComparator<PortalPreferenceValue> orderByComparator)
Returns the last portal preference value in the ordered set where portalPreferencesId = ? and namespace = ?.
|
static PortalPreferenceValue |
fetchByPortalPreferencesId_First(long portalPreferencesId,
OrderByComparator<PortalPreferenceValue> orderByComparator)
Returns the first portal preference value in the ordered set where portalPreferencesId = ?.
|
static PortalPreferenceValue |
fetchByPortalPreferencesId_Last(long portalPreferencesId,
OrderByComparator<PortalPreferenceValue> orderByComparator)
Returns the last portal preference value in the ordered set where portalPreferencesId = ?.
|
static PortalPreferenceValue |
fetchByPrimaryKey(long portalPreferenceValueId)
Returns the portal preference value with the primary key or returns
null if it could not be found. |
static Map<Serializable,PortalPreferenceValue> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys) |
static List<PortalPreferenceValue> |
findAll()
Returns all the portal preference values.
|
static List<PortalPreferenceValue> |
findAll(int start,
int end)
Returns a range of all the portal preference values.
|
static List<PortalPreferenceValue> |
findAll(int start,
int end,
OrderByComparator<PortalPreferenceValue> orderByComparator)
Returns an ordered range of all the portal preference values.
|
static List<PortalPreferenceValue> |
findAll(int start,
int end,
OrderByComparator<PortalPreferenceValue> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the portal preference values.
|
static 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 a
NoSuchPreferenceValueException if it could not be found. |
static PortalPreferenceValue |
findByP_K_N_First(long portalPreferencesId,
String key,
String namespace,
OrderByComparator<PortalPreferenceValue> orderByComparator)
Returns the first portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ?.
|
static PortalPreferenceValue |
findByP_K_N_Last(long portalPreferencesId,
String key,
String namespace,
OrderByComparator<PortalPreferenceValue> orderByComparator)
Returns the last portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ?.
|
static PortalPreferenceValue[] |
findByP_K_N_PrevAndNext(long portalPreferenceValueId,
long portalPreferencesId,
String key,
String namespace,
OrderByComparator<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 = ?.
|
static PortalPreferenceValue |
findByP_K_N_SV_First(long portalPreferencesId,
String key,
String namespace,
String smallValue,
OrderByComparator<PortalPreferenceValue> orderByComparator)
Returns the first portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.
|
static PortalPreferenceValue |
findByP_K_N_SV_Last(long portalPreferencesId,
String key,
String namespace,
String smallValue,
OrderByComparator<PortalPreferenceValue> orderByComparator)
Returns the last portal preference value in the ordered set where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.
|
static PortalPreferenceValue[] |
findByP_K_N_SV_PrevAndNext(long portalPreferenceValueId,
long portalPreferencesId,
String key,
String namespace,
String smallValue,
OrderByComparator<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 = ?.
|
static List<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 = ?.
|
static List<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 = ?.
|
static List<PortalPreferenceValue> |
findByP_K_N_SV(long portalPreferencesId,
String key,
String namespace,
String smallValue,
int start,
int end,
OrderByComparator<PortalPreferenceValue> orderByComparator)
Returns an ordered range of all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.
|
static List<PortalPreferenceValue> |
findByP_K_N_SV(long portalPreferencesId,
String key,
String namespace,
String smallValue,
int start,
int end,
OrderByComparator<PortalPreferenceValue> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ? and smallValue = ?.
|
static List<PortalPreferenceValue> |
findByP_K_N(long portalPreferencesId,
String key,
String namespace)
Returns all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ?.
|
static List<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 = ?.
|
static List<PortalPreferenceValue> |
findByP_K_N(long portalPreferencesId,
String key,
String namespace,
int start,
int end,
OrderByComparator<PortalPreferenceValue> orderByComparator)
Returns an ordered range of all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ?.
|
static List<PortalPreferenceValue> |
findByP_K_N(long portalPreferencesId,
String key,
String namespace,
int start,
int end,
OrderByComparator<PortalPreferenceValue> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the portal preference values where portalPreferencesId = ? and key = ? and namespace = ?.
|
static PortalPreferenceValue |
findByP_N_First(long portalPreferencesId,
String namespace,
OrderByComparator<PortalPreferenceValue> orderByComparator)
Returns the first portal preference value in the ordered set where portalPreferencesId = ? and namespace = ?.
|
static PortalPreferenceValue |
findByP_N_Last(long portalPreferencesId,
String namespace,
OrderByComparator<PortalPreferenceValue> orderByComparator)
Returns the last portal preference value in the ordered set where portalPreferencesId = ? and namespace = ?.
|
static PortalPreferenceValue[] |
findByP_N_PrevAndNext(long portalPreferenceValueId,
long portalPreferencesId,
String namespace,
OrderByComparator<PortalPreferenceValue> orderByComparator)
Returns the portal preference values before and after the current portal preference value in the ordered set where portalPreferencesId = ? and namespace = ?.
|
static List<PortalPreferenceValue> |
findByP_N(long portalPreferencesId,
String namespace)
Returns all the portal preference values where portalPreferencesId = ? and namespace = ?.
|
static List<PortalPreferenceValue> |
findByP_N(long portalPreferencesId,
String namespace,
int start,
int end)
Returns a range of all the portal preference values where portalPreferencesId = ? and namespace = ?.
|
static List<PortalPreferenceValue> |
findByP_N(long portalPreferencesId,
String namespace,
int start,
int end,
OrderByComparator<PortalPreferenceValue> orderByComparator)
Returns an ordered range of all the portal preference values where portalPreferencesId = ? and namespace = ?.
|
static List<PortalPreferenceValue> |
findByP_N(long portalPreferencesId,
String namespace,
int start,
int end,
OrderByComparator<PortalPreferenceValue> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the portal preference values where portalPreferencesId = ? and namespace = ?.
|
static PortalPreferenceValue |
findByPortalPreferencesId_First(long portalPreferencesId,
OrderByComparator<PortalPreferenceValue> orderByComparator)
Returns the first portal preference value in the ordered set where portalPreferencesId = ?.
|
static PortalPreferenceValue |
findByPortalPreferencesId_Last(long portalPreferencesId,
OrderByComparator<PortalPreferenceValue> orderByComparator)
Returns the last portal preference value in the ordered set where portalPreferencesId = ?.
|
static PortalPreferenceValue[] |
findByPortalPreferencesId_PrevAndNext(long portalPreferenceValueId,
long portalPreferencesId,
OrderByComparator<PortalPreferenceValue> orderByComparator)
Returns the portal preference values before and after the current portal preference value in the ordered set where portalPreferencesId = ?.
|
static List<PortalPreferenceValue> |
findByPortalPreferencesId(long portalPreferencesId)
Returns all the portal preference values where portalPreferencesId = ?.
|
static List<PortalPreferenceValue> |
findByPortalPreferencesId(long portalPreferencesId,
int start,
int end)
Returns a range of all the portal preference values where portalPreferencesId = ?.
|
static List<PortalPreferenceValue> |
findByPortalPreferencesId(long portalPreferencesId,
int start,
int end,
OrderByComparator<PortalPreferenceValue> orderByComparator)
Returns an ordered range of all the portal preference values where portalPreferencesId = ?.
|
static List<PortalPreferenceValue> |
findByPortalPreferencesId(long portalPreferencesId,
int start,
int end,
OrderByComparator<PortalPreferenceValue> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the portal preference values where portalPreferencesId = ?.
|
static PortalPreferenceValue |
findByPrimaryKey(long portalPreferenceValueId)
Returns the portal preference value with the primary key or throws a
NoSuchPreferenceValueException if it could not be found. |
static List<PortalPreferenceValue> |
findWithDynamicQuery(DynamicQuery dynamicQuery) |
static List<PortalPreferenceValue> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end) |
static List<PortalPreferenceValue> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<PortalPreferenceValue> orderByComparator) |
static PortalPreferenceValuePersistence |
getPersistence() |
static PortalPreferenceValue |
remove(long portalPreferenceValueId)
Removes the portal preference value with the primary key from the database.
|
static void |
removeAll()
Removes all the portal preference values from the database.
|
static 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.
|
static 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.
|
static 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.
|
static void |
removeByP_N(long portalPreferencesId,
String namespace)
Removes all the portal preference values where portalPreferencesId = ? and namespace = ? from the database.
|
static void |
removeByPortalPreferencesId(long portalPreferencesId)
Removes all the portal preference values where portalPreferencesId = ? from the database.
|
static void |
setPersistence(PortalPreferenceValuePersistence persistence) |
static PortalPreferenceValue |
update(PortalPreferenceValue portalPreferenceValue) |
static PortalPreferenceValue |
update(PortalPreferenceValue portalPreferenceValue,
ServiceContext serviceContext) |
static PortalPreferenceValue |
updateImpl(PortalPreferenceValue portalPreferenceValue) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(PortalPreferenceValue portalPreferenceValue)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
public static Map<Serializable,PortalPreferenceValue> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static List<PortalPreferenceValue> findWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<PortalPreferenceValue> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
public static List<PortalPreferenceValue> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<PortalPreferenceValue> orderByComparator)
public static PortalPreferenceValue update(PortalPreferenceValue portalPreferenceValue)
public static PortalPreferenceValue update(PortalPreferenceValue portalPreferenceValue, ServiceContext serviceContext)
public static List<PortalPreferenceValue> findByPortalPreferencesId(long portalPreferencesId)
portalPreferencesId
- the portal preferences IDpublic static List<PortalPreferenceValue> findByPortalPreferencesId(long portalPreferencesId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl
.
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)public static List<PortalPreferenceValue> findByPortalPreferencesId(long portalPreferencesId, int start, int end, OrderByComparator<PortalPreferenceValue> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl
.
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 (optionally null
)public static List<PortalPreferenceValue> findByPortalPreferencesId(long portalPreferencesId, int start, int end, OrderByComparator<PortalPreferenceValue> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static PortalPreferenceValue findByPortalPreferencesId_First(long portalPreferencesId, OrderByComparator<PortalPreferenceValue> orderByComparator) throws NoSuchPreferenceValueException
portalPreferencesId
- the portal preferences IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPreferenceValueException
- if a matching portal preference value could not be foundpublic static PortalPreferenceValue fetchByPortalPreferencesId_First(long portalPreferencesId, OrderByComparator<PortalPreferenceValue> orderByComparator)
portalPreferencesId
- the portal preferences IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching portal preference value could not be foundpublic static PortalPreferenceValue findByPortalPreferencesId_Last(long portalPreferencesId, OrderByComparator<PortalPreferenceValue> orderByComparator) throws NoSuchPreferenceValueException
portalPreferencesId
- the portal preferences IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPreferenceValueException
- if a matching portal preference value could not be foundpublic static PortalPreferenceValue fetchByPortalPreferencesId_Last(long portalPreferencesId, OrderByComparator<PortalPreferenceValue> orderByComparator)
portalPreferencesId
- the portal preferences IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching portal preference value could not be foundpublic static PortalPreferenceValue[] findByPortalPreferencesId_PrevAndNext(long portalPreferenceValueId, long portalPreferencesId, OrderByComparator<PortalPreferenceValue> orderByComparator) throws NoSuchPreferenceValueException
portalPreferenceValueId
- the primary key of the current portal preference valueportalPreferencesId
- the portal preferences IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPreferenceValueException
- if a portal preference value with the primary key could not be foundpublic static void removeByPortalPreferencesId(long portalPreferencesId)
portalPreferencesId
- the portal preferences IDpublic static int countByPortalPreferencesId(long portalPreferencesId)
portalPreferencesId
- the portal preferences IDpublic static List<PortalPreferenceValue> findByP_N(long portalPreferencesId, String namespace)
portalPreferencesId
- the portal preferences IDnamespace
- the namespacepublic static List<PortalPreferenceValue> findByP_N(long portalPreferencesId, String namespace, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl
.
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)public static List<PortalPreferenceValue> findByP_N(long portalPreferencesId, String namespace, int start, int end, OrderByComparator<PortalPreferenceValue> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl
.
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 (optionally null
)public static List<PortalPreferenceValue> findByP_N(long portalPreferencesId, String namespace, int start, int end, OrderByComparator<PortalPreferenceValue> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static PortalPreferenceValue findByP_N_First(long portalPreferencesId, String namespace, OrderByComparator<PortalPreferenceValue> orderByComparator) throws NoSuchPreferenceValueException
portalPreferencesId
- the portal preferences IDnamespace
- the namespaceorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPreferenceValueException
- if a matching portal preference value could not be foundpublic static PortalPreferenceValue fetchByP_N_First(long portalPreferencesId, String namespace, OrderByComparator<PortalPreferenceValue> orderByComparator)
portalPreferencesId
- the portal preferences IDnamespace
- the namespaceorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching portal preference value could not be foundpublic static PortalPreferenceValue findByP_N_Last(long portalPreferencesId, String namespace, OrderByComparator<PortalPreferenceValue> orderByComparator) throws NoSuchPreferenceValueException
portalPreferencesId
- the portal preferences IDnamespace
- the namespaceorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPreferenceValueException
- if a matching portal preference value could not be foundpublic static PortalPreferenceValue fetchByP_N_Last(long portalPreferencesId, String namespace, OrderByComparator<PortalPreferenceValue> orderByComparator)
portalPreferencesId
- the portal preferences IDnamespace
- the namespaceorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching portal preference value could not be foundpublic static PortalPreferenceValue[] findByP_N_PrevAndNext(long portalPreferenceValueId, long portalPreferencesId, String namespace, OrderByComparator<PortalPreferenceValue> orderByComparator) throws NoSuchPreferenceValueException
portalPreferenceValueId
- the primary key of the current portal preference valueportalPreferencesId
- the portal preferences IDnamespace
- the namespaceorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPreferenceValueException
- if a portal preference value with the primary key could not be foundpublic static void removeByP_N(long portalPreferencesId, String namespace)
portalPreferencesId
- the portal preferences IDnamespace
- the namespacepublic static int countByP_N(long portalPreferencesId, String namespace)
portalPreferencesId
- the portal preferences IDnamespace
- the namespacepublic static List<PortalPreferenceValue> findByP_K_N(long portalPreferencesId, String key, String namespace)
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespacepublic static List<PortalPreferenceValue> findByP_K_N(long portalPreferencesId, String key, String namespace, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl
.
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)public static List<PortalPreferenceValue> findByP_K_N(long portalPreferencesId, String key, String namespace, int start, int end, OrderByComparator<PortalPreferenceValue> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl
.
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 (optionally null
)public static List<PortalPreferenceValue> findByP_K_N(long portalPreferencesId, String key, String namespace, int start, int end, OrderByComparator<PortalPreferenceValue> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static PortalPreferenceValue findByP_K_N_First(long portalPreferencesId, String key, String namespace, OrderByComparator<PortalPreferenceValue> orderByComparator) throws NoSuchPreferenceValueException
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespaceorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPreferenceValueException
- if a matching portal preference value could not be foundpublic static PortalPreferenceValue fetchByP_K_N_First(long portalPreferencesId, String key, String namespace, OrderByComparator<PortalPreferenceValue> orderByComparator)
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespaceorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching portal preference value could not be foundpublic static PortalPreferenceValue findByP_K_N_Last(long portalPreferencesId, String key, String namespace, OrderByComparator<PortalPreferenceValue> orderByComparator) throws NoSuchPreferenceValueException
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespaceorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPreferenceValueException
- if a matching portal preference value could not be foundpublic static PortalPreferenceValue fetchByP_K_N_Last(long portalPreferencesId, String key, String namespace, OrderByComparator<PortalPreferenceValue> orderByComparator)
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespaceorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching portal preference value could not be foundpublic static PortalPreferenceValue[] findByP_K_N_PrevAndNext(long portalPreferenceValueId, long portalPreferencesId, String key, String namespace, OrderByComparator<PortalPreferenceValue> orderByComparator) throws NoSuchPreferenceValueException
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 (optionally null
)NoSuchPreferenceValueException
- if a portal preference value with the primary key could not be foundpublic static void removeByP_K_N(long portalPreferencesId, String key, String namespace)
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespacepublic static int countByP_K_N(long portalPreferencesId, String key, String namespace)
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespacepublic static PortalPreferenceValue findByP_I_K_N(long portalPreferencesId, int index, String key, String namespace) throws NoSuchPreferenceValueException
NoSuchPreferenceValueException
if it could not be found.portalPreferencesId
- the portal preferences IDindex
- the indexkey
- the keynamespace
- the namespaceNoSuchPreferenceValueException
- if a matching portal preference value could not be foundpublic static PortalPreferenceValue fetchByP_I_K_N(long portalPreferencesId, int index, String key, String namespace)
null
if it could not be found. Uses the finder cache.portalPreferencesId
- the portal preferences IDindex
- the indexkey
- the keynamespace
- the namespacenull
if a matching portal preference value could not be foundpublic static PortalPreferenceValue fetchByP_I_K_N(long portalPreferencesId, int index, String key, String namespace, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.portalPreferencesId
- the portal preferences IDindex
- the indexkey
- the keynamespace
- the namespaceuseFinderCache
- whether to use the finder cachenull
if a matching portal preference value could not be foundpublic static PortalPreferenceValue removeByP_I_K_N(long portalPreferencesId, int index, String key, String namespace) throws NoSuchPreferenceValueException
portalPreferencesId
- the portal preferences IDindex
- the indexkey
- the keynamespace
- the namespaceNoSuchPreferenceValueException
public static int countByP_I_K_N(long portalPreferencesId, int index, String key, String namespace)
portalPreferencesId
- the portal preferences IDindex
- the indexkey
- the keynamespace
- the namespacepublic static List<PortalPreferenceValue> findByP_K_N_SV(long portalPreferencesId, String key, String namespace, String smallValue)
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespacesmallValue
- the small valuepublic static List<PortalPreferenceValue> findByP_K_N_SV(long portalPreferencesId, String key, String namespace, String smallValue, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl
.
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)public static List<PortalPreferenceValue> findByP_K_N_SV(long portalPreferencesId, String key, String namespace, String smallValue, int start, int end, OrderByComparator<PortalPreferenceValue> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl
.
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 (optionally null
)public static List<PortalPreferenceValue> findByP_K_N_SV(long portalPreferencesId, String key, String namespace, String smallValue, int start, int end, OrderByComparator<PortalPreferenceValue> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static PortalPreferenceValue findByP_K_N_SV_First(long portalPreferencesId, String key, String namespace, String smallValue, OrderByComparator<PortalPreferenceValue> orderByComparator) throws NoSuchPreferenceValueException
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespacesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPreferenceValueException
- if a matching portal preference value could not be foundpublic static PortalPreferenceValue fetchByP_K_N_SV_First(long portalPreferencesId, String key, String namespace, String smallValue, OrderByComparator<PortalPreferenceValue> orderByComparator)
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespacesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching portal preference value could not be foundpublic static PortalPreferenceValue findByP_K_N_SV_Last(long portalPreferencesId, String key, String namespace, String smallValue, OrderByComparator<PortalPreferenceValue> orderByComparator) throws NoSuchPreferenceValueException
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespacesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPreferenceValueException
- if a matching portal preference value could not be foundpublic static PortalPreferenceValue fetchByP_K_N_SV_Last(long portalPreferencesId, String key, String namespace, String smallValue, OrderByComparator<PortalPreferenceValue> orderByComparator)
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespacesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching portal preference value could not be foundpublic static PortalPreferenceValue[] findByP_K_N_SV_PrevAndNext(long portalPreferenceValueId, long portalPreferencesId, String key, String namespace, String smallValue, OrderByComparator<PortalPreferenceValue> orderByComparator) throws NoSuchPreferenceValueException
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 (optionally null
)NoSuchPreferenceValueException
- if a portal preference value with the primary key could not be foundpublic static void removeByP_K_N_SV(long portalPreferencesId, String key, String namespace, String smallValue)
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespacesmallValue
- the small valuepublic static int countByP_K_N_SV(long portalPreferencesId, String key, String namespace, String smallValue)
portalPreferencesId
- the portal preferences IDkey
- the keynamespace
- the namespacesmallValue
- the small valuepublic static void cacheResult(PortalPreferenceValue portalPreferenceValue)
portalPreferenceValue
- the portal preference valuepublic static void cacheResult(List<PortalPreferenceValue> portalPreferenceValues)
portalPreferenceValues
- the portal preference valuespublic static PortalPreferenceValue create(long portalPreferenceValueId)
portalPreferenceValueId
- the primary key for the new portal preference valuepublic static PortalPreferenceValue remove(long portalPreferenceValueId) throws NoSuchPreferenceValueException
portalPreferenceValueId
- the primary key of the portal preference valueNoSuchPreferenceValueException
- if a portal preference value with the primary key could not be foundpublic static PortalPreferenceValue updateImpl(PortalPreferenceValue portalPreferenceValue)
public static PortalPreferenceValue findByPrimaryKey(long portalPreferenceValueId) throws NoSuchPreferenceValueException
NoSuchPreferenceValueException
if it could not be found.portalPreferenceValueId
- the primary key of the portal preference valueNoSuchPreferenceValueException
- if a portal preference value with the primary key could not be foundpublic static PortalPreferenceValue fetchByPrimaryKey(long portalPreferenceValueId)
null
if it could not be found.portalPreferenceValueId
- the primary key of the portal preference valuenull
if a portal preference value with the primary key could not be foundpublic static List<PortalPreferenceValue> findAll()
public static List<PortalPreferenceValue> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl
.
start
- the lower bound of the range of portal preference valuesend
- the upper bound of the range of portal preference values (not inclusive)public static List<PortalPreferenceValue> findAll(int start, int end, OrderByComparator<PortalPreferenceValue> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl
.
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 (optionally null
)public static List<PortalPreferenceValue> findAll(int start, int end, OrderByComparator<PortalPreferenceValue> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from PortalPreferenceValueModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static PortalPreferenceValuePersistence getPersistence()
public static void setPersistence(PortalPreferenceValuePersistence persistence)