public class CPSpecificationOptionUtil
extends java.lang.Object
com.liferay.commerce.product.service.persistence.impl.CPSpecificationOptionPersistenceImpl
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
CPSpecificationOptionPersistence
Constructor and Description |
---|
CPSpecificationOptionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CPSpecificationOption cpSpecificationOption)
Caches the cp specification option in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CPSpecificationOption> cpSpecificationOptions)
Caches the cp specification options in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CPSpecificationOption cpSpecificationOption) |
static int |
countAll()
Returns the number of cp specification options.
|
static int |
countByC_K(long companyId,
java.lang.String key)
Returns the number of cp specification options where companyId = ? and key = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of cp specification options where companyId = ?.
|
static int |
countByCPOptionCategoryId(long CPOptionCategoryId)
Returns the number of cp specification options where CPOptionCategoryId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of cp specification options where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of cp specification options where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CPSpecificationOption |
create(long CPSpecificationOptionId)
Creates a new cp specification option with the primary key.
|
static CPSpecificationOption |
fetchByC_K(long companyId,
java.lang.String key)
Returns the cp specification option where companyId = ? and key = ? or returns
null if it could not be found. |
static CPSpecificationOption |
fetchByC_K(long companyId,
java.lang.String key,
boolean useFinderCache)
Returns the cp specification option where companyId = ? and key = ? or returns
null if it could not be found, optionally using the finder cache. |
static CPSpecificationOption |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns the first cp specification option in the ordered set where companyId = ?.
|
static CPSpecificationOption |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns the last cp specification option in the ordered set where companyId = ?.
|
static CPSpecificationOption |
fetchByCPOptionCategoryId_First(long CPOptionCategoryId,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns the first cp specification option in the ordered set where CPOptionCategoryId = ?.
|
static CPSpecificationOption |
fetchByCPOptionCategoryId_Last(long CPOptionCategoryId,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns the last cp specification option in the ordered set where CPOptionCategoryId = ?.
|
static CPSpecificationOption |
fetchByPrimaryKey(long CPSpecificationOptionId)
Returns the cp specification option with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CPSpecificationOption> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CPSpecificationOption |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns the first cp specification option in the ordered set where uuid = ? and companyId = ?.
|
static CPSpecificationOption |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns the last cp specification option in the ordered set where uuid = ? and companyId = ?.
|
static CPSpecificationOption |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns the first cp specification option in the ordered set where uuid = ?.
|
static CPSpecificationOption |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns the last cp specification option in the ordered set where uuid = ?.
|
static int |
filterCountByCompanyId(long companyId)
Returns the number of cp specification options that the user has permission to view where companyId = ?.
|
static int |
filterCountByCPOptionCategoryId(long CPOptionCategoryId)
Returns the number of cp specification options that the user has permission to view where CPOptionCategoryId = ?.
|
static int |
filterCountByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of cp specification options that the user has permission to view where uuid = ? and companyId = ?.
|
static int |
filterCountByUuid(java.lang.String uuid)
Returns the number of cp specification options that the user has permission to view where uuid = ?.
|
static CPSpecificationOption[] |
filterFindByCompanyId_PrevAndNext(long CPSpecificationOptionId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns the cp specification options before and after the current cp specification option in the ordered set of cp specification options that the user has permission to view where companyId = ?.
|
static java.util.List<CPSpecificationOption> |
filterFindByCompanyId(long companyId)
Returns all the cp specification options that the user has permission to view where companyId = ?.
|
static java.util.List<CPSpecificationOption> |
filterFindByCompanyId(long companyId,
int start,
int end)
Returns a range of all the cp specification options that the user has permission to view where companyId = ?.
|
static java.util.List<CPSpecificationOption> |
filterFindByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns an ordered range of all the cp specification options that the user has permissions to view where companyId = ?.
|
static CPSpecificationOption[] |
filterFindByCPOptionCategoryId_PrevAndNext(long CPSpecificationOptionId,
long CPOptionCategoryId,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns the cp specification options before and after the current cp specification option in the ordered set of cp specification options that the user has permission to view where CPOptionCategoryId = ?.
|
static java.util.List<CPSpecificationOption> |
filterFindByCPOptionCategoryId(long CPOptionCategoryId)
Returns all the cp specification options that the user has permission to view where CPOptionCategoryId = ?.
|
static java.util.List<CPSpecificationOption> |
filterFindByCPOptionCategoryId(long CPOptionCategoryId,
int start,
int end)
Returns a range of all the cp specification options that the user has permission to view where CPOptionCategoryId = ?.
|
static java.util.List<CPSpecificationOption> |
filterFindByCPOptionCategoryId(long CPOptionCategoryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns an ordered range of all the cp specification options that the user has permissions to view where CPOptionCategoryId = ?.
|
static CPSpecificationOption[] |
filterFindByUuid_C_PrevAndNext(long CPSpecificationOptionId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns the cp specification options before and after the current cp specification option in the ordered set of cp specification options that the user has permission to view where uuid = ? and companyId = ?.
|
static java.util.List<CPSpecificationOption> |
filterFindByUuid_C(java.lang.String uuid,
long companyId)
Returns all the cp specification options that the user has permission to view where uuid = ? and companyId = ?.
|
static java.util.List<CPSpecificationOption> |
filterFindByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the cp specification options that the user has permission to view where uuid = ? and companyId = ?.
|
static java.util.List<CPSpecificationOption> |
filterFindByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns an ordered range of all the cp specification options that the user has permissions to view where uuid = ? and companyId = ?.
|
static CPSpecificationOption[] |
filterFindByUuid_PrevAndNext(long CPSpecificationOptionId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns the cp specification options before and after the current cp specification option in the ordered set of cp specification options that the user has permission to view where uuid = ?.
|
static java.util.List<CPSpecificationOption> |
filterFindByUuid(java.lang.String uuid)
Returns all the cp specification options that the user has permission to view where uuid = ?.
|
static java.util.List<CPSpecificationOption> |
filterFindByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the cp specification options that the user has permission to view where uuid = ?.
|
static java.util.List<CPSpecificationOption> |
filterFindByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns an ordered range of all the cp specification options that the user has permissions to view where uuid = ?.
|
static java.util.List<CPSpecificationOption> |
findAll()
Returns all the cp specification options.
|
static java.util.List<CPSpecificationOption> |
findAll(int start,
int end)
Returns a range of all the cp specification options.
|
static java.util.List<CPSpecificationOption> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns an ordered range of all the cp specification options.
|
static java.util.List<CPSpecificationOption> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp specification options.
|
static CPSpecificationOption |
findByC_K(long companyId,
java.lang.String key)
Returns the cp specification option where companyId = ? and key = ? or throws a
NoSuchCPSpecificationOptionException if it could not be found. |
static CPSpecificationOption |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns the first cp specification option in the ordered set where companyId = ?.
|
static CPSpecificationOption |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns the last cp specification option in the ordered set where companyId = ?.
|
static CPSpecificationOption[] |
findByCompanyId_PrevAndNext(long CPSpecificationOptionId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns the cp specification options before and after the current cp specification option in the ordered set where companyId = ?.
|
static java.util.List<CPSpecificationOption> |
findByCompanyId(long companyId)
Returns all the cp specification options where companyId = ?.
|
static java.util.List<CPSpecificationOption> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the cp specification options where companyId = ?.
|
static java.util.List<CPSpecificationOption> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns an ordered range of all the cp specification options where companyId = ?.
|
static java.util.List<CPSpecificationOption> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp specification options where companyId = ?.
|
static CPSpecificationOption |
findByCPOptionCategoryId_First(long CPOptionCategoryId,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns the first cp specification option in the ordered set where CPOptionCategoryId = ?.
|
static CPSpecificationOption |
findByCPOptionCategoryId_Last(long CPOptionCategoryId,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns the last cp specification option in the ordered set where CPOptionCategoryId = ?.
|
static CPSpecificationOption[] |
findByCPOptionCategoryId_PrevAndNext(long CPSpecificationOptionId,
long CPOptionCategoryId,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns the cp specification options before and after the current cp specification option in the ordered set where CPOptionCategoryId = ?.
|
static java.util.List<CPSpecificationOption> |
findByCPOptionCategoryId(long CPOptionCategoryId)
Returns all the cp specification options where CPOptionCategoryId = ?.
|
static java.util.List<CPSpecificationOption> |
findByCPOptionCategoryId(long CPOptionCategoryId,
int start,
int end)
Returns a range of all the cp specification options where CPOptionCategoryId = ?.
|
static java.util.List<CPSpecificationOption> |
findByCPOptionCategoryId(long CPOptionCategoryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns an ordered range of all the cp specification options where CPOptionCategoryId = ?.
|
static java.util.List<CPSpecificationOption> |
findByCPOptionCategoryId(long CPOptionCategoryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp specification options where CPOptionCategoryId = ?.
|
static CPSpecificationOption |
findByPrimaryKey(long CPSpecificationOptionId)
Returns the cp specification option with the primary key or throws a
NoSuchCPSpecificationOptionException if it could not be found. |
static CPSpecificationOption |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns the first cp specification option in the ordered set where uuid = ? and companyId = ?.
|
static CPSpecificationOption |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns the last cp specification option in the ordered set where uuid = ? and companyId = ?.
|
static CPSpecificationOption[] |
findByUuid_C_PrevAndNext(long CPSpecificationOptionId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns the cp specification options before and after the current cp specification option in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<CPSpecificationOption> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the cp specification options where uuid = ? and companyId = ?.
|
static java.util.List<CPSpecificationOption> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the cp specification options where uuid = ? and companyId = ?.
|
static java.util.List<CPSpecificationOption> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns an ordered range of all the cp specification options where uuid = ? and companyId = ?.
|
static java.util.List<CPSpecificationOption> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp specification options where uuid = ? and companyId = ?.
|
static CPSpecificationOption |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns the first cp specification option in the ordered set where uuid = ?.
|
static CPSpecificationOption |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns the last cp specification option in the ordered set where uuid = ?.
|
static CPSpecificationOption[] |
findByUuid_PrevAndNext(long CPSpecificationOptionId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns the cp specification options before and after the current cp specification option in the ordered set where uuid = ?.
|
static java.util.List<CPSpecificationOption> |
findByUuid(java.lang.String uuid)
Returns all the cp specification options where uuid = ?.
|
static java.util.List<CPSpecificationOption> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the cp specification options where uuid = ?.
|
static java.util.List<CPSpecificationOption> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
Returns an ordered range of all the cp specification options where uuid = ?.
|
static java.util.List<CPSpecificationOption> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp specification options where uuid = ?.
|
static java.util.List<CPSpecificationOption> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CPSpecificationOption> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CPSpecificationOption> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) |
static CPSpecificationOptionPersistence |
getPersistence() |
static CPSpecificationOption |
remove(long CPSpecificationOptionId)
Removes the cp specification option with the primary key from the database.
|
static void |
removeAll()
Removes all the cp specification options from the database.
|
static CPSpecificationOption |
removeByC_K(long companyId,
java.lang.String key)
Removes the cp specification option where companyId = ? and key = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the cp specification options where companyId = ? from the database.
|
static void |
removeByCPOptionCategoryId(long CPOptionCategoryId)
Removes all the cp specification options where CPOptionCategoryId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the cp specification options where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the cp specification options where uuid = ? from the database.
|
static void |
setPersistence(CPSpecificationOptionPersistence persistence) |
static CPSpecificationOption |
update(CPSpecificationOption cpSpecificationOption) |
static CPSpecificationOption |
update(CPSpecificationOption cpSpecificationOption,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CPSpecificationOption |
updateImpl(CPSpecificationOption cpSpecificationOption) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CPSpecificationOption cpSpecificationOption)
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,CPSpecificationOption> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CPSpecificationOption> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CPSpecificationOption> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CPSpecificationOption> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CPSpecificationOption update(CPSpecificationOption cpSpecificationOption)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CPSpecificationOption update(CPSpecificationOption cpSpecificationOption, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CPSpecificationOption> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CPSpecificationOption> 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 CPSpecificationOptionModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp specification optionsend
- the upper bound of the range of cp specification options (not inclusive)public static java.util.List<CPSpecificationOption> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> 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 CPSpecificationOptionModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp specification optionsend
- the upper bound of the range of cp specification options (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPSpecificationOption> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> 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 CPSpecificationOptionModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp specification optionsend
- the upper bound of the range of cp specification options (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPSpecificationOption findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPSpecificationOptionException
- if a matching cp specification option could not be foundpublic static CPSpecificationOption fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp specification option could not be foundpublic static CPSpecificationOption findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPSpecificationOptionException
- if a matching cp specification option could not be foundpublic static CPSpecificationOption fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp specification option could not be foundpublic static CPSpecificationOption[] findByUuid_PrevAndNext(long CPSpecificationOptionId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException
CPSpecificationOptionId
- the primary key of the current cp specification optionuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPSpecificationOptionException
- if a cp specification option with the primary key could not be foundpublic static java.util.List<CPSpecificationOption> filterFindByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CPSpecificationOption> 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 CPSpecificationOptionModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp specification optionsend
- the upper bound of the range of cp specification options (not inclusive)public static java.util.List<CPSpecificationOption> filterFindByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> 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 CPSpecificationOptionModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp specification optionsend
- the upper bound of the range of cp specification options (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static CPSpecificationOption[] filterFindByUuid_PrevAndNext(long CPSpecificationOptionId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException
CPSpecificationOptionId
- the primary key of the current cp specification optionuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPSpecificationOptionException
- if a cp specification 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<CPSpecificationOption> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CPSpecificationOption> 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 CPSpecificationOptionModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp specification optionsend
- the upper bound of the range of cp specification options (not inclusive)public static java.util.List<CPSpecificationOption> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> 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 CPSpecificationOptionModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp specification optionsend
- the upper bound of the range of cp specification options (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPSpecificationOption> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> 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 CPSpecificationOptionModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp specification optionsend
- the upper bound of the range of cp specification options (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPSpecificationOption findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPSpecificationOptionException
- if a matching cp specification option could not be foundpublic static CPSpecificationOption fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp specification option could not be foundpublic static CPSpecificationOption findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPSpecificationOptionException
- if a matching cp specification option could not be foundpublic static CPSpecificationOption fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp specification option could not be foundpublic static CPSpecificationOption[] findByUuid_C_PrevAndNext(long CPSpecificationOptionId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException
CPSpecificationOptionId
- the primary key of the current cp specification optionuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPSpecificationOptionException
- if a cp specification option with the primary key could not be foundpublic static java.util.List<CPSpecificationOption> filterFindByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CPSpecificationOption> 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 CPSpecificationOptionModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp specification optionsend
- the upper bound of the range of cp specification options (not inclusive)public static java.util.List<CPSpecificationOption> filterFindByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> 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 CPSpecificationOptionModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp specification optionsend
- the upper bound of the range of cp specification options (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static CPSpecificationOption[] filterFindByUuid_C_PrevAndNext(long CPSpecificationOptionId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException
CPSpecificationOptionId
- the primary key of the current cp specification optionuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPSpecificationOptionException
- if a cp specification 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<CPSpecificationOption> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CPSpecificationOption> 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 CPSpecificationOptionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of cp specification optionsend
- the upper bound of the range of cp specification options (not inclusive)public static java.util.List<CPSpecificationOption> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> 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 CPSpecificationOptionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of cp specification optionsend
- the upper bound of the range of cp specification options (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPSpecificationOption> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> 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 CPSpecificationOptionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of cp specification optionsend
- the upper bound of the range of cp specification options (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPSpecificationOption findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPSpecificationOptionException
- if a matching cp specification option could not be foundpublic static CPSpecificationOption fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp specification option could not be foundpublic static CPSpecificationOption findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPSpecificationOptionException
- if a matching cp specification option could not be foundpublic static CPSpecificationOption fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp specification option could not be foundpublic static CPSpecificationOption[] findByCompanyId_PrevAndNext(long CPSpecificationOptionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException
CPSpecificationOptionId
- the primary key of the current cp specification optioncompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPSpecificationOptionException
- if a cp specification option with the primary key could not be foundpublic static java.util.List<CPSpecificationOption> filterFindByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CPSpecificationOption> 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 CPSpecificationOptionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of cp specification optionsend
- the upper bound of the range of cp specification options (not inclusive)public static java.util.List<CPSpecificationOption> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> 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 CPSpecificationOptionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of cp specification optionsend
- the upper bound of the range of cp specification options (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static CPSpecificationOption[] filterFindByCompanyId_PrevAndNext(long CPSpecificationOptionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException
CPSpecificationOptionId
- the primary key of the current cp specification optioncompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPSpecificationOptionException
- if a cp specification 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 java.util.List<CPSpecificationOption> findByCPOptionCategoryId(long CPOptionCategoryId)
CPOptionCategoryId
- the cp option category IDpublic static java.util.List<CPSpecificationOption> findByCPOptionCategoryId(long CPOptionCategoryId, 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 CPSpecificationOptionModelImpl
.
CPOptionCategoryId
- the cp option category IDstart
- the lower bound of the range of cp specification optionsend
- the upper bound of the range of cp specification options (not inclusive)public static java.util.List<CPSpecificationOption> findByCPOptionCategoryId(long CPOptionCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> 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 CPSpecificationOptionModelImpl
.
CPOptionCategoryId
- the cp option category IDstart
- the lower bound of the range of cp specification optionsend
- the upper bound of the range of cp specification options (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPSpecificationOption> findByCPOptionCategoryId(long CPOptionCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> 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 CPSpecificationOptionModelImpl
.
CPOptionCategoryId
- the cp option category IDstart
- the lower bound of the range of cp specification optionsend
- the upper bound of the range of cp specification options (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPSpecificationOption findByCPOptionCategoryId_First(long CPOptionCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException
CPOptionCategoryId
- the cp option category IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPSpecificationOptionException
- if a matching cp specification option could not be foundpublic static CPSpecificationOption fetchByCPOptionCategoryId_First(long CPOptionCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
CPOptionCategoryId
- the cp option category IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp specification option could not be foundpublic static CPSpecificationOption findByCPOptionCategoryId_Last(long CPOptionCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException
CPOptionCategoryId
- the cp option category IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPSpecificationOptionException
- if a matching cp specification option could not be foundpublic static CPSpecificationOption fetchByCPOptionCategoryId_Last(long CPOptionCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator)
CPOptionCategoryId
- the cp option category IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp specification option could not be foundpublic static CPSpecificationOption[] findByCPOptionCategoryId_PrevAndNext(long CPSpecificationOptionId, long CPOptionCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException
CPSpecificationOptionId
- the primary key of the current cp specification optionCPOptionCategoryId
- the cp option category IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPSpecificationOptionException
- if a cp specification option with the primary key could not be foundpublic static java.util.List<CPSpecificationOption> filterFindByCPOptionCategoryId(long CPOptionCategoryId)
CPOptionCategoryId
- the cp option category IDpublic static java.util.List<CPSpecificationOption> filterFindByCPOptionCategoryId(long CPOptionCategoryId, 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 CPSpecificationOptionModelImpl
.
CPOptionCategoryId
- the cp option category IDstart
- the lower bound of the range of cp specification optionsend
- the upper bound of the range of cp specification options (not inclusive)public static java.util.List<CPSpecificationOption> filterFindByCPOptionCategoryId(long CPOptionCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> 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 CPSpecificationOptionModelImpl
.
CPOptionCategoryId
- the cp option category IDstart
- the lower bound of the range of cp specification optionsend
- the upper bound of the range of cp specification options (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static CPSpecificationOption[] filterFindByCPOptionCategoryId_PrevAndNext(long CPSpecificationOptionId, long CPOptionCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException
CPSpecificationOptionId
- the primary key of the current cp specification optionCPOptionCategoryId
- the cp option category IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPSpecificationOptionException
- if a cp specification option with the primary key could not be foundpublic static void removeByCPOptionCategoryId(long CPOptionCategoryId)
CPOptionCategoryId
- the cp option category IDpublic static int countByCPOptionCategoryId(long CPOptionCategoryId)
CPOptionCategoryId
- the cp option category IDpublic static int filterCountByCPOptionCategoryId(long CPOptionCategoryId)
CPOptionCategoryId
- the cp option category IDpublic static CPSpecificationOption findByC_K(long companyId, java.lang.String key) throws NoSuchCPSpecificationOptionException
NoSuchCPSpecificationOptionException
if it could not be found.companyId
- the company IDkey
- the keyNoSuchCPSpecificationOptionException
- if a matching cp specification option could not be foundpublic static CPSpecificationOption 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 specification option could not be foundpublic static CPSpecificationOption 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 specification option could not be foundpublic static CPSpecificationOption removeByC_K(long companyId, java.lang.String key) throws NoSuchCPSpecificationOptionException
companyId
- the company IDkey
- the keyNoSuchCPSpecificationOptionException
public static int countByC_K(long companyId, java.lang.String key)
companyId
- the company IDkey
- the keypublic static void cacheResult(CPSpecificationOption cpSpecificationOption)
cpSpecificationOption
- the cp specification optionpublic static void cacheResult(java.util.List<CPSpecificationOption> cpSpecificationOptions)
cpSpecificationOptions
- the cp specification optionspublic static CPSpecificationOption create(long CPSpecificationOptionId)
CPSpecificationOptionId
- the primary key for the new cp specification optionpublic static CPSpecificationOption remove(long CPSpecificationOptionId) throws NoSuchCPSpecificationOptionException
CPSpecificationOptionId
- the primary key of the cp specification optionNoSuchCPSpecificationOptionException
- if a cp specification option with the primary key could not be foundpublic static CPSpecificationOption updateImpl(CPSpecificationOption cpSpecificationOption)
public static CPSpecificationOption findByPrimaryKey(long CPSpecificationOptionId) throws NoSuchCPSpecificationOptionException
NoSuchCPSpecificationOptionException
if it could not be found.CPSpecificationOptionId
- the primary key of the cp specification optionNoSuchCPSpecificationOptionException
- if a cp specification option with the primary key could not be foundpublic static CPSpecificationOption fetchByPrimaryKey(long CPSpecificationOptionId)
null
if it could not be found.CPSpecificationOptionId
- the primary key of the cp specification optionnull
if a cp specification option with the primary key could not be foundpublic static java.util.List<CPSpecificationOption> findAll()
public static java.util.List<CPSpecificationOption> 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 CPSpecificationOptionModelImpl
.
start
- the lower bound of the range of cp specification optionsend
- the upper bound of the range of cp specification options (not inclusive)public static java.util.List<CPSpecificationOption> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> 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 CPSpecificationOptionModelImpl
.
start
- the lower bound of the range of cp specification optionsend
- the upper bound of the range of cp specification options (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPSpecificationOption> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> 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 CPSpecificationOptionModelImpl
.
start
- the lower bound of the range of cp specification optionsend
- the upper bound of the range of cp specification 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 CPSpecificationOptionPersistence getPersistence()
public static void setPersistence(CPSpecificationOptionPersistence persistence)