Class CPOptionCategoryUtil
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(CPOptionCategory cpOptionCategory) Caches the cp option category in the entity cache if it is enabled.static voidcacheResult(List<CPOptionCategory> cpOptionCategories) Caches the cp option categories in the entity cache if it is enabled.static voidstatic voidclearCache(CPOptionCategory cpOptionCategory) static intcountAll()Returns the number of cp option categories.static intcountByC_K(long companyId, String key) Returns the number of cp option categories where companyId = ? and key = ?.static intcountByCompanyId(long companyId) Returns the number of cp option categories where companyId = ?.static intcountByERC_C(String externalReferenceCode, long companyId) Returns the number of cp option categories where externalReferenceCode = ? and companyId = ?.static intcountByUuid(String uuid) Returns the number of cp option categories where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of cp option categories where uuid = ? and companyId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CPOptionCategorycreate(long CPOptionCategoryId) Creates a new cp option category with the primary key.static CPOptionCategoryfetchByC_K(long companyId, String key) Returns the cp option category where companyId = ? and key = ? or returnsnullif it could not be found.static CPOptionCategoryfetchByC_K(long companyId, String key, boolean useFinderCache) Returns the cp option category where companyId = ? and key = ? or returnsnullif it could not be found, optionally using the finder cache.static CPOptionCategoryfetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) Returns the first cp option category in the ordered set where companyId = ?.static CPOptionCategoryfetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) Returns the last cp option category in the ordered set where companyId = ?.static CPOptionCategoryfetchByERC_C(String externalReferenceCode, long companyId) Returns the cp option category where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found.static CPOptionCategoryfetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the cp option category where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found, optionally using the finder cache.static CPOptionCategoryfetchByPrimaryKey(long CPOptionCategoryId) Returns the cp option category with the primary key or returnsnullif it could not be found.static Map<Serializable,CPOptionCategory> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static CPOptionCategoryfetchByUuid_C_First(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 CPOptionCategoryfetchByUuid_C_Last(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 CPOptionCategoryfetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) Returns the first cp option category in the ordered set where uuid = ?.static CPOptionCategoryfetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) Returns the last cp option category in the ordered set where uuid = ?.static intfilterCountByCompanyId(long companyId) Returns the number of cp option categories that the user has permission to view where companyId = ?.static intfilterCountByUuid(String uuid) Returns the number of cp option categories that the user has permission to view where uuid = ?.static intfilterCountByUuid_C(String uuid, long companyId) Returns the number of cp option categories that the user has permission to view where uuid = ? and companyId = ?.static List<CPOptionCategory>filterFindByCompanyId(long companyId) Returns all the cp option categories that the user has permission to view where companyId = ?.static 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 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[]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 List<CPOptionCategory>filterFindByUuid(String uuid) Returns all the cp option categories that the user has permission to view where uuid = ?.static List<CPOptionCategory>filterFindByUuid(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 List<CPOptionCategory>filterFindByUuid(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 List<CPOptionCategory>filterFindByUuid_C(String uuid, long companyId) Returns all the cp option categories that the user has permission to view where uuid = ? and companyId = ?.static List<CPOptionCategory>filterFindByUuid_C(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 List<CPOptionCategory>filterFindByUuid_C(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_C_PrevAndNext(long CPOptionCategoryId, 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 CPOptionCategory[]filterFindByUuid_PrevAndNext(long CPOptionCategoryId, 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 List<CPOptionCategory>findAll()Returns all the cp option categories.static List<CPOptionCategory>findAll(int start, int end) Returns a range of all the cp option categories.static 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 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 CPOptionCategoryReturns the cp option category where companyId = ? and key = ? or throws aNoSuchCPOptionCategoryExceptionif it could not be found.static List<CPOptionCategory>findByCompanyId(long companyId) Returns all the cp option categories where companyId = ?.static List<CPOptionCategory>findByCompanyId(long companyId, int start, int end) Returns a range of all the cp option categories where companyId = ?.static 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 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 CPOptionCategoryfindByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) Returns the first cp option category in the ordered set where companyId = ?.static CPOptionCategoryfindByCompanyId_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 CPOptionCategoryfindByERC_C(String externalReferenceCode, long companyId) Returns the cp option category where externalReferenceCode = ? and companyId = ? or throws aNoSuchCPOptionCategoryExceptionif it could not be found.static CPOptionCategoryfindByPrimaryKey(long CPOptionCategoryId) Returns the cp option category with the primary key or throws aNoSuchCPOptionCategoryExceptionif it could not be found.static List<CPOptionCategory>findByUuid(String uuid) Returns all the cp option categories where uuid = ?.static List<CPOptionCategory>findByUuid(String uuid, int start, int end) Returns a range of all the cp option categories where uuid = ?.static List<CPOptionCategory>findByUuid(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 List<CPOptionCategory>findByUuid(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 List<CPOptionCategory>findByUuid_C(String uuid, long companyId) Returns all the cp option categories where uuid = ? and companyId = ?.static List<CPOptionCategory>findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the cp option categories where uuid = ? and companyId = ?.static List<CPOptionCategory>findByUuid_C(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 List<CPOptionCategory>findByUuid_C(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 CPOptionCategoryfindByUuid_C_First(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 CPOptionCategoryfindByUuid_C_Last(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, 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 CPOptionCategoryfindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) Returns the first cp option category in the ordered set where uuid = ?.static CPOptionCategoryfindByUuid_Last(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, 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 List<CPOptionCategory>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CPOptionCategory>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CPOptionCategory>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) static CPOptionCategoryPersistencestatic CPOptionCategoryremove(long CPOptionCategoryId) Removes the cp option category with the primary key from the database.static voidRemoves all the cp option categories from the database.static CPOptionCategoryremoveByC_K(long companyId, String key) Removes the cp option category where companyId = ? and key = ? from the database.static voidremoveByCompanyId(long companyId) Removes all the cp option categories where companyId = ? from the database.static CPOptionCategoryremoveByERC_C(String externalReferenceCode, long companyId) Removes the cp option category where externalReferenceCode = ? and companyId = ? from the database.static voidremoveByUuid(String uuid) Removes all the cp option categories where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the cp option categories where uuid = ? and companyId = ? from the database.static voidsetPersistence(CPOptionCategoryPersistence persistence) static CPOptionCategoryupdate(CPOptionCategory cpOptionCategory) static CPOptionCategoryupdate(CPOptionCategory cpOptionCategory, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CPOptionCategoryupdateImpl(CPOptionCategory cpOptionCategory)
-
Constructor Details
-
CPOptionCategoryUtil
public CPOptionCategoryUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CPOptionCategory> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CPOptionCategory> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CPOptionCategory> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CPOptionCategory update(CPOptionCategory cpOptionCategory, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the cp option categories where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching cp option categories
-
findByUuid
Returns a range of all the cp option categories where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPOptionCategoryModelImpl.- Parameters:
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)- Returns:
- the range of matching cp option categories
-
findByUuid
public static List<CPOptionCategory> findByUuid(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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPOptionCategoryModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching cp option categories
-
findByUuid
public static List<CPOptionCategory> findByUuid(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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPOptionCategoryModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching cp option categories
-
findByUuid_First
public static CPOptionCategory findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) throws NoSuchCPOptionCategoryException Returns the first cp option category in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp option category
- Throws:
NoSuchCPOptionCategoryException- if a matching cp option category could not be foundNoSuchCPOptionCategoryException
-
fetchByUuid_First
public static CPOptionCategory fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) Returns the first cp option category in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp option category, or
nullif a matching cp option category could not be found
-
findByUuid_Last
public static CPOptionCategory findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) throws NoSuchCPOptionCategoryException Returns the last cp option category in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp option category
- Throws:
NoSuchCPOptionCategoryException- if a matching cp option category could not be foundNoSuchCPOptionCategoryException
-
fetchByUuid_Last
public static CPOptionCategory fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) Returns the last cp option category in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp option category, or
nullif a matching cp option category could not be found
-
findByUuid_PrevAndNext
public static CPOptionCategory[] findByUuid_PrevAndNext(long CPOptionCategoryId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) throws NoSuchCPOptionCategoryException Returns the cp option categories before and after the current cp option category in the ordered set where uuid = ?.- Parameters:
CPOptionCategoryId- the primary key of the current cp option categoryuuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next cp option category
- Throws:
NoSuchCPOptionCategoryException- if a cp option category with the primary key could not be foundNoSuchCPOptionCategoryException
-
filterFindByUuid
Returns all the cp option categories that the user has permission to view where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching cp option categories that the user has permission to view
-
filterFindByUuid
Returns a range of all the cp option categories that the user has permission to view where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPOptionCategoryModelImpl.- Parameters:
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)- Returns:
- the range of matching cp option categories that the user has permission to view
-
filterFindByUuid
public static List<CPOptionCategory> filterFindByUuid(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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPOptionCategoryModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching cp option categories that the user has permission to view
-
filterFindByUuid_PrevAndNext
public static CPOptionCategory[] filterFindByUuid_PrevAndNext(long CPOptionCategoryId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) throws NoSuchCPOptionCategoryException 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 = ?.- Parameters:
CPOptionCategoryId- the primary key of the current cp option categoryuuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next cp option category
- Throws:
NoSuchCPOptionCategoryException- if a cp option category with the primary key could not be foundNoSuchCPOptionCategoryException
-
removeByUuid
Removes all the cp option categories where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of cp option categories where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching cp option categories
-
filterCountByUuid
Returns the number of cp option categories that the user has permission to view where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching cp option categories that the user has permission to view
-
findByUuid_C
Returns all the cp option categories where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching cp option categories
-
findByUuid_C
Returns a range of all the cp option categories where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPOptionCategoryModelImpl.- Parameters:
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)- Returns:
- the range of matching cp option categories
-
findByUuid_C
public static List<CPOptionCategory> findByUuid_C(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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPOptionCategoryModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching cp option categories
-
findByUuid_C
public static List<CPOptionCategory> findByUuid_C(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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPOptionCategoryModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching cp option categories
-
findByUuid_C_First
public static CPOptionCategory findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) throws NoSuchCPOptionCategoryException Returns the first cp option category in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp option category
- Throws:
NoSuchCPOptionCategoryException- if a matching cp option category could not be foundNoSuchCPOptionCategoryException
-
fetchByUuid_C_First
public static CPOptionCategory fetchByUuid_C_First(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 = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp option category, or
nullif a matching cp option category could not be found
-
findByUuid_C_Last
public static CPOptionCategory findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) throws NoSuchCPOptionCategoryException Returns the last cp option category in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp option category
- Throws:
NoSuchCPOptionCategoryException- if a matching cp option category could not be foundNoSuchCPOptionCategoryException
-
fetchByUuid_C_Last
public static CPOptionCategory fetchByUuid_C_Last(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 = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp option category, or
nullif a matching cp option category could not be found
-
findByUuid_C_PrevAndNext
public static CPOptionCategory[] findByUuid_C_PrevAndNext(long CPOptionCategoryId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) throws NoSuchCPOptionCategoryException Returns the cp option categories before and after the current cp option category in the ordered set where uuid = ? and companyId = ?.- Parameters:
CPOptionCategoryId- the primary key of the current cp option categoryuuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next cp option category
- Throws:
NoSuchCPOptionCategoryException- if a cp option category with the primary key could not be foundNoSuchCPOptionCategoryException
-
filterFindByUuid_C
Returns all the cp option categories that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching cp option categories that the user has permission to view
-
filterFindByUuid_C
public static List<CPOptionCategory> filterFindByUuid_C(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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPOptionCategoryModelImpl.- Parameters:
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)- Returns:
- the range of matching cp option categories that the user has permission to view
-
filterFindByUuid_C
public static List<CPOptionCategory> filterFindByUuid_C(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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPOptionCategoryModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching cp option categories that the user has permission to view
-
filterFindByUuid_C_PrevAndNext
public static CPOptionCategory[] filterFindByUuid_C_PrevAndNext(long CPOptionCategoryId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) throws NoSuchCPOptionCategoryException 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 = ?.- Parameters:
CPOptionCategoryId- the primary key of the current cp option categoryuuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next cp option category
- Throws:
NoSuchCPOptionCategoryException- if a cp option category with the primary key could not be foundNoSuchCPOptionCategoryException
-
removeByUuid_C
Removes all the cp option categories where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of cp option categories where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching cp option categories
-
filterCountByUuid_C
Returns the number of cp option categories that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching cp option categories that the user has permission to view
-
findByCompanyId
Returns all the cp option categories where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching cp option categories
-
findByCompanyId
Returns a range of all the cp option categories where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPOptionCategoryModelImpl.- Parameters:
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)- Returns:
- the range of matching cp option categories
-
findByCompanyId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPOptionCategoryModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching cp option categories
-
findByCompanyId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPOptionCategoryModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching cp option categories
-
findByCompanyId_First
public static CPOptionCategory findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) throws NoSuchCPOptionCategoryException Returns the first cp option category in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp option category
- Throws:
NoSuchCPOptionCategoryException- if a matching cp option category could not be foundNoSuchCPOptionCategoryException
-
fetchByCompanyId_First
public 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 = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp option category, or
nullif a matching cp option category could not be found
-
findByCompanyId_Last
public static CPOptionCategory findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) throws NoSuchCPOptionCategoryException Returns the last cp option category in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp option category
- Throws:
NoSuchCPOptionCategoryException- if a matching cp option category could not be foundNoSuchCPOptionCategoryException
-
fetchByCompanyId_Last
public 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 = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp option category, or
nullif a matching cp option category could not be found
-
findByCompanyId_PrevAndNext
public static CPOptionCategory[] findByCompanyId_PrevAndNext(long CPOptionCategoryId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) throws NoSuchCPOptionCategoryException Returns the cp option categories before and after the current cp option category in the ordered set where companyId = ?.- Parameters:
CPOptionCategoryId- the primary key of the current cp option categorycompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next cp option category
- Throws:
NoSuchCPOptionCategoryException- if a cp option category with the primary key could not be foundNoSuchCPOptionCategoryException
-
filterFindByCompanyId
Returns all the cp option categories that the user has permission to view where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching cp option categories that the user has permission to view
-
filterFindByCompanyId
Returns a range of all the cp option categories that the user has permission to view where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPOptionCategoryModelImpl.- Parameters:
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)- Returns:
- the range of matching cp option categories that the user has permission to view
-
filterFindByCompanyId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPOptionCategoryModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching cp option categories that the user has permission to view
-
filterFindByCompanyId_PrevAndNext
public static CPOptionCategory[] filterFindByCompanyId_PrevAndNext(long CPOptionCategoryId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPOptionCategory> orderByComparator) throws NoSuchCPOptionCategoryException 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 = ?.- Parameters:
CPOptionCategoryId- the primary key of the current cp option categorycompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next cp option category
- Throws:
NoSuchCPOptionCategoryException- if a cp option category with the primary key could not be foundNoSuchCPOptionCategoryException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the cp option categories where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of cp option categories where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching cp option categories
-
filterCountByCompanyId
public static int filterCountByCompanyId(long companyId) Returns the number of cp option categories that the user has permission to view where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching cp option categories that the user has permission to view
-
findByC_K
public static CPOptionCategory findByC_K(long companyId, String key) throws NoSuchCPOptionCategoryException Returns the cp option category where companyId = ? and key = ? or throws aNoSuchCPOptionCategoryExceptionif it could not be found.- Parameters:
companyId- the company IDkey- the key- Returns:
- the matching cp option category
- Throws:
NoSuchCPOptionCategoryException- if a matching cp option category could not be foundNoSuchCPOptionCategoryException
-
fetchByC_K
Returns the cp option category where companyId = ? and key = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
companyId- the company IDkey- the key- Returns:
- the matching cp option category, or
nullif a matching cp option category could not be found
-
fetchByC_K
Returns the cp option category where companyId = ? and key = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
companyId- the company IDkey- the keyuseFinderCache- whether to use the finder cache- Returns:
- the matching cp option category, or
nullif a matching cp option category could not be found
-
removeByC_K
public static CPOptionCategory removeByC_K(long companyId, String key) throws NoSuchCPOptionCategoryException Removes the cp option category where companyId = ? and key = ? from the database.- Parameters:
companyId- the company IDkey- the key- Returns:
- the cp option category that was removed
- Throws:
NoSuchCPOptionCategoryException
-
countByC_K
Returns the number of cp option categories where companyId = ? and key = ?.- Parameters:
companyId- the company IDkey- the key- Returns:
- the number of matching cp option categories
-
findByERC_C
public static CPOptionCategory findByERC_C(String externalReferenceCode, long companyId) throws NoSuchCPOptionCategoryException Returns the cp option category where externalReferenceCode = ? and companyId = ? or throws aNoSuchCPOptionCategoryExceptionif it could not be found.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the matching cp option category
- Throws:
NoSuchCPOptionCategoryException- if a matching cp option category could not be foundNoSuchCPOptionCategoryException
-
fetchByERC_C
Returns the cp option category where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the matching cp option category, or
nullif a matching cp option category could not be found
-
fetchByERC_C
public static CPOptionCategory fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the cp option category where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company IDuseFinderCache- whether to use the finder cache- Returns:
- the matching cp option category, or
nullif a matching cp option category could not be found
-
removeByERC_C
public static CPOptionCategory removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchCPOptionCategoryException Removes the cp option category where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the cp option category that was removed
- Throws:
NoSuchCPOptionCategoryException
-
countByERC_C
Returns the number of cp option categories where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the number of matching cp option categories
-
cacheResult
Caches the cp option category in the entity cache if it is enabled.- Parameters:
cpOptionCategory- the cp option category
-
cacheResult
Caches the cp option categories in the entity cache if it is enabled.- Parameters:
cpOptionCategories- the cp option categories
-
create
Creates a new cp option category with the primary key. Does not add the cp option category to the database.- Parameters:
CPOptionCategoryId- the primary key for the new cp option category- Returns:
- the new cp option category
-
remove
public static CPOptionCategory remove(long CPOptionCategoryId) throws NoSuchCPOptionCategoryException Removes the cp option category with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
CPOptionCategoryId- the primary key of the cp option category- Returns:
- the cp option category that was removed
- Throws:
NoSuchCPOptionCategoryException- if a cp option category with the primary key could not be foundNoSuchCPOptionCategoryException
-
updateImpl
-
findByPrimaryKey
public static CPOptionCategory findByPrimaryKey(long CPOptionCategoryId) throws NoSuchCPOptionCategoryException Returns the cp option category with the primary key or throws aNoSuchCPOptionCategoryExceptionif it could not be found.- Parameters:
CPOptionCategoryId- the primary key of the cp option category- Returns:
- the cp option category
- Throws:
NoSuchCPOptionCategoryException- if a cp option category with the primary key could not be foundNoSuchCPOptionCategoryException
-
fetchByPrimaryKey
Returns the cp option category with the primary key or returnsnullif it could not be found.- Parameters:
CPOptionCategoryId- the primary key of the cp option category- Returns:
- the cp option category, or
nullif a cp option category with the primary key could not be found
-
findAll
Returns all the cp option categories.- Returns:
- the cp option categories
-
findAll
Returns a range of all the cp option categories.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPOptionCategoryModelImpl.- Parameters:
start- the lower bound of the range of cp option categoriesend- the upper bound of the range of cp option categories (not inclusive)- Returns:
- the range of cp option categories
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPOptionCategoryModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of cp option categories
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCPOptionCategoryModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of cp option categories
-
removeAll
public static void removeAll()Removes all the cp option categories from the database. -
countAll
public static int countAll()Returns the number of cp option categories.- Returns:
- the number of cp option categories
-
getPersistence
-
setPersistence
-