public class PortletPreferenceValueUtil
extends Object
com.liferay.portal.service.persistence.impl.PortletPreferenceValuePersistenceImpl
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
PortletPreferenceValuePersistence
Constructor and Description |
---|
PortletPreferenceValueUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(List<PortletPreferenceValue> portletPreferenceValues)
Caches the portlet preference values in the entity cache if it is enabled.
|
static void |
cacheResult(PortletPreferenceValue portletPreferenceValue)
Caches the portlet preference value in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(PortletPreferenceValue portletPreferenceValue) |
static int |
countAll()
Returns the number of portlet preference values.
|
static int |
countByC_N_SV(long companyId,
String name,
String smallValue)
Returns the number of portlet preference values where companyId = ? and name = ? and smallValue = ?.
|
static int |
countByP_I_N(long portletPreferencesId,
int index,
String name)
Returns the number of portlet preference values where portletPreferencesId = ? and index = ? and name = ?.
|
static int |
countByP_N_SV(long portletPreferencesId,
String name,
String smallValue)
Returns the number of portlet preference values where portletPreferencesId = ? and name = ? and smallValue = ?.
|
static int |
countByP_N(long portletPreferencesId,
String name)
Returns the number of portlet preference values where portletPreferencesId = ? and name = ?.
|
static int |
countByPortletPreferencesId(long portletPreferencesId)
Returns the number of portlet preference values where portletPreferencesId = ?.
|
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery) |
static PortletPreferenceValue |
create(long portletPreferenceValueId)
Creates a new portlet preference value with the primary key.
|
static PortletPreferenceValue |
fetchByC_N_SV_First(long companyId,
String name,
String smallValue,
OrderByComparator<PortletPreferenceValue> orderByComparator)
Returns the first portlet preference value in the ordered set where companyId = ? and name = ? and smallValue = ?.
|
static PortletPreferenceValue |
fetchByC_N_SV_Last(long companyId,
String name,
String smallValue,
OrderByComparator<PortletPreferenceValue> orderByComparator)
Returns the last portlet preference value in the ordered set where companyId = ? and name = ? and smallValue = ?.
|
static PortletPreferenceValue |
fetchByP_I_N(long portletPreferencesId,
int index,
String name)
Returns the portlet preference value where portletPreferencesId = ? and index = ? and name = ? or returns
null if it could not be found. |
static PortletPreferenceValue |
fetchByP_I_N(long portletPreferencesId,
int index,
String name,
boolean useFinderCache)
Returns the portlet preference value where portletPreferencesId = ? and index = ? and name = ? or returns
null if it could not be found, optionally using the finder cache. |
static PortletPreferenceValue |
fetchByP_N_First(long portletPreferencesId,
String name,
OrderByComparator<PortletPreferenceValue> orderByComparator)
Returns the first portlet preference value in the ordered set where portletPreferencesId = ? and name = ?.
|
static PortletPreferenceValue |
fetchByP_N_Last(long portletPreferencesId,
String name,
OrderByComparator<PortletPreferenceValue> orderByComparator)
Returns the last portlet preference value in the ordered set where portletPreferencesId = ? and name = ?.
|
static PortletPreferenceValue |
fetchByP_N_SV_First(long portletPreferencesId,
String name,
String smallValue,
OrderByComparator<PortletPreferenceValue> orderByComparator)
Returns the first portlet preference value in the ordered set where portletPreferencesId = ? and name = ? and smallValue = ?.
|
static PortletPreferenceValue |
fetchByP_N_SV_Last(long portletPreferencesId,
String name,
String smallValue,
OrderByComparator<PortletPreferenceValue> orderByComparator)
Returns the last portlet preference value in the ordered set where portletPreferencesId = ? and name = ? and smallValue = ?.
|
static PortletPreferenceValue |
fetchByPortletPreferencesId_First(long portletPreferencesId,
OrderByComparator<PortletPreferenceValue> orderByComparator)
Returns the first portlet preference value in the ordered set where portletPreferencesId = ?.
|
static PortletPreferenceValue |
fetchByPortletPreferencesId_Last(long portletPreferencesId,
OrderByComparator<PortletPreferenceValue> orderByComparator)
Returns the last portlet preference value in the ordered set where portletPreferencesId = ?.
|
static PortletPreferenceValue |
fetchByPrimaryKey(long portletPreferenceValueId)
Returns the portlet preference value with the primary key or returns
null if it could not be found. |
static Map<Serializable,PortletPreferenceValue> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys) |
static List<PortletPreferenceValue> |
findAll()
Returns all the portlet preference values.
|
static List<PortletPreferenceValue> |
findAll(int start,
int end)
Returns a range of all the portlet preference values.
|
static List<PortletPreferenceValue> |
findAll(int start,
int end,
OrderByComparator<PortletPreferenceValue> orderByComparator)
Returns an ordered range of all the portlet preference values.
|
static List<PortletPreferenceValue> |
findAll(int start,
int end,
OrderByComparator<PortletPreferenceValue> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the portlet preference values.
|
static PortletPreferenceValue |
findByC_N_SV_First(long companyId,
String name,
String smallValue,
OrderByComparator<PortletPreferenceValue> orderByComparator)
Returns the first portlet preference value in the ordered set where companyId = ? and name = ? and smallValue = ?.
|
static PortletPreferenceValue |
findByC_N_SV_Last(long companyId,
String name,
String smallValue,
OrderByComparator<PortletPreferenceValue> orderByComparator)
Returns the last portlet preference value in the ordered set where companyId = ? and name = ? and smallValue = ?.
|
static PortletPreferenceValue[] |
findByC_N_SV_PrevAndNext(long portletPreferenceValueId,
long companyId,
String name,
String smallValue,
OrderByComparator<PortletPreferenceValue> orderByComparator)
Returns the portlet preference values before and after the current portlet preference value in the ordered set where companyId = ? and name = ? and smallValue = ?.
|
static List<PortletPreferenceValue> |
findByC_N_SV(long companyId,
String name,
String smallValue)
Returns all the portlet preference values where companyId = ? and name = ? and smallValue = ?.
|
static List<PortletPreferenceValue> |
findByC_N_SV(long companyId,
String name,
String smallValue,
int start,
int end)
Returns a range of all the portlet preference values where companyId = ? and name = ? and smallValue = ?.
|
static List<PortletPreferenceValue> |
findByC_N_SV(long companyId,
String name,
String smallValue,
int start,
int end,
OrderByComparator<PortletPreferenceValue> orderByComparator)
Returns an ordered range of all the portlet preference values where companyId = ? and name = ? and smallValue = ?.
|
static List<PortletPreferenceValue> |
findByC_N_SV(long companyId,
String name,
String smallValue,
int start,
int end,
OrderByComparator<PortletPreferenceValue> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the portlet preference values where companyId = ? and name = ? and smallValue = ?.
|
static PortletPreferenceValue |
findByP_I_N(long portletPreferencesId,
int index,
String name)
Returns the portlet preference value where portletPreferencesId = ? and index = ? and name = ? or throws a
NoSuchPortletPreferenceValueException if it could not be found. |
static PortletPreferenceValue |
findByP_N_First(long portletPreferencesId,
String name,
OrderByComparator<PortletPreferenceValue> orderByComparator)
Returns the first portlet preference value in the ordered set where portletPreferencesId = ? and name = ?.
|
static PortletPreferenceValue |
findByP_N_Last(long portletPreferencesId,
String name,
OrderByComparator<PortletPreferenceValue> orderByComparator)
Returns the last portlet preference value in the ordered set where portletPreferencesId = ? and name = ?.
|
static PortletPreferenceValue[] |
findByP_N_PrevAndNext(long portletPreferenceValueId,
long portletPreferencesId,
String name,
OrderByComparator<PortletPreferenceValue> orderByComparator)
Returns the portlet preference values before and after the current portlet preference value in the ordered set where portletPreferencesId = ? and name = ?.
|
static PortletPreferenceValue |
findByP_N_SV_First(long portletPreferencesId,
String name,
String smallValue,
OrderByComparator<PortletPreferenceValue> orderByComparator)
Returns the first portlet preference value in the ordered set where portletPreferencesId = ? and name = ? and smallValue = ?.
|
static PortletPreferenceValue |
findByP_N_SV_Last(long portletPreferencesId,
String name,
String smallValue,
OrderByComparator<PortletPreferenceValue> orderByComparator)
Returns the last portlet preference value in the ordered set where portletPreferencesId = ? and name = ? and smallValue = ?.
|
static PortletPreferenceValue[] |
findByP_N_SV_PrevAndNext(long portletPreferenceValueId,
long portletPreferencesId,
String name,
String smallValue,
OrderByComparator<PortletPreferenceValue> orderByComparator)
Returns the portlet preference values before and after the current portlet preference value in the ordered set where portletPreferencesId = ? and name = ? and smallValue = ?.
|
static List<PortletPreferenceValue> |
findByP_N_SV(long portletPreferencesId,
String name,
String smallValue)
Returns all the portlet preference values where portletPreferencesId = ? and name = ? and smallValue = ?.
|
static List<PortletPreferenceValue> |
findByP_N_SV(long portletPreferencesId,
String name,
String smallValue,
int start,
int end)
Returns a range of all the portlet preference values where portletPreferencesId = ? and name = ? and smallValue = ?.
|
static List<PortletPreferenceValue> |
findByP_N_SV(long portletPreferencesId,
String name,
String smallValue,
int start,
int end,
OrderByComparator<PortletPreferenceValue> orderByComparator)
Returns an ordered range of all the portlet preference values where portletPreferencesId = ? and name = ? and smallValue = ?.
|
static List<PortletPreferenceValue> |
findByP_N_SV(long portletPreferencesId,
String name,
String smallValue,
int start,
int end,
OrderByComparator<PortletPreferenceValue> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the portlet preference values where portletPreferencesId = ? and name = ? and smallValue = ?.
|
static List<PortletPreferenceValue> |
findByP_N(long portletPreferencesId,
String name)
Returns all the portlet preference values where portletPreferencesId = ? and name = ?.
|
static List<PortletPreferenceValue> |
findByP_N(long portletPreferencesId,
String name,
int start,
int end)
Returns a range of all the portlet preference values where portletPreferencesId = ? and name = ?.
|
static List<PortletPreferenceValue> |
findByP_N(long portletPreferencesId,
String name,
int start,
int end,
OrderByComparator<PortletPreferenceValue> orderByComparator)
Returns an ordered range of all the portlet preference values where portletPreferencesId = ? and name = ?.
|
static List<PortletPreferenceValue> |
findByP_N(long portletPreferencesId,
String name,
int start,
int end,
OrderByComparator<PortletPreferenceValue> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the portlet preference values where portletPreferencesId = ? and name = ?.
|
static PortletPreferenceValue |
findByPortletPreferencesId_First(long portletPreferencesId,
OrderByComparator<PortletPreferenceValue> orderByComparator)
Returns the first portlet preference value in the ordered set where portletPreferencesId = ?.
|
static PortletPreferenceValue |
findByPortletPreferencesId_Last(long portletPreferencesId,
OrderByComparator<PortletPreferenceValue> orderByComparator)
Returns the last portlet preference value in the ordered set where portletPreferencesId = ?.
|
static PortletPreferenceValue[] |
findByPortletPreferencesId_PrevAndNext(long portletPreferenceValueId,
long portletPreferencesId,
OrderByComparator<PortletPreferenceValue> orderByComparator)
Returns the portlet preference values before and after the current portlet preference value in the ordered set where portletPreferencesId = ?.
|
static List<PortletPreferenceValue> |
findByPortletPreferencesId(long portletPreferencesId)
Returns all the portlet preference values where portletPreferencesId = ?.
|
static List<PortletPreferenceValue> |
findByPortletPreferencesId(long portletPreferencesId,
int start,
int end)
Returns a range of all the portlet preference values where portletPreferencesId = ?.
|
static List<PortletPreferenceValue> |
findByPortletPreferencesId(long portletPreferencesId,
int start,
int end,
OrderByComparator<PortletPreferenceValue> orderByComparator)
Returns an ordered range of all the portlet preference values where portletPreferencesId = ?.
|
static List<PortletPreferenceValue> |
findByPortletPreferencesId(long portletPreferencesId,
int start,
int end,
OrderByComparator<PortletPreferenceValue> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the portlet preference values where portletPreferencesId = ?.
|
static PortletPreferenceValue |
findByPrimaryKey(long portletPreferenceValueId)
Returns the portlet preference value with the primary key or throws a
NoSuchPortletPreferenceValueException if it could not be found. |
static List<PortletPreferenceValue> |
findWithDynamicQuery(DynamicQuery dynamicQuery) |
static List<PortletPreferenceValue> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end) |
static List<PortletPreferenceValue> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<PortletPreferenceValue> orderByComparator) |
static PortletPreferenceValuePersistence |
getPersistence() |
static PortletPreferenceValue |
remove(long portletPreferenceValueId)
Removes the portlet preference value with the primary key from the database.
|
static void |
removeAll()
Removes all the portlet preference values from the database.
|
static void |
removeByC_N_SV(long companyId,
String name,
String smallValue)
Removes all the portlet preference values where companyId = ? and name = ? and smallValue = ? from the database.
|
static PortletPreferenceValue |
removeByP_I_N(long portletPreferencesId,
int index,
String name)
Removes the portlet preference value where portletPreferencesId = ? and index = ? and name = ? from the database.
|
static void |
removeByP_N_SV(long portletPreferencesId,
String name,
String smallValue)
Removes all the portlet preference values where portletPreferencesId = ? and name = ? and smallValue = ? from the database.
|
static void |
removeByP_N(long portletPreferencesId,
String name)
Removes all the portlet preference values where portletPreferencesId = ? and name = ? from the database.
|
static void |
removeByPortletPreferencesId(long portletPreferencesId)
Removes all the portlet preference values where portletPreferencesId = ? from the database.
|
static void |
setPersistence(PortletPreferenceValuePersistence persistence) |
static PortletPreferenceValue |
update(PortletPreferenceValue portletPreferenceValue) |
static PortletPreferenceValue |
update(PortletPreferenceValue portletPreferenceValue,
ServiceContext serviceContext) |
static PortletPreferenceValue |
updateImpl(PortletPreferenceValue portletPreferenceValue) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(PortletPreferenceValue portletPreferenceValue)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
public static Map<Serializable,PortletPreferenceValue> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static List<PortletPreferenceValue> findWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<PortletPreferenceValue> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
public static List<PortletPreferenceValue> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<PortletPreferenceValue> orderByComparator)
public static PortletPreferenceValue update(PortletPreferenceValue portletPreferenceValue)
public static PortletPreferenceValue update(PortletPreferenceValue portletPreferenceValue, ServiceContext serviceContext)
public static List<PortletPreferenceValue> findByPortletPreferencesId(long portletPreferencesId)
portletPreferencesId
- the portlet preferences IDpublic static List<PortletPreferenceValue> findByPortletPreferencesId(long portletPreferencesId, 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 PortletPreferenceValueModelImpl
.
portletPreferencesId
- the portlet preferences IDstart
- the lower bound of the range of portlet preference valuesend
- the upper bound of the range of portlet preference values (not inclusive)public static List<PortletPreferenceValue> findByPortletPreferencesId(long portletPreferencesId, int start, int end, OrderByComparator<PortletPreferenceValue> 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 PortletPreferenceValueModelImpl
.
portletPreferencesId
- the portlet preferences IDstart
- the lower bound of the range of portlet preference valuesend
- the upper bound of the range of portlet preference values (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<PortletPreferenceValue> findByPortletPreferencesId(long portletPreferencesId, int start, int end, OrderByComparator<PortletPreferenceValue> 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 PortletPreferenceValueModelImpl
.
portletPreferencesId
- the portlet preferences IDstart
- the lower bound of the range of portlet preference valuesend
- the upper bound of the range of portlet preference values (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static PortletPreferenceValue findByPortletPreferencesId_First(long portletPreferencesId, OrderByComparator<PortletPreferenceValue> orderByComparator) throws NoSuchPortletPreferenceValueException
portletPreferencesId
- the portlet preferences IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPortletPreferenceValueException
- if a matching portlet preference value could not be foundpublic static PortletPreferenceValue fetchByPortletPreferencesId_First(long portletPreferencesId, OrderByComparator<PortletPreferenceValue> orderByComparator)
portletPreferencesId
- the portlet preferences IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching portlet preference value could not be foundpublic static PortletPreferenceValue findByPortletPreferencesId_Last(long portletPreferencesId, OrderByComparator<PortletPreferenceValue> orderByComparator) throws NoSuchPortletPreferenceValueException
portletPreferencesId
- the portlet preferences IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPortletPreferenceValueException
- if a matching portlet preference value could not be foundpublic static PortletPreferenceValue fetchByPortletPreferencesId_Last(long portletPreferencesId, OrderByComparator<PortletPreferenceValue> orderByComparator)
portletPreferencesId
- the portlet preferences IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching portlet preference value could not be foundpublic static PortletPreferenceValue[] findByPortletPreferencesId_PrevAndNext(long portletPreferenceValueId, long portletPreferencesId, OrderByComparator<PortletPreferenceValue> orderByComparator) throws NoSuchPortletPreferenceValueException
portletPreferenceValueId
- the primary key of the current portlet preference valueportletPreferencesId
- the portlet preferences IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPortletPreferenceValueException
- if a portlet preference value with the primary key could not be foundpublic static void removeByPortletPreferencesId(long portletPreferencesId)
portletPreferencesId
- the portlet preferences IDpublic static int countByPortletPreferencesId(long portletPreferencesId)
portletPreferencesId
- the portlet preferences IDpublic static List<PortletPreferenceValue> findByP_N(long portletPreferencesId, String name)
portletPreferencesId
- the portlet preferences IDname
- the namepublic static List<PortletPreferenceValue> findByP_N(long portletPreferencesId, String name, 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 PortletPreferenceValueModelImpl
.
portletPreferencesId
- the portlet preferences IDname
- the namestart
- the lower bound of the range of portlet preference valuesend
- the upper bound of the range of portlet preference values (not inclusive)public static List<PortletPreferenceValue> findByP_N(long portletPreferencesId, String name, int start, int end, OrderByComparator<PortletPreferenceValue> 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 PortletPreferenceValueModelImpl
.
portletPreferencesId
- the portlet preferences IDname
- the namestart
- the lower bound of the range of portlet preference valuesend
- the upper bound of the range of portlet preference values (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<PortletPreferenceValue> findByP_N(long portletPreferencesId, String name, int start, int end, OrderByComparator<PortletPreferenceValue> 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 PortletPreferenceValueModelImpl
.
portletPreferencesId
- the portlet preferences IDname
- the namestart
- the lower bound of the range of portlet preference valuesend
- the upper bound of the range of portlet preference values (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static PortletPreferenceValue findByP_N_First(long portletPreferencesId, String name, OrderByComparator<PortletPreferenceValue> orderByComparator) throws NoSuchPortletPreferenceValueException
portletPreferencesId
- the portlet preferences IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPortletPreferenceValueException
- if a matching portlet preference value could not be foundpublic static PortletPreferenceValue fetchByP_N_First(long portletPreferencesId, String name, OrderByComparator<PortletPreferenceValue> orderByComparator)
portletPreferencesId
- the portlet preferences IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching portlet preference value could not be foundpublic static PortletPreferenceValue findByP_N_Last(long portletPreferencesId, String name, OrderByComparator<PortletPreferenceValue> orderByComparator) throws NoSuchPortletPreferenceValueException
portletPreferencesId
- the portlet preferences IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPortletPreferenceValueException
- if a matching portlet preference value could not be foundpublic static PortletPreferenceValue fetchByP_N_Last(long portletPreferencesId, String name, OrderByComparator<PortletPreferenceValue> orderByComparator)
portletPreferencesId
- the portlet preferences IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching portlet preference value could not be foundpublic static PortletPreferenceValue[] findByP_N_PrevAndNext(long portletPreferenceValueId, long portletPreferencesId, String name, OrderByComparator<PortletPreferenceValue> orderByComparator) throws NoSuchPortletPreferenceValueException
portletPreferenceValueId
- the primary key of the current portlet preference valueportletPreferencesId
- the portlet preferences IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPortletPreferenceValueException
- if a portlet preference value with the primary key could not be foundpublic static void removeByP_N(long portletPreferencesId, String name)
portletPreferencesId
- the portlet preferences IDname
- the namepublic static int countByP_N(long portletPreferencesId, String name)
portletPreferencesId
- the portlet preferences IDname
- the namepublic static List<PortletPreferenceValue> findByC_N_SV(long companyId, String name, String smallValue)
companyId
- the company IDname
- the namesmallValue
- the small valuepublic static List<PortletPreferenceValue> findByC_N_SV(long companyId, String name, 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 PortletPreferenceValueModelImpl
.
companyId
- the company IDname
- the namesmallValue
- the small valuestart
- the lower bound of the range of portlet preference valuesend
- the upper bound of the range of portlet preference values (not inclusive)public static List<PortletPreferenceValue> findByC_N_SV(long companyId, String name, String smallValue, int start, int end, OrderByComparator<PortletPreferenceValue> 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 PortletPreferenceValueModelImpl
.
companyId
- the company IDname
- the namesmallValue
- the small valuestart
- the lower bound of the range of portlet preference valuesend
- the upper bound of the range of portlet preference values (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<PortletPreferenceValue> findByC_N_SV(long companyId, String name, String smallValue, int start, int end, OrderByComparator<PortletPreferenceValue> 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 PortletPreferenceValueModelImpl
.
companyId
- the company IDname
- the namesmallValue
- the small valuestart
- the lower bound of the range of portlet preference valuesend
- the upper bound of the range of portlet preference values (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static PortletPreferenceValue findByC_N_SV_First(long companyId, String name, String smallValue, OrderByComparator<PortletPreferenceValue> orderByComparator) throws NoSuchPortletPreferenceValueException
companyId
- the company IDname
- the namesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPortletPreferenceValueException
- if a matching portlet preference value could not be foundpublic static PortletPreferenceValue fetchByC_N_SV_First(long companyId, String name, String smallValue, OrderByComparator<PortletPreferenceValue> orderByComparator)
companyId
- the company IDname
- the namesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching portlet preference value could not be foundpublic static PortletPreferenceValue findByC_N_SV_Last(long companyId, String name, String smallValue, OrderByComparator<PortletPreferenceValue> orderByComparator) throws NoSuchPortletPreferenceValueException
companyId
- the company IDname
- the namesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPortletPreferenceValueException
- if a matching portlet preference value could not be foundpublic static PortletPreferenceValue fetchByC_N_SV_Last(long companyId, String name, String smallValue, OrderByComparator<PortletPreferenceValue> orderByComparator)
companyId
- the company IDname
- the namesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching portlet preference value could not be foundpublic static PortletPreferenceValue[] findByC_N_SV_PrevAndNext(long portletPreferenceValueId, long companyId, String name, String smallValue, OrderByComparator<PortletPreferenceValue> orderByComparator) throws NoSuchPortletPreferenceValueException
portletPreferenceValueId
- the primary key of the current portlet preference valuecompanyId
- the company IDname
- the namesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPortletPreferenceValueException
- if a portlet preference value with the primary key could not be foundpublic static void removeByC_N_SV(long companyId, String name, String smallValue)
companyId
- the company IDname
- the namesmallValue
- the small valuepublic static int countByC_N_SV(long companyId, String name, String smallValue)
companyId
- the company IDname
- the namesmallValue
- the small valuepublic static PortletPreferenceValue findByP_I_N(long portletPreferencesId, int index, String name) throws NoSuchPortletPreferenceValueException
NoSuchPortletPreferenceValueException
if it could not be found.portletPreferencesId
- the portlet preferences IDindex
- the indexname
- the nameNoSuchPortletPreferenceValueException
- if a matching portlet preference value could not be foundpublic static PortletPreferenceValue fetchByP_I_N(long portletPreferencesId, int index, String name)
null
if it could not be found. Uses the finder cache.portletPreferencesId
- the portlet preferences IDindex
- the indexname
- the namenull
if a matching portlet preference value could not be foundpublic static PortletPreferenceValue fetchByP_I_N(long portletPreferencesId, int index, String name, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.portletPreferencesId
- the portlet preferences IDindex
- the indexname
- the nameuseFinderCache
- whether to use the finder cachenull
if a matching portlet preference value could not be foundpublic static PortletPreferenceValue removeByP_I_N(long portletPreferencesId, int index, String name) throws NoSuchPortletPreferenceValueException
portletPreferencesId
- the portlet preferences IDindex
- the indexname
- the nameNoSuchPortletPreferenceValueException
public static int countByP_I_N(long portletPreferencesId, int index, String name)
portletPreferencesId
- the portlet preferences IDindex
- the indexname
- the namepublic static List<PortletPreferenceValue> findByP_N_SV(long portletPreferencesId, String name, String smallValue)
portletPreferencesId
- the portlet preferences IDname
- the namesmallValue
- the small valuepublic static List<PortletPreferenceValue> findByP_N_SV(long portletPreferencesId, String name, 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 PortletPreferenceValueModelImpl
.
portletPreferencesId
- the portlet preferences IDname
- the namesmallValue
- the small valuestart
- the lower bound of the range of portlet preference valuesend
- the upper bound of the range of portlet preference values (not inclusive)public static List<PortletPreferenceValue> findByP_N_SV(long portletPreferencesId, String name, String smallValue, int start, int end, OrderByComparator<PortletPreferenceValue> 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 PortletPreferenceValueModelImpl
.
portletPreferencesId
- the portlet preferences IDname
- the namesmallValue
- the small valuestart
- the lower bound of the range of portlet preference valuesend
- the upper bound of the range of portlet preference values (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<PortletPreferenceValue> findByP_N_SV(long portletPreferencesId, String name, String smallValue, int start, int end, OrderByComparator<PortletPreferenceValue> 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 PortletPreferenceValueModelImpl
.
portletPreferencesId
- the portlet preferences IDname
- the namesmallValue
- the small valuestart
- the lower bound of the range of portlet preference valuesend
- the upper bound of the range of portlet preference values (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static PortletPreferenceValue findByP_N_SV_First(long portletPreferencesId, String name, String smallValue, OrderByComparator<PortletPreferenceValue> orderByComparator) throws NoSuchPortletPreferenceValueException
portletPreferencesId
- the portlet preferences IDname
- the namesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPortletPreferenceValueException
- if a matching portlet preference value could not be foundpublic static PortletPreferenceValue fetchByP_N_SV_First(long portletPreferencesId, String name, String smallValue, OrderByComparator<PortletPreferenceValue> orderByComparator)
portletPreferencesId
- the portlet preferences IDname
- the namesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching portlet preference value could not be foundpublic static PortletPreferenceValue findByP_N_SV_Last(long portletPreferencesId, String name, String smallValue, OrderByComparator<PortletPreferenceValue> orderByComparator) throws NoSuchPortletPreferenceValueException
portletPreferencesId
- the portlet preferences IDname
- the namesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPortletPreferenceValueException
- if a matching portlet preference value could not be foundpublic static PortletPreferenceValue fetchByP_N_SV_Last(long portletPreferencesId, String name, String smallValue, OrderByComparator<PortletPreferenceValue> orderByComparator)
portletPreferencesId
- the portlet preferences IDname
- the namesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching portlet preference value could not be foundpublic static PortletPreferenceValue[] findByP_N_SV_PrevAndNext(long portletPreferenceValueId, long portletPreferencesId, String name, String smallValue, OrderByComparator<PortletPreferenceValue> orderByComparator) throws NoSuchPortletPreferenceValueException
portletPreferenceValueId
- the primary key of the current portlet preference valueportletPreferencesId
- the portlet preferences IDname
- the namesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPortletPreferenceValueException
- if a portlet preference value with the primary key could not be foundpublic static void removeByP_N_SV(long portletPreferencesId, String name, String smallValue)
portletPreferencesId
- the portlet preferences IDname
- the namesmallValue
- the small valuepublic static int countByP_N_SV(long portletPreferencesId, String name, String smallValue)
portletPreferencesId
- the portlet preferences IDname
- the namesmallValue
- the small valuepublic static void cacheResult(PortletPreferenceValue portletPreferenceValue)
portletPreferenceValue
- the portlet preference valuepublic static void cacheResult(List<PortletPreferenceValue> portletPreferenceValues)
portletPreferenceValues
- the portlet preference valuespublic static PortletPreferenceValue create(long portletPreferenceValueId)
portletPreferenceValueId
- the primary key for the new portlet preference valuepublic static PortletPreferenceValue remove(long portletPreferenceValueId) throws NoSuchPortletPreferenceValueException
portletPreferenceValueId
- the primary key of the portlet preference valueNoSuchPortletPreferenceValueException
- if a portlet preference value with the primary key could not be foundpublic static PortletPreferenceValue updateImpl(PortletPreferenceValue portletPreferenceValue)
public static PortletPreferenceValue findByPrimaryKey(long portletPreferenceValueId) throws NoSuchPortletPreferenceValueException
NoSuchPortletPreferenceValueException
if it could not be found.portletPreferenceValueId
- the primary key of the portlet preference valueNoSuchPortletPreferenceValueException
- if a portlet preference value with the primary key could not be foundpublic static PortletPreferenceValue fetchByPrimaryKey(long portletPreferenceValueId)
null
if it could not be found.portletPreferenceValueId
- the primary key of the portlet preference valuenull
if a portlet preference value with the primary key could not be foundpublic static List<PortletPreferenceValue> findAll()
public static List<PortletPreferenceValue> 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 PortletPreferenceValueModelImpl
.
start
- the lower bound of the range of portlet preference valuesend
- the upper bound of the range of portlet preference values (not inclusive)public static List<PortletPreferenceValue> findAll(int start, int end, OrderByComparator<PortletPreferenceValue> 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 PortletPreferenceValueModelImpl
.
start
- the lower bound of the range of portlet preference valuesend
- the upper bound of the range of portlet preference values (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<PortletPreferenceValue> findAll(int start, int end, OrderByComparator<PortletPreferenceValue> 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 PortletPreferenceValueModelImpl
.
start
- the lower bound of the range of portlet preference valuesend
- the upper bound of the range of portlet 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 PortletPreferenceValuePersistence getPersistence()
public static void setPersistence(PortletPreferenceValuePersistence persistence)