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