Class PortletPreferenceValueUtil
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
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(PortletPreferenceValue portletPreferenceValue) Caches the portlet preference value in the entity cache if it is enabled.static void
cacheResult
(List<PortletPreferenceValue> portletPreferenceValues) Caches the portlet preference values in the entity cache if it is enabled.static void
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
(long portletPreferencesId, String name) Returns the number of portlet preference values where portletPreferencesId = ? 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
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 returnsnull
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 returnsnull
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 returnsnull
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 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
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 PortletPreferenceValue
findByP_I_N
(long portletPreferencesId, int index, String name) Returns the portlet preference value where portletPreferencesId = ? and index = ? and name = ? or throws aNoSuchPortletPreferenceValueException
if it could not be found.static List<PortletPreferenceValue>
Returns all the portlet preference values where portletPreferencesId = ? and name = ?.static List<PortletPreferenceValue>
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
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 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 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>
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
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 PortletPreferenceValue
findByPrimaryKey
(long portletPreferenceValueId) Returns the portlet preference value with the primary key or throws aNoSuchPortletPreferenceValueException
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 PortletPreferenceValue
remove
(long portletPreferenceValueId) Removes the portlet preference value with the primary key from the database.static void
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
(long portletPreferencesId, String name) Removes all the portlet preference values where portletPreferencesId = ? 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
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)
-
Constructor Details
-
PortletPreferenceValueUtil
public PortletPreferenceValueUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
-
countWithDynamicQuery
-
fetchByPrimaryKeys
public static Map<Serializable,PortletPreferenceValue> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
findWithDynamicQuery
-
findWithDynamicQuery
public static List<PortletPreferenceValue> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) -
findWithDynamicQuery
public static List<PortletPreferenceValue> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<PortletPreferenceValue> orderByComparator) -
update
-
update
public static PortletPreferenceValue update(PortletPreferenceValue portletPreferenceValue, ServiceContext serviceContext) -
findByPortletPreferencesId
Returns all the portlet preference values where portletPreferencesId = ?.- Parameters:
portletPreferencesId
- the portlet preferences ID- Returns:
- the matching portlet preference values
-
findByPortletPreferencesId
public static List<PortletPreferenceValue> findByPortletPreferencesId(long portletPreferencesId, int start, int end) Returns a range of all the portlet preference values where portletPreferencesId = ?.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 fromPortletPreferenceValueModelImpl
.- Parameters:
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)- Returns:
- the range of matching portlet preference values
-
findByPortletPreferencesId
public 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 = ?.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 fromPortletPreferenceValueModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching portlet preference values
-
findByPortletPreferencesId
public 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 = ?.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 fromPortletPreferenceValueModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching portlet preference values
-
findByPortletPreferencesId_First
public static PortletPreferenceValue findByPortletPreferencesId_First(long portletPreferencesId, OrderByComparator<PortletPreferenceValue> orderByComparator) throws NoSuchPortletPreferenceValueException Returns the first portlet preference value in the ordered set where portletPreferencesId = ?.- Parameters:
portletPreferencesId
- the portlet preferences IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching portlet preference value
- Throws:
NoSuchPortletPreferenceValueException
- if a matching portlet preference value could not be foundNoSuchPortletPreferenceValueException
-
fetchByPortletPreferencesId_First
public static PortletPreferenceValue fetchByPortletPreferencesId_First(long portletPreferencesId, OrderByComparator<PortletPreferenceValue> orderByComparator) Returns the first portlet preference value in the ordered set where portletPreferencesId = ?.- Parameters:
portletPreferencesId
- the portlet preferences IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching portlet preference value, or
null
if a matching portlet preference value could not be found
-
findByPortletPreferencesId_Last
public static PortletPreferenceValue findByPortletPreferencesId_Last(long portletPreferencesId, OrderByComparator<PortletPreferenceValue> orderByComparator) throws NoSuchPortletPreferenceValueException Returns the last portlet preference value in the ordered set where portletPreferencesId = ?.- Parameters:
portletPreferencesId
- the portlet preferences IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching portlet preference value
- Throws:
NoSuchPortletPreferenceValueException
- if a matching portlet preference value could not be foundNoSuchPortletPreferenceValueException
-
fetchByPortletPreferencesId_Last
public static PortletPreferenceValue fetchByPortletPreferencesId_Last(long portletPreferencesId, OrderByComparator<PortletPreferenceValue> orderByComparator) Returns the last portlet preference value in the ordered set where portletPreferencesId = ?.- Parameters:
portletPreferencesId
- the portlet preferences IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching portlet preference value, or
null
if a matching portlet preference value could not be found
-
findByPortletPreferencesId_PrevAndNext
public static PortletPreferenceValue[] findByPortletPreferencesId_PrevAndNext(long portletPreferenceValueId, long portletPreferencesId, OrderByComparator<PortletPreferenceValue> orderByComparator) throws NoSuchPortletPreferenceValueException Returns the portlet preference values before and after the current portlet preference value in the ordered set where portletPreferencesId = ?.- Parameters:
portletPreferenceValueId
- the primary key of the current portlet preference valueportletPreferencesId
- the portlet preferences IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next portlet preference value
- Throws:
NoSuchPortletPreferenceValueException
- if a portlet preference value with the primary key could not be foundNoSuchPortletPreferenceValueException
-
removeByPortletPreferencesId
public static void removeByPortletPreferencesId(long portletPreferencesId) Removes all the portlet preference values where portletPreferencesId = ? from the database.- Parameters:
portletPreferencesId
- the portlet preferences ID
-
countByPortletPreferencesId
public static int countByPortletPreferencesId(long portletPreferencesId) Returns the number of portlet preference values where portletPreferencesId = ?.- Parameters:
portletPreferencesId
- the portlet preferences ID- Returns:
- the number of matching portlet preference values
-
findByP_N
Returns all the portlet preference values where portletPreferencesId = ? and name = ?.- Parameters:
portletPreferencesId
- the portlet preferences IDname
- the name- Returns:
- the matching portlet preference values
-
findByP_N
public 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 = ?.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 fromPortletPreferenceValueModelImpl
.- Parameters:
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)- Returns:
- the range of matching portlet preference values
-
findByP_N
public 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 = ?.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 fromPortletPreferenceValueModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching portlet preference values
-
findByP_N
public 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 = ?.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 fromPortletPreferenceValueModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching portlet preference values
-
findByP_N_First
public static PortletPreferenceValue findByP_N_First(long portletPreferencesId, String name, OrderByComparator<PortletPreferenceValue> orderByComparator) throws NoSuchPortletPreferenceValueException Returns the first portlet preference value in the ordered set where portletPreferencesId = ? and name = ?.- Parameters:
portletPreferencesId
- the portlet preferences IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching portlet preference value
- Throws:
NoSuchPortletPreferenceValueException
- if a matching portlet preference value could not be foundNoSuchPortletPreferenceValueException
-
fetchByP_N_First
public 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 = ?.- Parameters:
portletPreferencesId
- the portlet preferences IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching portlet preference value, or
null
if a matching portlet preference value could not be found
-
findByP_N_Last
public static PortletPreferenceValue findByP_N_Last(long portletPreferencesId, String name, OrderByComparator<PortletPreferenceValue> orderByComparator) throws NoSuchPortletPreferenceValueException Returns the last portlet preference value in the ordered set where portletPreferencesId = ? and name = ?.- Parameters:
portletPreferencesId
- the portlet preferences IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching portlet preference value
- Throws:
NoSuchPortletPreferenceValueException
- if a matching portlet preference value could not be foundNoSuchPortletPreferenceValueException
-
fetchByP_N_Last
public 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 = ?.- Parameters:
portletPreferencesId
- the portlet preferences IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching portlet preference value, or
null
if a matching portlet preference value could not be found
-
findByP_N_PrevAndNext
public static PortletPreferenceValue[] findByP_N_PrevAndNext(long portletPreferenceValueId, long portletPreferencesId, String name, OrderByComparator<PortletPreferenceValue> orderByComparator) throws NoSuchPortletPreferenceValueException Returns the portlet preference values before and after the current portlet preference value in the ordered set where portletPreferencesId = ? and name = ?.- Parameters:
portletPreferenceValueId
- the primary key of the current portlet preference valueportletPreferencesId
- the portlet preferences IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next portlet preference value
- Throws:
NoSuchPortletPreferenceValueException
- if a portlet preference value with the primary key could not be foundNoSuchPortletPreferenceValueException
-
removeByP_N
Removes all the portlet preference values where portletPreferencesId = ? and name = ? from the database.- Parameters:
portletPreferencesId
- the portlet preferences IDname
- the name
-
countByP_N
Returns the number of portlet preference values where portletPreferencesId = ? and name = ?.- Parameters:
portletPreferencesId
- the portlet preferences IDname
- the name- Returns:
- the number of matching portlet preference values
-
findByC_N_SV
public static List<PortletPreferenceValue> findByC_N_SV(long companyId, String name, String smallValue) Returns all the portlet preference values where companyId = ? and name = ? and smallValue = ?.- Parameters:
companyId
- the company IDname
- the namesmallValue
- the small value- Returns:
- the matching portlet preference values
-
findByC_N_SV
public 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 = ?.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 fromPortletPreferenceValueModelImpl
.- Parameters:
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)- Returns:
- the range of matching portlet preference values
-
findByC_N_SV
public 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 = ?.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 fromPortletPreferenceValueModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching portlet preference values
-
findByC_N_SV
public 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 = ?.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 fromPortletPreferenceValueModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching portlet preference values
-
findByC_N_SV_First
public static PortletPreferenceValue findByC_N_SV_First(long companyId, String name, String smallValue, OrderByComparator<PortletPreferenceValue> orderByComparator) throws NoSuchPortletPreferenceValueException Returns the first portlet preference value in the ordered set where companyId = ? and name = ? and smallValue = ?.- Parameters:
companyId
- the company IDname
- the namesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching portlet preference value
- Throws:
NoSuchPortletPreferenceValueException
- if a matching portlet preference value could not be foundNoSuchPortletPreferenceValueException
-
fetchByC_N_SV_First
public 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 = ?.- Parameters:
companyId
- the company IDname
- the namesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching portlet preference value, or
null
if a matching portlet preference value could not be found
-
findByC_N_SV_Last
public static PortletPreferenceValue findByC_N_SV_Last(long companyId, String name, String smallValue, OrderByComparator<PortletPreferenceValue> orderByComparator) throws NoSuchPortletPreferenceValueException Returns the last portlet preference value in the ordered set where companyId = ? and name = ? and smallValue = ?.- Parameters:
companyId
- the company IDname
- the namesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching portlet preference value
- Throws:
NoSuchPortletPreferenceValueException
- if a matching portlet preference value could not be foundNoSuchPortletPreferenceValueException
-
fetchByC_N_SV_Last
public 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 = ?.- Parameters:
companyId
- the company IDname
- the namesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching portlet preference value, or
null
if a matching portlet preference value could not be found
-
findByC_N_SV_PrevAndNext
public static PortletPreferenceValue[] findByC_N_SV_PrevAndNext(long portletPreferenceValueId, long companyId, String name, String smallValue, OrderByComparator<PortletPreferenceValue> orderByComparator) throws NoSuchPortletPreferenceValueException Returns the portlet preference values before and after the current portlet preference value in the ordered set where companyId = ? and name = ? and smallValue = ?.- Parameters:
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 (optionallynull
)- Returns:
- the previous, current, and next portlet preference value
- Throws:
NoSuchPortletPreferenceValueException
- if a portlet preference value with the primary key could not be foundNoSuchPortletPreferenceValueException
-
removeByC_N_SV
Removes all the portlet preference values where companyId = ? and name = ? and smallValue = ? from the database.- Parameters:
companyId
- the company IDname
- the namesmallValue
- the small value
-
countByC_N_SV
Returns the number of portlet preference values where companyId = ? and name = ? and smallValue = ?.- Parameters:
companyId
- the company IDname
- the namesmallValue
- the small value- Returns:
- the number of matching portlet preference values
-
findByP_I_N
public static PortletPreferenceValue findByP_I_N(long portletPreferencesId, int index, String name) throws NoSuchPortletPreferenceValueException Returns the portlet preference value where portletPreferencesId = ? and index = ? and name = ? or throws aNoSuchPortletPreferenceValueException
if it could not be found.- Parameters:
portletPreferencesId
- the portlet preferences IDindex
- the indexname
- the name- Returns:
- the matching portlet preference value
- Throws:
NoSuchPortletPreferenceValueException
- if a matching portlet preference value could not be foundNoSuchPortletPreferenceValueException
-
fetchByP_I_N
public static PortletPreferenceValue fetchByP_I_N(long portletPreferencesId, int index, String name) Returns the portlet preference value where portletPreferencesId = ? and index = ? and name = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
portletPreferencesId
- the portlet preferences IDindex
- the indexname
- the name- Returns:
- the matching portlet preference value, or
null
if a matching portlet preference value could not be found
-
fetchByP_I_N
public 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 returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
portletPreferencesId
- the portlet preferences IDindex
- the indexname
- the nameuseFinderCache
- whether to use the finder cache- Returns:
- the matching portlet preference value, or
null
if a matching portlet preference value could not be found
-
removeByP_I_N
public static PortletPreferenceValue removeByP_I_N(long portletPreferencesId, int index, String name) throws NoSuchPortletPreferenceValueException Removes the portlet preference value where portletPreferencesId = ? and index = ? and name = ? from the database.- Parameters:
portletPreferencesId
- the portlet preferences IDindex
- the indexname
- the name- Returns:
- the portlet preference value that was removed
- Throws:
NoSuchPortletPreferenceValueException
-
countByP_I_N
Returns the number of portlet preference values where portletPreferencesId = ? and index = ? and name = ?.- Parameters:
portletPreferencesId
- the portlet preferences IDindex
- the indexname
- the name- Returns:
- the number of matching portlet preference values
-
findByP_N_SV
public static List<PortletPreferenceValue> findByP_N_SV(long portletPreferencesId, String name, String smallValue) Returns all the portlet preference values where portletPreferencesId = ? and name = ? and smallValue = ?.- Parameters:
portletPreferencesId
- the portlet preferences IDname
- the namesmallValue
- the small value- Returns:
- the matching portlet preference values
-
findByP_N_SV
public 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 = ?.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 fromPortletPreferenceValueModelImpl
.- Parameters:
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)- Returns:
- the range of matching portlet preference values
-
findByP_N_SV
public 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 = ?.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 fromPortletPreferenceValueModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching portlet preference values
-
findByP_N_SV
public 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 = ?.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 fromPortletPreferenceValueModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching portlet preference values
-
findByP_N_SV_First
public static PortletPreferenceValue findByP_N_SV_First(long portletPreferencesId, String name, String smallValue, OrderByComparator<PortletPreferenceValue> orderByComparator) throws NoSuchPortletPreferenceValueException Returns the first portlet preference value in the ordered set where portletPreferencesId = ? and name = ? and smallValue = ?.- Parameters:
portletPreferencesId
- the portlet preferences IDname
- the namesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching portlet preference value
- Throws:
NoSuchPortletPreferenceValueException
- if a matching portlet preference value could not be foundNoSuchPortletPreferenceValueException
-
fetchByP_N_SV_First
public 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 = ?.- Parameters:
portletPreferencesId
- the portlet preferences IDname
- the namesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching portlet preference value, or
null
if a matching portlet preference value could not be found
-
findByP_N_SV_Last
public static PortletPreferenceValue findByP_N_SV_Last(long portletPreferencesId, String name, String smallValue, OrderByComparator<PortletPreferenceValue> orderByComparator) throws NoSuchPortletPreferenceValueException Returns the last portlet preference value in the ordered set where portletPreferencesId = ? and name = ? and smallValue = ?.- Parameters:
portletPreferencesId
- the portlet preferences IDname
- the namesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching portlet preference value
- Throws:
NoSuchPortletPreferenceValueException
- if a matching portlet preference value could not be foundNoSuchPortletPreferenceValueException
-
fetchByP_N_SV_Last
public 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 = ?.- Parameters:
portletPreferencesId
- the portlet preferences IDname
- the namesmallValue
- the small valueorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching portlet preference value, or
null
if a matching portlet preference value could not be found
-
findByP_N_SV_PrevAndNext
public static PortletPreferenceValue[] findByP_N_SV_PrevAndNext(long portletPreferenceValueId, long portletPreferencesId, String name, String smallValue, OrderByComparator<PortletPreferenceValue> orderByComparator) throws NoSuchPortletPreferenceValueException Returns the portlet preference values before and after the current portlet preference value in the ordered set where portletPreferencesId = ? and name = ? and smallValue = ?.- Parameters:
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 (optionallynull
)- Returns:
- the previous, current, and next portlet preference value
- Throws:
NoSuchPortletPreferenceValueException
- if a portlet preference value with the primary key could not be foundNoSuchPortletPreferenceValueException
-
removeByP_N_SV
Removes all the portlet preference values where portletPreferencesId = ? and name = ? and smallValue = ? from the database.- Parameters:
portletPreferencesId
- the portlet preferences IDname
- the namesmallValue
- the small value
-
countByP_N_SV
Returns the number of portlet preference values where portletPreferencesId = ? and name = ? and smallValue = ?.- Parameters:
portletPreferencesId
- the portlet preferences IDname
- the namesmallValue
- the small value- Returns:
- the number of matching portlet preference values
-
cacheResult
Caches the portlet preference value in the entity cache if it is enabled.- Parameters:
portletPreferenceValue
- the portlet preference value
-
cacheResult
Caches the portlet preference values in the entity cache if it is enabled.- Parameters:
portletPreferenceValues
- the portlet preference values
-
create
Creates a new portlet preference value with the primary key. Does not add the portlet preference value to the database.- Parameters:
portletPreferenceValueId
- the primary key for the new portlet preference value- Returns:
- the new portlet preference value
-
remove
public static PortletPreferenceValue remove(long portletPreferenceValueId) throws NoSuchPortletPreferenceValueException Removes the portlet preference value with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
portletPreferenceValueId
- the primary key of the portlet preference value- Returns:
- the portlet preference value that was removed
- Throws:
NoSuchPortletPreferenceValueException
- if a portlet preference value with the primary key could not be foundNoSuchPortletPreferenceValueException
-
updateImpl
-
findByPrimaryKey
public static PortletPreferenceValue findByPrimaryKey(long portletPreferenceValueId) throws NoSuchPortletPreferenceValueException Returns the portlet preference value with the primary key or throws aNoSuchPortletPreferenceValueException
if it could not be found.- Parameters:
portletPreferenceValueId
- the primary key of the portlet preference value- Returns:
- the portlet preference value
- Throws:
NoSuchPortletPreferenceValueException
- if a portlet preference value with the primary key could not be foundNoSuchPortletPreferenceValueException
-
fetchByPrimaryKey
Returns the portlet preference value with the primary key or returnsnull
if it could not be found.- Parameters:
portletPreferenceValueId
- the primary key of the portlet preference value- Returns:
- the portlet preference value, or
null
if a portlet preference value with the primary key could not be found
-
findAll
Returns all the portlet preference values.- Returns:
- the portlet preference values
-
findAll
Returns a range of all the portlet 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 fromPortletPreferenceValueModelImpl
.- Parameters:
start
- the lower bound of the range of portlet preference valuesend
- the upper bound of the range of portlet preference values (not inclusive)- Returns:
- the range of portlet preference values
-
findAll
public static List<PortletPreferenceValue> findAll(int start, int end, OrderByComparator<PortletPreferenceValue> orderByComparator) Returns an ordered range of all the portlet 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 fromPortletPreferenceValueModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of portlet preference values
-
findAll
public static List<PortletPreferenceValue> findAll(int start, int end, OrderByComparator<PortletPreferenceValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the portlet 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 fromPortletPreferenceValueModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of portlet preference values
-
removeAll
public static void removeAll()Removes all the portlet preference values from the database. -
countAll
public static int countAll()Returns the number of portlet preference values.- Returns:
- the number of portlet preference values
-
getPersistence
-
setPersistence
-