@ProviderType public interface CPOptionValuePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CPOptionValue>
Caching information and settings can be found in portal.properties
CPOptionValueUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CPOptionValue cpOptionValue)
Caches the cp option value in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CPOptionValue> cpOptionValues)
Caches the cp option values in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of cp option values.
|
int |
countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of cp option values where companyId = ? and externalReferenceCode = ?.
|
int |
countByC_K(long CPOptionId,
java.lang.String key)
Returns the number of cp option values where CPOptionId = ? and key = ?.
|
int |
countByCompanyId(long companyId)
Returns the number of cp option values where companyId = ?.
|
int |
countByCPOptionId(long CPOptionId)
Returns the number of cp option values where CPOptionId = ?.
|
int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of cp option values where uuid = ? and companyId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of cp option values where uuid = ?.
|
CPOptionValue |
create(long CPOptionValueId)
Creates a new cp option value with the primary key.
|
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. |
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. |
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. |
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. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
CPOptionValue |
fetchByPrimaryKey(long CPOptionValueId)
Returns the cp option value with the primary key or returns
null if it could not be found. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CPOptionValue> |
findAll()
Returns all the cp option values.
|
java.util.List<CPOptionValue> |
findAll(int start,
int end)
Returns a range of all the cp option values.
|
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.
|
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.
|
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. |
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. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CPOptionValue> |
findByCompanyId(long companyId)
Returns all the cp option values where companyId = ?.
|
java.util.List<CPOptionValue> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the cp option values where companyId = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CPOptionValue> |
findByCPOptionId(long CPOptionId)
Returns all the cp option values where CPOptionId = ?.
|
java.util.List<CPOptionValue> |
findByCPOptionId(long CPOptionId,
int start,
int end)
Returns a range of all the cp option values where CPOptionId = ?.
|
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 = ?.
|
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 = ?.
|
CPOptionValue |
findByPrimaryKey(long CPOptionValueId)
Returns the cp option value with the primary key or throws a
NoSuchCPOptionValueException if it could not be found. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CPOptionValue> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the cp option values where uuid = ? and companyId = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CPOptionValue> |
findByUuid(java.lang.String uuid)
Returns all the cp option values where uuid = ?.
|
java.util.List<CPOptionValue> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the cp option values where uuid = ?.
|
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 = ?.
|
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 = ?.
|
CPOptionValue |
remove(long CPOptionValueId)
Removes the cp option value with the primary key from the database.
|
void |
removeAll()
Removes all the cp option values from the database.
|
CPOptionValue |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the cp option value where companyId = ? and externalReferenceCode = ? from the database.
|
CPOptionValue |
removeByC_K(long CPOptionId,
java.lang.String key)
Removes the cp option value where CPOptionId = ? and key = ? from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the cp option values where companyId = ? from the database.
|
void |
removeByCPOptionId(long CPOptionId)
Removes all the cp option values where CPOptionId = ? from the database.
|
void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the cp option values where uuid = ? and companyId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the cp option values where uuid = ? from the database.
|
CPOptionValue |
updateImpl(CPOptionValue cpOptionValue) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<CPOptionValue> findByUuid(java.lang.String uuid)
uuid
- the uuidjava.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)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
)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 cacheCPOptionValue 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 foundCPOptionValue 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 foundCPOptionValue 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 foundCPOptionValue 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 foundCPOptionValue[] 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 foundvoid removeByUuid(java.lang.String uuid)
uuid
- the uuidint countByUuid(java.lang.String uuid)
uuid
- the uuidjava.util.List<CPOptionValue> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.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)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
)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 cacheCPOptionValue 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 foundCPOptionValue 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 foundCPOptionValue 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 foundCPOptionValue 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 foundCPOptionValue[] 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 foundvoid removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDint countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<CPOptionValue> findByCompanyId(long companyId)
companyId
- the company IDjava.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)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
)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 cacheCPOptionValue 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 foundCPOptionValue 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 foundCPOptionValue 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 foundCPOptionValue 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 foundCPOptionValue[] 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 foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDjava.util.List<CPOptionValue> findByCPOptionId(long CPOptionId)
CPOptionId
- the cp option IDjava.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)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
)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 cacheCPOptionValue 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 foundCPOptionValue 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 foundCPOptionValue 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 foundCPOptionValue 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 foundCPOptionValue[] 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 foundvoid removeByCPOptionId(long CPOptionId)
CPOptionId
- the cp option IDint countByCPOptionId(long CPOptionId)
CPOptionId
- the cp option IDCPOptionValue 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 foundCPOptionValue 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 foundCPOptionValue 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 foundCPOptionValue removeByC_K(long CPOptionId, java.lang.String key) throws NoSuchCPOptionValueException
CPOptionId
- the cp option IDkey
- the keyNoSuchCPOptionValueException
int countByC_K(long CPOptionId, java.lang.String key)
CPOptionId
- the cp option IDkey
- the keyCPOptionValue 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 foundCPOptionValue 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 foundCPOptionValue 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 foundCPOptionValue removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchCPOptionValueException
companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchCPOptionValueException
int countByC_ERC(long companyId, java.lang.String externalReferenceCode)
companyId
- the company IDexternalReferenceCode
- the external reference codevoid cacheResult(CPOptionValue cpOptionValue)
cpOptionValue
- the cp option valuevoid cacheResult(java.util.List<CPOptionValue> cpOptionValues)
cpOptionValues
- the cp option valuesCPOptionValue create(long CPOptionValueId)
CPOptionValueId
- the primary key for the new cp option valueCPOptionValue 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 foundCPOptionValue updateImpl(CPOptionValue cpOptionValue)
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 foundCPOptionValue 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 foundjava.util.List<CPOptionValue> findAll()
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)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
)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 cachevoid removeAll()
int countAll()