Class CPOptionValueUtil
com.liferay.commerce.product.service.persistence.impl.CPOptionValuePersistenceImpl
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CPOptionValue cpOptionValue) Caches the cp option value in the entity cache if it is enabled.static void
cacheResult
(List<CPOptionValue> cpOptionValues) Caches the cp option values in the entity cache if it is enabled.static void
static void
clearCache
(CPOptionValue cpOptionValue) static int
countAll()
Returns the number of cp option values.static int
countByC_K
(long CPOptionId, String key) Returns the number of cp option values where CPOptionId = ? and key = ?.static int
countByCompanyId
(long companyId) Returns the number of cp option values where companyId = ?.static int
countByCPOptionId
(long CPOptionId) Returns the number of cp option values where CPOptionId = ?.static int
countByERC_C
(String externalReferenceCode, long companyId) Returns the number of cp option values where externalReferenceCode = ? and companyId = ?.static int
countByUuid
(String uuid) Returns the number of cp option values where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of cp option values where uuid = ? and companyId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CPOptionValue
create
(long CPOptionValueId) Creates a new cp option value with the primary key.static CPOptionValue
fetchByC_K
(long CPOptionId, String key) Returns the cp option value where CPOptionId = ? and key = ? or returnsnull
if it could not be found.static CPOptionValue
fetchByC_K
(long CPOptionId, String key, boolean useFinderCache) Returns the cp option value where CPOptionId = ? and key = ? or returnsnull
if it could not be found, optionally using the finder cache.static CPOptionValue
fetchByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the first cp option value in the ordered set where companyId = ?.static CPOptionValue
fetchByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the last cp option value in the ordered set where companyId = ?.static CPOptionValue
fetchByCPOptionId_First
(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the first cp option value in the ordered set where CPOptionId = ?.static CPOptionValue
fetchByCPOptionId_Last
(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the last cp option value in the ordered set where CPOptionId = ?.static CPOptionValue
fetchByERC_C
(String externalReferenceCode, long companyId) Returns the cp option value where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found.static CPOptionValue
fetchByERC_C
(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the cp option value where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.static CPOptionValue
fetchByPrimaryKey
(long CPOptionValueId) Returns the cp option value with the primary key or returnsnull
if it could not be found.static Map<Serializable,
CPOptionValue> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static CPOptionValue
fetchByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the first cp option value in the ordered set where uuid = ? and companyId = ?.static CPOptionValue
fetchByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the last cp option value in the ordered set where uuid = ? and companyId = ?.static CPOptionValue
fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the first cp option value in the ordered set where uuid = ?.static CPOptionValue
fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the last cp option value in the ordered set where uuid = ?.static List<CPOptionValue>
findAll()
Returns all the cp option values.static List<CPOptionValue>
findAll
(int start, int end) Returns a range of all the cp option values.static List<CPOptionValue>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns an ordered range of all the cp option values.static List<CPOptionValue>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp option values.static CPOptionValue
Returns the cp option value where CPOptionId = ? and key = ? or throws aNoSuchCPOptionValueException
if it could not be found.static List<CPOptionValue>
findByCompanyId
(long companyId) Returns all the cp option values where companyId = ?.static List<CPOptionValue>
findByCompanyId
(long companyId, int start, int end) Returns a range of all the cp option values where companyId = ?.static List<CPOptionValue>
findByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns an ordered range of all the cp option values where companyId = ?.static List<CPOptionValue>
findByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp option values where companyId = ?.static CPOptionValue
findByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the first cp option value in the ordered set where companyId = ?.static CPOptionValue
findByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the last cp option value in the ordered set where companyId = ?.static CPOptionValue[]
findByCompanyId_PrevAndNext
(long CPOptionValueId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the cp option values before and after the current cp option value in the ordered set where companyId = ?.static List<CPOptionValue>
findByCPOptionId
(long CPOptionId) Returns all the cp option values where CPOptionId = ?.static List<CPOptionValue>
findByCPOptionId
(long CPOptionId, int start, int end) Returns a range of all the cp option values where CPOptionId = ?.static List<CPOptionValue>
findByCPOptionId
(long CPOptionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns an ordered range of all the cp option values where CPOptionId = ?.static List<CPOptionValue>
findByCPOptionId
(long CPOptionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp option values where CPOptionId = ?.static CPOptionValue
findByCPOptionId_First
(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the first cp option value in the ordered set where CPOptionId = ?.static CPOptionValue
findByCPOptionId_Last
(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the last cp option value in the ordered set where CPOptionId = ?.static CPOptionValue[]
findByCPOptionId_PrevAndNext
(long CPOptionValueId, long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the cp option values before and after the current cp option value in the ordered set where CPOptionId = ?.static CPOptionValue
findByERC_C
(String externalReferenceCode, long companyId) Returns the cp option value where externalReferenceCode = ? and companyId = ? or throws aNoSuchCPOptionValueException
if it could not be found.static CPOptionValue
findByPrimaryKey
(long CPOptionValueId) Returns the cp option value with the primary key or throws aNoSuchCPOptionValueException
if it could not be found.static List<CPOptionValue>
findByUuid
(String uuid) Returns all the cp option values where uuid = ?.static List<CPOptionValue>
findByUuid
(String uuid, int start, int end) Returns a range of all the cp option values where uuid = ?.static List<CPOptionValue>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns an ordered range of all the cp option values where uuid = ?.static List<CPOptionValue>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp option values where uuid = ?.static List<CPOptionValue>
findByUuid_C
(String uuid, long companyId) Returns all the cp option values where uuid = ? and companyId = ?.static List<CPOptionValue>
findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the cp option values where uuid = ? and companyId = ?.static List<CPOptionValue>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns an ordered range of all the cp option values where uuid = ? and companyId = ?.static List<CPOptionValue>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp option values where uuid = ? and companyId = ?.static CPOptionValue
findByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the first cp option value in the ordered set where uuid = ? and companyId = ?.static CPOptionValue
findByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the last cp option value in the ordered set where uuid = ? and companyId = ?.static CPOptionValue[]
findByUuid_C_PrevAndNext
(long CPOptionValueId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the cp option values before and after the current cp option value in the ordered set where uuid = ? and companyId = ?.static CPOptionValue
findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the first cp option value in the ordered set where uuid = ?.static CPOptionValue
findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the last cp option value in the ordered set where uuid = ?.static CPOptionValue[]
findByUuid_PrevAndNext
(long CPOptionValueId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the cp option values before and after the current cp option value in the ordered set where uuid = ?.static List<CPOptionValue>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CPOptionValue>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CPOptionValue>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) static CPOptionValuePersistence
static CPOptionValue
remove
(long CPOptionValueId) Removes the cp option value with the primary key from the database.static void
Removes all the cp option values from the database.static CPOptionValue
removeByC_K
(long CPOptionId, String key) Removes the cp option value where CPOptionId = ? and key = ? from the database.static void
removeByCompanyId
(long companyId) Removes all the cp option values where companyId = ? from the database.static void
removeByCPOptionId
(long CPOptionId) Removes all the cp option values where CPOptionId = ? from the database.static CPOptionValue
removeByERC_C
(String externalReferenceCode, long companyId) Removes the cp option value where externalReferenceCode = ? and companyId = ? from the database.static void
removeByUuid
(String uuid) Removes all the cp option values where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the cp option values where uuid = ? and companyId = ? from the database.static void
setPersistence
(CPOptionValuePersistence persistence) static CPOptionValue
update
(CPOptionValue cpOptionValue) static CPOptionValue
update
(CPOptionValue cpOptionValue, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CPOptionValue
updateImpl
(CPOptionValue cpOptionValue)
-
Constructor Details
-
CPOptionValueUtil
public CPOptionValueUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CPOptionValue> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CPOptionValue> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CPOptionValue> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CPOptionValue update(CPOptionValue cpOptionValue, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the cp option values where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching cp option values
-
findByUuid
Returns a range of all the cp option values where uuid = ?.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 fromCPOptionValueModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)- Returns:
- the range of matching cp option values
-
findByUuid
public static List<CPOptionValue> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns an ordered range of all the cp option values where uuid = ?.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 fromCPOptionValueModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp option values
-
findByUuid
public static List<CPOptionValue> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp option values where uuid = ?.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 fromCPOptionValueModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option 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 cp option values
-
findByUuid_First
public static CPOptionValue findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException Returns the first cp option value in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp option value
- Throws:
NoSuchCPOptionValueException
- if a matching cp option value could not be foundNoSuchCPOptionValueException
-
fetchByUuid_First
public static CPOptionValue fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the first cp option value in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp option value, or
null
if a matching cp option value could not be found
-
findByUuid_Last
public static CPOptionValue findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException Returns the last cp option value in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp option value
- Throws:
NoSuchCPOptionValueException
- if a matching cp option value could not be foundNoSuchCPOptionValueException
-
fetchByUuid_Last
public static CPOptionValue fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the last cp option value in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp option value, or
null
if a matching cp option value could not be found
-
findByUuid_PrevAndNext
public static CPOptionValue[] findByUuid_PrevAndNext(long CPOptionValueId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException Returns the cp option values before and after the current cp option value in the ordered set where uuid = ?.- Parameters:
CPOptionValueId
- the primary key of the current cp option valueuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp option value
- Throws:
NoSuchCPOptionValueException
- if a cp option value with the primary key could not be foundNoSuchCPOptionValueException
-
removeByUuid
Removes all the cp option values where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of cp option values where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching cp option values
-
findByUuid_C
Returns all the cp option values where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching cp option values
-
findByUuid_C
Returns a range of all the cp option values where uuid = ? and companyId = ?.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 fromCPOptionValueModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)- Returns:
- the range of matching cp option values
-
findByUuid_C
public static List<CPOptionValue> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns an ordered range of all the cp option values where uuid = ? and companyId = ?.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 fromCPOptionValueModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp option values
-
findByUuid_C
public static List<CPOptionValue> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp option values where uuid = ? and companyId = ?.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 fromCPOptionValueModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option 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 cp option values
-
findByUuid_C_First
public static CPOptionValue findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException Returns the first cp option value in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp option value
- Throws:
NoSuchCPOptionValueException
- if a matching cp option value could not be foundNoSuchCPOptionValueException
-
fetchByUuid_C_First
public static CPOptionValue fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the first cp option value in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp option value, or
null
if a matching cp option value could not be found
-
findByUuid_C_Last
public static CPOptionValue findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException Returns the last cp option value in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp option value
- Throws:
NoSuchCPOptionValueException
- if a matching cp option value could not be foundNoSuchCPOptionValueException
-
fetchByUuid_C_Last
public static CPOptionValue fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the last cp option value in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp option value, or
null
if a matching cp option value could not be found
-
findByUuid_C_PrevAndNext
public static CPOptionValue[] findByUuid_C_PrevAndNext(long CPOptionValueId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException Returns the cp option values before and after the current cp option value in the ordered set where uuid = ? and companyId = ?.- Parameters:
CPOptionValueId
- the primary key of the current cp option valueuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp option value
- Throws:
NoSuchCPOptionValueException
- if a cp option value with the primary key could not be foundNoSuchCPOptionValueException
-
removeByUuid_C
Removes all the cp option values where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of cp option values where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching cp option values
-
findByCompanyId
Returns all the cp option values where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching cp option values
-
findByCompanyId
Returns a range of all the cp option values where companyId = ?.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 fromCPOptionValueModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)- Returns:
- the range of matching cp option values
-
findByCompanyId
public static List<CPOptionValue> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns an ordered range of all the cp option values where companyId = ?.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 fromCPOptionValueModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp option values
-
findByCompanyId
public static List<CPOptionValue> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp option values where companyId = ?.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 fromCPOptionValueModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option 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 cp option values
-
findByCompanyId_First
public static CPOptionValue findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException Returns the first cp option value in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp option value
- Throws:
NoSuchCPOptionValueException
- if a matching cp option value could not be foundNoSuchCPOptionValueException
-
fetchByCompanyId_First
public static CPOptionValue fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the first cp option value in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp option value, or
null
if a matching cp option value could not be found
-
findByCompanyId_Last
public static CPOptionValue findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException Returns the last cp option value in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp option value
- Throws:
NoSuchCPOptionValueException
- if a matching cp option value could not be foundNoSuchCPOptionValueException
-
fetchByCompanyId_Last
public static CPOptionValue fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the last cp option value in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp option value, or
null
if a matching cp option value could not be found
-
findByCompanyId_PrevAndNext
public static CPOptionValue[] findByCompanyId_PrevAndNext(long CPOptionValueId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException Returns the cp option values before and after the current cp option value in the ordered set where companyId = ?.- Parameters:
CPOptionValueId
- the primary key of the current cp option valuecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp option value
- Throws:
NoSuchCPOptionValueException
- if a cp option value with the primary key could not be foundNoSuchCPOptionValueException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the cp option values where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of cp option values where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching cp option values
-
findByCPOptionId
Returns all the cp option values where CPOptionId = ?.- Parameters:
CPOptionId
- the cp option ID- Returns:
- the matching cp option values
-
findByCPOptionId
Returns a range of all the cp option values where CPOptionId = ?.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 fromCPOptionValueModelImpl
.- Parameters:
CPOptionId
- the cp option IDstart
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)- Returns:
- the range of matching cp option values
-
findByCPOptionId
public static List<CPOptionValue> findByCPOptionId(long CPOptionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns an ordered range of all the cp option values where CPOptionId = ?.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 fromCPOptionValueModelImpl
.- Parameters:
CPOptionId
- the cp option IDstart
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp option values
-
findByCPOptionId
public static List<CPOptionValue> findByCPOptionId(long CPOptionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp option values where CPOptionId = ?.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 fromCPOptionValueModelImpl
.- Parameters:
CPOptionId
- the cp option IDstart
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option 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 cp option values
-
findByCPOptionId_First
public static CPOptionValue findByCPOptionId_First(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException Returns the first cp option value in the ordered set where CPOptionId = ?.- Parameters:
CPOptionId
- the cp option IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp option value
- Throws:
NoSuchCPOptionValueException
- if a matching cp option value could not be foundNoSuchCPOptionValueException
-
fetchByCPOptionId_First
public static CPOptionValue fetchByCPOptionId_First(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the first cp option value in the ordered set where CPOptionId = ?.- Parameters:
CPOptionId
- the cp option IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp option value, or
null
if a matching cp option value could not be found
-
findByCPOptionId_Last
public static CPOptionValue findByCPOptionId_Last(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException Returns the last cp option value in the ordered set where CPOptionId = ?.- Parameters:
CPOptionId
- the cp option IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp option value
- Throws:
NoSuchCPOptionValueException
- if a matching cp option value could not be foundNoSuchCPOptionValueException
-
fetchByCPOptionId_Last
public static CPOptionValue fetchByCPOptionId_Last(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns the last cp option value in the ordered set where CPOptionId = ?.- Parameters:
CPOptionId
- the cp option IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp option value, or
null
if a matching cp option value could not be found
-
findByCPOptionId_PrevAndNext
public static CPOptionValue[] findByCPOptionId_PrevAndNext(long CPOptionValueId, long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException Returns the cp option values before and after the current cp option value in the ordered set where CPOptionId = ?.- Parameters:
CPOptionValueId
- the primary key of the current cp option valueCPOptionId
- the cp option IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp option value
- Throws:
NoSuchCPOptionValueException
- if a cp option value with the primary key could not be foundNoSuchCPOptionValueException
-
removeByCPOptionId
public static void removeByCPOptionId(long CPOptionId) Removes all the cp option values where CPOptionId = ? from the database.- Parameters:
CPOptionId
- the cp option ID
-
countByCPOptionId
public static int countByCPOptionId(long CPOptionId) Returns the number of cp option values where CPOptionId = ?.- Parameters:
CPOptionId
- the cp option ID- Returns:
- the number of matching cp option values
-
findByC_K
public static CPOptionValue findByC_K(long CPOptionId, String key) throws NoSuchCPOptionValueException Returns the cp option value where CPOptionId = ? and key = ? or throws aNoSuchCPOptionValueException
if it could not be found.- Parameters:
CPOptionId
- the cp option IDkey
- the key- Returns:
- the matching cp option value
- Throws:
NoSuchCPOptionValueException
- if a matching cp option value could not be foundNoSuchCPOptionValueException
-
fetchByC_K
Returns the cp option value where CPOptionId = ? and key = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
CPOptionId
- the cp option IDkey
- the key- Returns:
- the matching cp option value, or
null
if a matching cp option value could not be found
-
fetchByC_K
Returns the cp option value where CPOptionId = ? and key = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
CPOptionId
- the cp option IDkey
- the keyuseFinderCache
- whether to use the finder cache- Returns:
- the matching cp option value, or
null
if a matching cp option value could not be found
-
removeByC_K
public static CPOptionValue removeByC_K(long CPOptionId, String key) throws NoSuchCPOptionValueException Removes the cp option value where CPOptionId = ? and key = ? from the database.- Parameters:
CPOptionId
- the cp option IDkey
- the key- Returns:
- the cp option value that was removed
- Throws:
NoSuchCPOptionValueException
-
countByC_K
Returns the number of cp option values where CPOptionId = ? and key = ?.- Parameters:
CPOptionId
- the cp option IDkey
- the key- Returns:
- the number of matching cp option values
-
findByERC_C
public static CPOptionValue findByERC_C(String externalReferenceCode, long companyId) throws NoSuchCPOptionValueException Returns the cp option value where externalReferenceCode = ? and companyId = ? or throws aNoSuchCPOptionValueException
if it could not be found.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching cp option value
- Throws:
NoSuchCPOptionValueException
- if a matching cp option value could not be foundNoSuchCPOptionValueException
-
fetchByERC_C
Returns the cp option value where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching cp option value, or
null
if a matching cp option value could not be found
-
fetchByERC_C
public static CPOptionValue fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the cp option value where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching cp option value, or
null
if a matching cp option value could not be found
-
removeByERC_C
public static CPOptionValue removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchCPOptionValueException Removes the cp option value where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the cp option value that was removed
- Throws:
NoSuchCPOptionValueException
-
countByERC_C
Returns the number of cp option values where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the number of matching cp option values
-
cacheResult
Caches the cp option value in the entity cache if it is enabled.- Parameters:
cpOptionValue
- the cp option value
-
cacheResult
Caches the cp option values in the entity cache if it is enabled.- Parameters:
cpOptionValues
- the cp option values
-
create
Creates a new cp option value with the primary key. Does not add the cp option value to the database.- Parameters:
CPOptionValueId
- the primary key for the new cp option value- Returns:
- the new cp option value
-
remove
Removes the cp option value with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
CPOptionValueId
- the primary key of the cp option value- Returns:
- the cp option value that was removed
- Throws:
NoSuchCPOptionValueException
- if a cp option value with the primary key could not be foundNoSuchCPOptionValueException
-
updateImpl
-
findByPrimaryKey
public static CPOptionValue findByPrimaryKey(long CPOptionValueId) throws NoSuchCPOptionValueException Returns the cp option value with the primary key or throws aNoSuchCPOptionValueException
if it could not be found.- Parameters:
CPOptionValueId
- the primary key of the cp option value- Returns:
- the cp option value
- Throws:
NoSuchCPOptionValueException
- if a cp option value with the primary key could not be foundNoSuchCPOptionValueException
-
fetchByPrimaryKey
Returns the cp option value with the primary key or returnsnull
if it could not be found.- Parameters:
CPOptionValueId
- the primary key of the cp option value- Returns:
- the cp option value, or
null
if a cp option value with the primary key could not be found
-
findAll
Returns all the cp option values.- Returns:
- the cp option values
-
findAll
Returns a range of all the cp option 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 fromCPOptionValueModelImpl
.- Parameters:
start
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)- Returns:
- the range of cp option values
-
findAll
public static List<CPOptionValue> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) Returns an ordered range of all the cp option 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 fromCPOptionValueModelImpl
.- Parameters:
start
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of cp option values
-
findAll
public static List<CPOptionValue> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp option 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 fromCPOptionValueModelImpl
.- Parameters:
start
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of cp option values
-
removeAll
public static void removeAll()Removes all the cp option values from the database. -
countAll
public static int countAll()Returns the number of cp option values.- Returns:
- the number of cp option values
-
getPersistence
-
setPersistence
-