@ProviderType public interface CPOptionPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CPOption>
Caching information and settings can be found in portal.properties
CPOptionUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CPOption cpOption)
Caches the cp option in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CPOption> cpOptions)
Caches the cp options in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of cp options.
|
int |
countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of cp options where companyId = ? and externalReferenceCode = ?.
|
int |
countByC_K(long companyId,
java.lang.String key)
Returns the number of cp options where companyId = ? and key = ?.
|
int |
countByCompanyId(long companyId)
Returns the number of cp options where companyId = ?.
|
int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of cp options where uuid = ? and companyId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of cp options where uuid = ?.
|
CPOption |
create(long CPOptionId)
Creates a new cp option with the primary key.
|
CPOption |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the cp option where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found. |
CPOption |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode,
boolean useFinderCache)
Returns the cp option where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found, optionally using the finder cache. |
CPOption |
fetchByC_K(long companyId,
java.lang.String key)
Returns the cp option where companyId = ? and key = ? or returns
null if it could not be found. |
CPOption |
fetchByC_K(long companyId,
java.lang.String key,
boolean useFinderCache)
Returns the cp option where companyId = ? and key = ? or returns
null if it could not be found, optionally using the finder cache. |
CPOption |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns the first cp option in the ordered set where companyId = ?.
|
CPOption |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns the last cp option in the ordered set where companyId = ?.
|
CPOption |
fetchByPrimaryKey(long CPOptionId)
Returns the cp option with the primary key or returns
null if it could not be found. |
CPOption |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns the first cp option in the ordered set where uuid = ? and companyId = ?.
|
CPOption |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns the last cp option in the ordered set where uuid = ? and companyId = ?.
|
CPOption |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns the first cp option in the ordered set where uuid = ?.
|
CPOption |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns the last cp option in the ordered set where uuid = ?.
|
int |
filterCountByCompanyId(long companyId)
Returns the number of cp options that the user has permission to view where companyId = ?.
|
int |
filterCountByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of cp options that the user has permission to view where uuid = ? and companyId = ?.
|
int |
filterCountByUuid(java.lang.String uuid)
Returns the number of cp options that the user has permission to view where uuid = ?.
|
CPOption[] |
filterFindByCompanyId_PrevAndNext(long CPOptionId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns the cp options before and after the current cp option in the ordered set of cp options that the user has permission to view where companyId = ?.
|
java.util.List<CPOption> |
filterFindByCompanyId(long companyId)
Returns all the cp options that the user has permission to view where companyId = ?.
|
java.util.List<CPOption> |
filterFindByCompanyId(long companyId,
int start,
int end)
Returns a range of all the cp options that the user has permission to view where companyId = ?.
|
java.util.List<CPOption> |
filterFindByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns an ordered range of all the cp options that the user has permissions to view where companyId = ?.
|
CPOption[] |
filterFindByUuid_C_PrevAndNext(long CPOptionId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns the cp options before and after the current cp option in the ordered set of cp options that the user has permission to view where uuid = ? and companyId = ?.
|
java.util.List<CPOption> |
filterFindByUuid_C(java.lang.String uuid,
long companyId)
Returns all the cp options that the user has permission to view where uuid = ? and companyId = ?.
|
java.util.List<CPOption> |
filterFindByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the cp options that the user has permission to view where uuid = ? and companyId = ?.
|
java.util.List<CPOption> |
filterFindByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns an ordered range of all the cp options that the user has permissions to view where uuid = ? and companyId = ?.
|
CPOption[] |
filterFindByUuid_PrevAndNext(long CPOptionId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns the cp options before and after the current cp option in the ordered set of cp options that the user has permission to view where uuid = ?.
|
java.util.List<CPOption> |
filterFindByUuid(java.lang.String uuid)
Returns all the cp options that the user has permission to view where uuid = ?.
|
java.util.List<CPOption> |
filterFindByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the cp options that the user has permission to view where uuid = ?.
|
java.util.List<CPOption> |
filterFindByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns an ordered range of all the cp options that the user has permissions to view where uuid = ?.
|
java.util.List<CPOption> |
findAll()
Returns all the cp options.
|
java.util.List<CPOption> |
findAll(int start,
int end)
Returns a range of all the cp options.
|
java.util.List<CPOption> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns an ordered range of all the cp options.
|
java.util.List<CPOption> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp options.
|
CPOption |
findByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the cp option where companyId = ? and externalReferenceCode = ? or throws a
NoSuchCPOptionException if it could not be found. |
CPOption |
findByC_K(long companyId,
java.lang.String key)
Returns the cp option where companyId = ? and key = ? or throws a
NoSuchCPOptionException if it could not be found. |
CPOption |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns the first cp option in the ordered set where companyId = ?.
|
CPOption |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns the last cp option in the ordered set where companyId = ?.
|
CPOption[] |
findByCompanyId_PrevAndNext(long CPOptionId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns the cp options before and after the current cp option in the ordered set where companyId = ?.
|
java.util.List<CPOption> |
findByCompanyId(long companyId)
Returns all the cp options where companyId = ?.
|
java.util.List<CPOption> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the cp options where companyId = ?.
|
java.util.List<CPOption> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns an ordered range of all the cp options where companyId = ?.
|
java.util.List<CPOption> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp options where companyId = ?.
|
CPOption |
findByPrimaryKey(long CPOptionId)
Returns the cp option with the primary key or throws a
NoSuchCPOptionException if it could not be found. |
CPOption |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns the first cp option in the ordered set where uuid = ? and companyId = ?.
|
CPOption |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns the last cp option in the ordered set where uuid = ? and companyId = ?.
|
CPOption[] |
findByUuid_C_PrevAndNext(long CPOptionId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns the cp options before and after the current cp option in the ordered set where uuid = ? and companyId = ?.
|
java.util.List<CPOption> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the cp options where uuid = ? and companyId = ?.
|
java.util.List<CPOption> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the cp options where uuid = ? and companyId = ?.
|
java.util.List<CPOption> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns an ordered range of all the cp options where uuid = ? and companyId = ?.
|
java.util.List<CPOption> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp options where uuid = ? and companyId = ?.
|
CPOption |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns the first cp option in the ordered set where uuid = ?.
|
CPOption |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns the last cp option in the ordered set where uuid = ?.
|
CPOption[] |
findByUuid_PrevAndNext(long CPOptionId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns the cp options before and after the current cp option in the ordered set where uuid = ?.
|
java.util.List<CPOption> |
findByUuid(java.lang.String uuid)
Returns all the cp options where uuid = ?.
|
java.util.List<CPOption> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the cp options where uuid = ?.
|
java.util.List<CPOption> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns an ordered range of all the cp options where uuid = ?.
|
java.util.List<CPOption> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp options where uuid = ?.
|
CPOption |
remove(long CPOptionId)
Removes the cp option with the primary key from the database.
|
void |
removeAll()
Removes all the cp options from the database.
|
CPOption |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the cp option where companyId = ? and externalReferenceCode = ? from the database.
|
CPOption |
removeByC_K(long companyId,
java.lang.String key)
Removes the cp option where companyId = ? and key = ? from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the cp options where companyId = ? from the database.
|
void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the cp options where uuid = ? and companyId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the cp options where uuid = ? from the database.
|
CPOption |
updateImpl(CPOption cpOption) |
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<CPOption> findByUuid(java.lang.String uuid)
uuid
- the uuidjava.util.List<CPOption> 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 CPOptionModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)java.util.List<CPOption> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> 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 CPOptionModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CPOption> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> 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 CPOptionModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCPOption findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPOptionException
- if a matching cp option could not be foundCPOption fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp option could not be foundCPOption findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPOptionException
- if a matching cp option could not be foundCPOption fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp option could not be foundCPOption[] findByUuid_PrevAndNext(long CPOptionId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException
CPOptionId
- the primary key of the current cp optionuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPOptionException
- if a cp option with the primary key could not be foundjava.util.List<CPOption> filterFindByUuid(java.lang.String uuid)
uuid
- the uuidjava.util.List<CPOption> filterFindByUuid(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 CPOptionModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)java.util.List<CPOption> filterFindByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> 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 CPOptionModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)CPOption[] filterFindByUuid_PrevAndNext(long CPOptionId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException
CPOptionId
- the primary key of the current cp optionuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPOptionException
- if a cp option with the primary key could not be foundvoid removeByUuid(java.lang.String uuid)
uuid
- the uuidint countByUuid(java.lang.String uuid)
uuid
- the uuidint filterCountByUuid(java.lang.String uuid)
uuid
- the uuidjava.util.List<CPOption> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<CPOption> 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 CPOptionModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)java.util.List<CPOption> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> 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 CPOptionModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CPOption> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> 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 CPOptionModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCPOption findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPOptionException
- if a matching cp option could not be foundCPOption fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp option could not be foundCPOption findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPOptionException
- if a matching cp option could not be foundCPOption fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp option could not be foundCPOption[] findByUuid_C_PrevAndNext(long CPOptionId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException
CPOptionId
- the primary key of the current cp optionuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPOptionException
- if a cp option with the primary key could not be foundjava.util.List<CPOption> filterFindByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<CPOption> filterFindByUuid_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 CPOptionModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)java.util.List<CPOption> filterFindByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> 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 CPOptionModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)CPOption[] filterFindByUuid_C_PrevAndNext(long CPOptionId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException
CPOptionId
- the primary key of the current cp optionuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPOptionException
- if a cp option 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 IDint filterCountByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<CPOption> findByCompanyId(long companyId)
companyId
- the company IDjava.util.List<CPOption> 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 CPOptionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)java.util.List<CPOption> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> 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 CPOptionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CPOption> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> 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 CPOptionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCPOption findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPOptionException
- if a matching cp option could not be foundCPOption fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp option could not be foundCPOption findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPOptionException
- if a matching cp option could not be foundCPOption fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp option could not be foundCPOption[] findByCompanyId_PrevAndNext(long CPOptionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException
CPOptionId
- the primary key of the current cp optioncompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPOptionException
- if a cp option with the primary key could not be foundjava.util.List<CPOption> filterFindByCompanyId(long companyId)
companyId
- the company IDjava.util.List<CPOption> filterFindByCompanyId(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 CPOptionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)java.util.List<CPOption> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> 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 CPOptionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)CPOption[] filterFindByCompanyId_PrevAndNext(long CPOptionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) throws NoSuchCPOptionException
CPOptionId
- the primary key of the current cp optioncompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPOptionException
- if a cp option with the primary key could not be foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDint filterCountByCompanyId(long companyId)
companyId
- the company IDCPOption findByC_K(long companyId, java.lang.String key) throws NoSuchCPOptionException
NoSuchCPOptionException
if it could not be found.companyId
- the company IDkey
- the keyNoSuchCPOptionException
- if a matching cp option could not be foundCPOption fetchByC_K(long companyId, java.lang.String key)
null
if it could not be found. Uses the finder cache.companyId
- the company IDkey
- the keynull
if a matching cp option could not be foundCPOption fetchByC_K(long companyId, java.lang.String key, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDkey
- the keyuseFinderCache
- whether to use the finder cachenull
if a matching cp option could not be foundCPOption removeByC_K(long companyId, java.lang.String key) throws NoSuchCPOptionException
companyId
- the company IDkey
- the keyNoSuchCPOptionException
int countByC_K(long companyId, java.lang.String key)
companyId
- the company IDkey
- the keyCPOption findByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchCPOptionException
NoSuchCPOptionException
if it could not be found.companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchCPOptionException
- if a matching cp option could not be foundCPOption 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 could not be foundCPOption 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 could not be foundCPOption removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchCPOptionException
companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchCPOptionException
int countByC_ERC(long companyId, java.lang.String externalReferenceCode)
companyId
- the company IDexternalReferenceCode
- the external reference codevoid cacheResult(CPOption cpOption)
cpOption
- the cp optionvoid cacheResult(java.util.List<CPOption> cpOptions)
cpOptions
- the cp optionsCPOption create(long CPOptionId)
CPOptionId
- the primary key for the new cp optionCPOption remove(long CPOptionId) throws NoSuchCPOptionException
CPOptionId
- the primary key of the cp optionNoSuchCPOptionException
- if a cp option with the primary key could not be foundCPOption findByPrimaryKey(long CPOptionId) throws NoSuchCPOptionException
NoSuchCPOptionException
if it could not be found.CPOptionId
- the primary key of the cp optionNoSuchCPOptionException
- if a cp option with the primary key could not be foundCPOption fetchByPrimaryKey(long CPOptionId)
null
if it could not be found.CPOptionId
- the primary key of the cp optionnull
if a cp option with the primary key could not be foundjava.util.List<CPOption> findAll()
java.util.List<CPOption> 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 CPOptionModelImpl
.
start
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)java.util.List<CPOption> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> 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 CPOptionModelImpl
.
start
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CPOption> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> 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 CPOptionModelImpl
.
start
- the lower bound of the range of cp optionsend
- the upper bound of the range of cp options (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()