public class CPOptionValueUtil
extends java.lang.Object
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
CPOptionValuePersistence
Constructor and Description |
---|
CPOptionValueUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CPOptionValue cpOptionValue)
Caches the cp option value in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CPOptionValue> cpOptionValues)
Caches the cp option values in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CPOptionValue cpOptionValue) |
static int |
countAll()
Returns the number of cp option values.
|
static int |
countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of cp option values where companyId = ? and externalReferenceCode = ?.
|
static int |
countByC_K(long CPOptionId,
java.lang.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 |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of cp option values where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of cp option values where uuid = ?.
|
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_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the cp option value where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found. |
static CPOptionValue |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode,
boolean useFinderCache)
Returns the cp option value where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found, optionally using the finder cache. |
static CPOptionValue |
fetchByC_K(long CPOptionId,
java.lang.String key)
Returns the cp option value where CPOptionId = ? and key = ? or returns
null if it could not be found. |
static CPOptionValue |
fetchByC_K(long CPOptionId,
java.lang.String key,
boolean useFinderCache)
Returns the cp option value where CPOptionId = ? and key = ? or returns
null 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 |
fetchByPrimaryKey(long CPOptionValueId)
Returns the cp option value with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CPOptionValue> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CPOptionValue |
fetchByUuid_C_First(java.lang.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(java.lang.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(java.lang.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(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
Returns the last cp option value in the ordered set where uuid = ?.
|
static java.util.List<CPOptionValue> |
findAll()
Returns all the cp option values.
|
static java.util.List<CPOptionValue> |
findAll(int start,
int end)
Returns a range of all the cp option values.
|
static java.util.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 java.util.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 |
findByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the cp option value where companyId = ? and externalReferenceCode = ? or throws a
NoSuchCPOptionValueException if it could not be found. |
static CPOptionValue |
findByC_K(long CPOptionId,
java.lang.String key)
Returns the cp option value where CPOptionId = ? and key = ? or throws a
NoSuchCPOptionValueException if it could not be found. |
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 java.util.List<CPOptionValue> |
findByCompanyId(long companyId)
Returns all the cp option values where companyId = ?.
|
static java.util.List<CPOptionValue> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the cp option values where companyId = ?.
|
static java.util.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 java.util.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 |
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 java.util.List<CPOptionValue> |
findByCPOptionId(long CPOptionId)
Returns all the cp option values where CPOptionId = ?.
|
static java.util.List<CPOptionValue> |
findByCPOptionId(long CPOptionId,
int start,
int end)
Returns a range of all the cp option values where CPOptionId = ?.
|
static java.util.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 java.util.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 |
findByPrimaryKey(long CPOptionValueId)
Returns the cp option value with the primary key or throws a
NoSuchCPOptionValueException if it could not be found. |
static CPOptionValue |
findByUuid_C_First(java.lang.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(java.lang.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,
java.lang.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 java.util.List<CPOptionValue> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the cp option values where uuid = ? and companyId = ?.
|
static java.util.List<CPOptionValue> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the cp option values where uuid = ? and companyId = ?.
|
static java.util.List<CPOptionValue> |
findByUuid_C(java.lang.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 java.util.List<CPOptionValue> |
findByUuid_C(java.lang.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_First(java.lang.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(java.lang.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,
java.lang.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 java.util.List<CPOptionValue> |
findByUuid(java.lang.String uuid)
Returns all the cp option values where uuid = ?.
|
static java.util.List<CPOptionValue> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the cp option values where uuid = ?.
|
static java.util.List<CPOptionValue> |
findByUuid(java.lang.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 java.util.List<CPOptionValue> |
findByUuid(java.lang.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 java.util.List<CPOptionValue> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CPOptionValue> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.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 |
getPersistence() |
static CPOptionValue |
remove(long CPOptionValueId)
Removes the cp option value with the primary key from the database.
|
static void |
removeAll()
Removes all the cp option values from the database.
|
static CPOptionValue |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the cp option value where companyId = ? and externalReferenceCode = ? from the database.
|
static CPOptionValue |
removeByC_K(long CPOptionId,
java.lang.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 void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the cp option values where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the cp option values where uuid = ? from the database.
|
static CPOptionValue |
update(CPOptionValue cpOptionValue) |
static CPOptionValue |
update(CPOptionValue cpOptionValue,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CPOptionValue |
updateImpl(CPOptionValue cpOptionValue) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CPOptionValue cpOptionValue)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CPOptionValue> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CPOptionValue> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CPOptionValue> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CPOptionValue> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CPOptionValue update(CPOptionValue cpOptionValue)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CPOptionValue update(CPOptionValue cpOptionValue, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CPOptionValue> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CPOptionValue> findByUuid(java.lang.String uuid, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPOptionValueModelImpl
.
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)public static java.util.List<CPOptionValue> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPOptionValueModelImpl
.
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 (optionally null
)public static java.util.List<CPOptionValue> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPOptionValueModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPOptionValue findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPOptionValueException
- if a matching cp option value could not be foundpublic static CPOptionValue fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp option value could not be foundpublic static CPOptionValue findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPOptionValueException
- if a matching cp option value could not be foundpublic static CPOptionValue fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp option value could not be foundpublic static CPOptionValue[] findByUuid_PrevAndNext(long CPOptionValueId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException
CPOptionValueId
- the primary key of the current cp option valueuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPOptionValueException
- if a cp option value with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CPOptionValue> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CPOptionValue> findByUuid_C(java.lang.String uuid, long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPOptionValueModelImpl
.
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)public static java.util.List<CPOptionValue> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPOptionValueModelImpl
.
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 (optionally null
)public static java.util.List<CPOptionValue> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPOptionValueModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPOptionValue findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPOptionValueException
- if a matching cp option value could not be foundpublic static CPOptionValue fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp option value could not be foundpublic static CPOptionValue findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPOptionValueException
- if a matching cp option value could not be foundpublic static CPOptionValue fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp option value could not be foundpublic static CPOptionValue[] findByUuid_C_PrevAndNext(long CPOptionValueId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException
CPOptionValueId
- the primary key of the current cp option valueuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPOptionValueException
- if a cp option value with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CPOptionValue> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CPOptionValue> findByCompanyId(long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPOptionValueModelImpl
.
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)public static java.util.List<CPOptionValue> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPOptionValueModelImpl
.
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 (optionally null
)public static java.util.List<CPOptionValue> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPOptionValueModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPOptionValue findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPOptionValueException
- if a matching cp option value could not be foundpublic static CPOptionValue fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp option value could not be foundpublic static CPOptionValue findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPOptionValueException
- if a matching cp option value could not be foundpublic static CPOptionValue fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp option value could not be foundpublic static CPOptionValue[] findByCompanyId_PrevAndNext(long CPOptionValueId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException
CPOptionValueId
- the primary key of the current cp option valuecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPOptionValueException
- if a cp option value with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CPOptionValue> findByCPOptionId(long CPOptionId)
CPOptionId
- the cp option IDpublic static java.util.List<CPOptionValue> findByCPOptionId(long CPOptionId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPOptionValueModelImpl
.
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)public static java.util.List<CPOptionValue> findByCPOptionId(long CPOptionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPOptionValueModelImpl
.
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 (optionally null
)public static java.util.List<CPOptionValue> findByCPOptionId(long CPOptionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPOptionValueModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPOptionValue findByCPOptionId_First(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException
CPOptionId
- the cp option IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPOptionValueException
- if a matching cp option value could not be foundpublic static CPOptionValue fetchByCPOptionId_First(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
CPOptionId
- the cp option IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp option value could not be foundpublic static CPOptionValue findByCPOptionId_Last(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException
CPOptionId
- the cp option IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPOptionValueException
- if a matching cp option value could not be foundpublic static CPOptionValue fetchByCPOptionId_Last(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
CPOptionId
- the cp option IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp option value could not be foundpublic static CPOptionValue[] findByCPOptionId_PrevAndNext(long CPOptionValueId, long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException
CPOptionValueId
- the primary key of the current cp option valueCPOptionId
- the cp option IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPOptionValueException
- if a cp option value with the primary key could not be foundpublic static void removeByCPOptionId(long CPOptionId)
CPOptionId
- the cp option IDpublic static int countByCPOptionId(long CPOptionId)
CPOptionId
- the cp option IDpublic static CPOptionValue findByC_K(long CPOptionId, java.lang.String key) throws NoSuchCPOptionValueException
NoSuchCPOptionValueException
if it could not be found.CPOptionId
- the cp option IDkey
- the keyNoSuchCPOptionValueException
- if a matching cp option value could not be foundpublic static CPOptionValue fetchByC_K(long CPOptionId, java.lang.String key)
null
if it could not be found. Uses the finder cache.CPOptionId
- the cp option IDkey
- the keynull
if a matching cp option value could not be foundpublic static CPOptionValue fetchByC_K(long CPOptionId, java.lang.String key, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.CPOptionId
- the cp option IDkey
- the keyuseFinderCache
- whether to use the finder cachenull
if a matching cp option value could not be foundpublic static CPOptionValue removeByC_K(long CPOptionId, java.lang.String key) throws NoSuchCPOptionValueException
CPOptionId
- the cp option IDkey
- the keyNoSuchCPOptionValueException
public static int countByC_K(long CPOptionId, java.lang.String key)
CPOptionId
- the cp option IDkey
- the keypublic static CPOptionValue findByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchCPOptionValueException
NoSuchCPOptionValueException
if it could not be found.companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchCPOptionValueException
- if a matching cp option value could not be foundpublic static CPOptionValue fetchByC_ERC(long companyId, java.lang.String externalReferenceCode)
null
if it could not be found. Uses the finder cache.companyId
- the company IDexternalReferenceCode
- the external reference codenull
if a matching cp option value could not be foundpublic static CPOptionValue fetchByC_ERC(long companyId, java.lang.String externalReferenceCode, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDexternalReferenceCode
- the external reference codeuseFinderCache
- whether to use the finder cachenull
if a matching cp option value could not be foundpublic static CPOptionValue removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchCPOptionValueException
companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchCPOptionValueException
public static int countByC_ERC(long companyId, java.lang.String externalReferenceCode)
companyId
- the company IDexternalReferenceCode
- the external reference codepublic static void cacheResult(CPOptionValue cpOptionValue)
cpOptionValue
- the cp option valuepublic static void cacheResult(java.util.List<CPOptionValue> cpOptionValues)
cpOptionValues
- the cp option valuespublic static CPOptionValue create(long CPOptionValueId)
CPOptionValueId
- the primary key for the new cp option valuepublic static CPOptionValue remove(long CPOptionValueId) throws NoSuchCPOptionValueException
CPOptionValueId
- the primary key of the cp option valueNoSuchCPOptionValueException
- if a cp option value with the primary key could not be foundpublic static CPOptionValue updateImpl(CPOptionValue cpOptionValue)
public static CPOptionValue findByPrimaryKey(long CPOptionValueId) throws NoSuchCPOptionValueException
NoSuchCPOptionValueException
if it could not be found.CPOptionValueId
- the primary key of the cp option valueNoSuchCPOptionValueException
- if a cp option value with the primary key could not be foundpublic static CPOptionValue fetchByPrimaryKey(long CPOptionValueId)
null
if it could not be found.CPOptionValueId
- the primary key of the cp option valuenull
if a cp option value with the primary key could not be foundpublic static java.util.List<CPOptionValue> findAll()
public static java.util.List<CPOptionValue> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPOptionValueModelImpl
.
start
- the lower bound of the range of cp option valuesend
- the upper bound of the range of cp option values (not inclusive)public static java.util.List<CPOptionValue> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPOptionValueModelImpl
.
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 (optionally null
)public static java.util.List<CPOptionValue> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPOptionValueModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CPOptionValuePersistence getPersistence()