public class CPOptionUtil
extends java.lang.Object
com.liferay.commerce.product.service.persistence.impl.CPOptionPersistenceImpl
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
CPOptionPersistence
Constructor and Description |
---|
CPOptionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CPOption cpOption)
Caches the cp option in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CPOption> cpOptions)
Caches the cp options in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CPOption cpOption) |
static int |
countAll()
Returns the number of cp options.
|
static int |
countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of cp options where companyId = ? and externalReferenceCode = ?.
|
static int |
countByC_K(long companyId,
java.lang.String key)
Returns the number of cp options where companyId = ? and key = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of cp options where companyId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of cp options where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of cp options where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CPOption |
create(long CPOptionId)
Creates a new cp option with the primary key.
|
static 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. |
static 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. |
static 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. |
static 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. |
static CPOption |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns the first cp option in the ordered set where companyId = ?.
|
static CPOption |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns the last cp option in the ordered set where companyId = ?.
|
static CPOption |
fetchByPrimaryKey(long CPOptionId)
Returns the cp option with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CPOption> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static int |
filterCountByCompanyId(long companyId)
Returns the number of cp options that the user has permission to view where companyId = ?.
|
static 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 = ?.
|
static int |
filterCountByUuid(java.lang.String uuid)
Returns the number of cp options that the user has permission to view where uuid = ?.
|
static 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 = ?.
|
static java.util.List<CPOption> |
filterFindByCompanyId(long companyId)
Returns all the cp options that the user has permission to view where companyId = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<CPOption> |
filterFindByUuid(java.lang.String uuid)
Returns all the cp options that the user has permission to view where uuid = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<CPOption> |
findAll()
Returns all the cp options.
|
static java.util.List<CPOption> |
findAll(int start,
int end)
Returns a range of all the cp options.
|
static 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.
|
static 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.
|
static 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. |
static 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. |
static CPOption |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns the first cp option in the ordered set where companyId = ?.
|
static CPOption |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
Returns the last cp option in the ordered set where companyId = ?.
|
static 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 = ?.
|
static java.util.List<CPOption> |
findByCompanyId(long companyId)
Returns all the cp options where companyId = ?.
|
static java.util.List<CPOption> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the cp options where companyId = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static CPOption |
findByPrimaryKey(long CPOptionId)
Returns the cp option with the primary key or throws a
NoSuchCPOptionException if it could not be found. |
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<CPOption> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the cp options where uuid = ? and companyId = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<CPOption> |
findByUuid(java.lang.String uuid)
Returns all the cp options where uuid = ?.
|
static java.util.List<CPOption> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the cp options where uuid = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<CPOption> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CPOption> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CPOption> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator) |
static CPOptionPersistence |
getPersistence() |
static CPOption |
remove(long CPOptionId)
Removes the cp option with the primary key from the database.
|
static void |
removeAll()
Removes all the cp options from the database.
|
static CPOption |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the cp option where companyId = ? and externalReferenceCode = ? from the database.
|
static CPOption |
removeByC_K(long companyId,
java.lang.String key)
Removes the cp option where companyId = ? and key = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the cp options where companyId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the cp options where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the cp options where uuid = ? from the database.
|
static CPOption |
update(CPOption cpOption) |
static CPOption |
update(CPOption cpOption,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CPOption |
updateImpl(CPOption cpOption) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CPOption cpOption)
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,CPOption> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CPOption> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CPOption> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CPOption> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOption> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CPOption update(CPOption cpOption)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CPOption update(CPOption cpOption, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CPOption> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.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)public static 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
)public static 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 cachepublic static CPOption 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 foundpublic static CPOption 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 foundpublic static CPOption 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 foundpublic static CPOption 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 foundpublic static CPOption[] 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 foundpublic static java.util.List<CPOption> filterFindByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.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)public static 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
)public static 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 foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int filterCountByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CPOption> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.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)public static 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
)public static 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 cachepublic static CPOption 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 foundpublic static CPOption 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 foundpublic static CPOption 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 foundpublic static CPOption 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 foundpublic static CPOption[] 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 foundpublic static java.util.List<CPOption> filterFindByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.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)public static 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
)public static 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 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 int filterCountByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CPOption> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.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)public static 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
)public static 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 cachepublic static CPOption 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 foundpublic static CPOption 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 foundpublic static CPOption 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 foundpublic static CPOption 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 foundpublic static CPOption[] 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 foundpublic static java.util.List<CPOption> filterFindByCompanyId(long companyId)
companyId
- the company IDpublic static java.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)public static 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
)public static 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 foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static int filterCountByCompanyId(long companyId)
companyId
- the company IDpublic static CPOption 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 foundpublic static CPOption 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 foundpublic static CPOption 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 foundpublic static CPOption removeByC_K(long companyId, java.lang.String key) throws NoSuchCPOptionException
companyId
- the company IDkey
- the keyNoSuchCPOptionException
public static int countByC_K(long companyId, java.lang.String key)
companyId
- the company IDkey
- the keypublic static CPOption 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 foundpublic static CPOption 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 foundpublic static CPOption 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 foundpublic static CPOption removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchCPOptionException
companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchCPOptionException
public static int countByC_ERC(long companyId, java.lang.String externalReferenceCode)
companyId
- the company IDexternalReferenceCode
- the external reference codepublic static void cacheResult(CPOption cpOption)
cpOption
- the cp optionpublic static void cacheResult(java.util.List<CPOption> cpOptions)
cpOptions
- the cp optionspublic static CPOption create(long CPOptionId)
CPOptionId
- the primary key for the new cp optionpublic static CPOption remove(long CPOptionId) throws NoSuchCPOptionException
CPOptionId
- the primary key of the cp optionNoSuchCPOptionException
- if a cp option with the primary key could not be foundpublic static CPOption 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 foundpublic static CPOption 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 foundpublic static java.util.List<CPOption> findAll()
public static 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)public static 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
)public static 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 cachepublic static void removeAll()
public static int countAll()
public static CPOptionPersistence getPersistence()