Class CPSpecificationOptionUtil
com.liferay.commerce.product.service.persistence.impl.CPSpecificationOptionPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(CPSpecificationOption cpSpecificationOption) Caches the cp specification option in the entity cache if it is enabled.static voidcacheResult(List<CPSpecificationOption> cpSpecificationOptions) Caches the cp specification options in the entity cache if it is enabled.static voidstatic voidclearCache(CPSpecificationOption cpSpecificationOption) static intcountAll()Returns the number of cp specification options.static intcountByC_K(long companyId, String key) Returns the number of cp specification options where companyId = ? and key = ?.static intcountByCompanyId(long companyId) Returns the number of cp specification options where companyId = ?.static intcountByCPOptionCategoryId(long CPOptionCategoryId) Returns the number of cp specification options where CPOptionCategoryId = ?.static intcountByERC_C(String externalReferenceCode, long companyId) Returns the number of cp specification options where externalReferenceCode = ? and companyId = ?.static intcountByUuid(String uuid) Returns the number of cp specification options where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of cp specification options where uuid = ? and companyId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CPSpecificationOptioncreate(long CPSpecificationOptionId) Creates a new cp specification option with the primary key.static CPSpecificationOptionfetchByC_K(long companyId, String key) Returns the cp specification option where companyId = ? and key = ? or returnsnullif it could not be found.static CPSpecificationOptionfetchByC_K(long companyId, String key, boolean useFinderCache) Returns the cp specification option where companyId = ? and key = ? or returnsnullif it could not be found, optionally using the finder cache.static CPSpecificationOptionfetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the first cp specification option in the ordered set where companyId = ?.static CPSpecificationOptionfetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the last cp specification option in the ordered set where companyId = ?.static CPSpecificationOptionfetchByCPOptionCategoryId_First(long CPOptionCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the first cp specification option in the ordered set where CPOptionCategoryId = ?.static CPSpecificationOptionfetchByCPOptionCategoryId_Last(long CPOptionCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the last cp specification option in the ordered set where CPOptionCategoryId = ?.static CPSpecificationOptionfetchByERC_C(String externalReferenceCode, long companyId) Returns the cp specification option where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found.static CPSpecificationOptionfetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the cp specification option where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found, optionally using the finder cache.static CPSpecificationOptionfetchByPrimaryKey(long CPSpecificationOptionId) Returns the cp specification option with the primary key or returnsnullif it could not be found.static Map<Serializable,CPSpecificationOption> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static CPSpecificationOptionfetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the first cp specification option in the ordered set where uuid = ? and companyId = ?.static CPSpecificationOptionfetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the last cp specification option in the ordered set where uuid = ? and companyId = ?.static CPSpecificationOptionfetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the first cp specification option in the ordered set where uuid = ?.static CPSpecificationOptionfetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the last cp specification option in the ordered set where uuid = ?.static intfilterCountByCompanyId(long companyId) Returns the number of cp specification options that the user has permission to view where companyId = ?.static intfilterCountByCPOptionCategoryId(long CPOptionCategoryId) Returns the number of cp specification options that the user has permission to view where CPOptionCategoryId = ?.static intfilterCountByUuid(String uuid) Returns the number of cp specification options that the user has permission to view where uuid = ?.static intfilterCountByUuid_C(String uuid, long companyId) Returns the number of cp specification options that the user has permission to view where uuid = ? and companyId = ?.static List<CPSpecificationOption>filterFindByCompanyId(long companyId) Returns all the cp specification options that the user has permission to view where companyId = ?.static List<CPSpecificationOption>filterFindByCompanyId(long companyId, int start, int end) Returns a range of all the cp specification options that the user has permission to view where companyId = ?.static List<CPSpecificationOption>filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns an ordered range of all the cp specification options that the user has permissions to view where companyId = ?.static CPSpecificationOption[]filterFindByCompanyId_PrevAndNext(long CPSpecificationOptionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the cp specification options before and after the current cp specification option in the ordered set of cp specification options that the user has permission to view where companyId = ?.static List<CPSpecificationOption>filterFindByCPOptionCategoryId(long CPOptionCategoryId) Returns all the cp specification options that the user has permission to view where CPOptionCategoryId = ?.static List<CPSpecificationOption>filterFindByCPOptionCategoryId(long CPOptionCategoryId, int start, int end) Returns a range of all the cp specification options that the user has permission to view where CPOptionCategoryId = ?.static List<CPSpecificationOption>filterFindByCPOptionCategoryId(long CPOptionCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns an ordered range of all the cp specification options that the user has permissions to view where CPOptionCategoryId = ?.static CPSpecificationOption[]filterFindByCPOptionCategoryId_PrevAndNext(long CPSpecificationOptionId, long CPOptionCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the cp specification options before and after the current cp specification option in the ordered set of cp specification options that the user has permission to view where CPOptionCategoryId = ?.static List<CPSpecificationOption>filterFindByUuid(String uuid) Returns all the cp specification options that the user has permission to view where uuid = ?.static List<CPSpecificationOption>filterFindByUuid(String uuid, int start, int end) Returns a range of all the cp specification options that the user has permission to view where uuid = ?.static List<CPSpecificationOption>filterFindByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns an ordered range of all the cp specification options that the user has permissions to view where uuid = ?.static List<CPSpecificationOption>filterFindByUuid_C(String uuid, long companyId) Returns all the cp specification options that the user has permission to view where uuid = ? and companyId = ?.static List<CPSpecificationOption>filterFindByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the cp specification options that the user has permission to view where uuid = ? and companyId = ?.static List<CPSpecificationOption>filterFindByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns an ordered range of all the cp specification options that the user has permissions to view where uuid = ? and companyId = ?.static CPSpecificationOption[]filterFindByUuid_C_PrevAndNext(long CPSpecificationOptionId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the cp specification options before and after the current cp specification option in the ordered set of cp specification options that the user has permission to view where uuid = ? and companyId = ?.static CPSpecificationOption[]filterFindByUuid_PrevAndNext(long CPSpecificationOptionId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the cp specification options before and after the current cp specification option in the ordered set of cp specification options that the user has permission to view where uuid = ?.static List<CPSpecificationOption>findAll()Returns all the cp specification options.static List<CPSpecificationOption>findAll(int start, int end) Returns a range of all the cp specification options.static List<CPSpecificationOption>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns an ordered range of all the cp specification options.static List<CPSpecificationOption>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp specification options.static CPSpecificationOptionReturns the cp specification option where companyId = ? and key = ? or throws aNoSuchCPSpecificationOptionExceptionif it could not be found.static List<CPSpecificationOption>findByCompanyId(long companyId) Returns all the cp specification options where companyId = ?.static List<CPSpecificationOption>findByCompanyId(long companyId, int start, int end) Returns a range of all the cp specification options where companyId = ?.static List<CPSpecificationOption>findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns an ordered range of all the cp specification options where companyId = ?.static List<CPSpecificationOption>findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp specification options where companyId = ?.static CPSpecificationOptionfindByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the first cp specification option in the ordered set where companyId = ?.static CPSpecificationOptionfindByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the last cp specification option in the ordered set where companyId = ?.static CPSpecificationOption[]findByCompanyId_PrevAndNext(long CPSpecificationOptionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the cp specification options before and after the current cp specification option in the ordered set where companyId = ?.static List<CPSpecificationOption>findByCPOptionCategoryId(long CPOptionCategoryId) Returns all the cp specification options where CPOptionCategoryId = ?.static List<CPSpecificationOption>findByCPOptionCategoryId(long CPOptionCategoryId, int start, int end) Returns a range of all the cp specification options where CPOptionCategoryId = ?.static List<CPSpecificationOption>findByCPOptionCategoryId(long CPOptionCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns an ordered range of all the cp specification options where CPOptionCategoryId = ?.static List<CPSpecificationOption>findByCPOptionCategoryId(long CPOptionCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp specification options where CPOptionCategoryId = ?.static CPSpecificationOptionfindByCPOptionCategoryId_First(long CPOptionCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the first cp specification option in the ordered set where CPOptionCategoryId = ?.static CPSpecificationOptionfindByCPOptionCategoryId_Last(long CPOptionCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the last cp specification option in the ordered set where CPOptionCategoryId = ?.static CPSpecificationOption[]findByCPOptionCategoryId_PrevAndNext(long CPSpecificationOptionId, long CPOptionCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the cp specification options before and after the current cp specification option in the ordered set where CPOptionCategoryId = ?.static CPSpecificationOptionfindByERC_C(String externalReferenceCode, long companyId) Returns the cp specification option where externalReferenceCode = ? and companyId = ? or throws aNoSuchCPSpecificationOptionExceptionif it could not be found.static CPSpecificationOptionfindByPrimaryKey(long CPSpecificationOptionId) Returns the cp specification option with the primary key or throws aNoSuchCPSpecificationOptionExceptionif it could not be found.static List<CPSpecificationOption>findByUuid(String uuid) Returns all the cp specification options where uuid = ?.static List<CPSpecificationOption>findByUuid(String uuid, int start, int end) Returns a range of all the cp specification options where uuid = ?.static List<CPSpecificationOption>findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns an ordered range of all the cp specification options where uuid = ?.static List<CPSpecificationOption>findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp specification options where uuid = ?.static List<CPSpecificationOption>findByUuid_C(String uuid, long companyId) Returns all the cp specification options where uuid = ? and companyId = ?.static List<CPSpecificationOption>findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the cp specification options where uuid = ? and companyId = ?.static List<CPSpecificationOption>findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns an ordered range of all the cp specification options where uuid = ? and companyId = ?.static List<CPSpecificationOption>findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp specification options where uuid = ? and companyId = ?.static CPSpecificationOptionfindByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the first cp specification option in the ordered set where uuid = ? and companyId = ?.static CPSpecificationOptionfindByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the last cp specification option in the ordered set where uuid = ? and companyId = ?.static CPSpecificationOption[]findByUuid_C_PrevAndNext(long CPSpecificationOptionId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the cp specification options before and after the current cp specification option in the ordered set where uuid = ? and companyId = ?.static CPSpecificationOptionfindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the first cp specification option in the ordered set where uuid = ?.static CPSpecificationOptionfindByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the last cp specification option in the ordered set where uuid = ?.static CPSpecificationOption[]findByUuid_PrevAndNext(long CPSpecificationOptionId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the cp specification options before and after the current cp specification option in the ordered set where uuid = ?.static List<CPSpecificationOption>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CPSpecificationOption>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CPSpecificationOption>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) static CPSpecificationOptionremove(long CPSpecificationOptionId) Removes the cp specification option with the primary key from the database.static voidRemoves all the cp specification options from the database.static CPSpecificationOptionremoveByC_K(long companyId, String key) Removes the cp specification option where companyId = ? and key = ? from the database.static voidremoveByCompanyId(long companyId) Removes all the cp specification options where companyId = ? from the database.static voidremoveByCPOptionCategoryId(long CPOptionCategoryId) Removes all the cp specification options where CPOptionCategoryId = ? from the database.static CPSpecificationOptionremoveByERC_C(String externalReferenceCode, long companyId) Removes the cp specification option where externalReferenceCode = ? and companyId = ? from the database.static voidremoveByUuid(String uuid) Removes all the cp specification options where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the cp specification options where uuid = ? and companyId = ? from the database.static voidsetPersistence(CPSpecificationOptionPersistence persistence) static CPSpecificationOptionupdate(CPSpecificationOption cpSpecificationOption) static CPSpecificationOptionupdate(CPSpecificationOption cpSpecificationOption, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CPSpecificationOptionupdateImpl(CPSpecificationOption cpSpecificationOption)
-
Constructor Details
-
CPSpecificationOptionUtil
public CPSpecificationOptionUtil()
-
-
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
public static Map<Serializable,CPSpecificationOption> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CPSpecificationOption> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CPSpecificationOption> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CPSpecificationOption> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CPSpecificationOption update(CPSpecificationOption cpSpecificationOption, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the cp specification options where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching cp specification options
-
findByUuid
Returns a range of all the cp specification options 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 fromCPSpecificationOptionModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of cp specification optionsend- the upper bound of the range of cp specification options (not inclusive)- Returns:
- the range of matching cp specification options
-
findByUuid
public static List<CPSpecificationOption> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns an ordered range of all the cp specification options where uuid = ?.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 fromCPSpecificationOptionModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of cp specification optionsend- the upper bound of the range of cp specification options (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp specification options
-
findByUuid
public static List<CPSpecificationOption> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp specification options where uuid = ?.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 fromCPSpecificationOptionModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of cp specification optionsend- the upper bound of the range of cp specification options (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching cp specification options
-
findByUuid_First
public static CPSpecificationOption findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException Returns the first cp specification option in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp specification option
- Throws:
NoSuchCPSpecificationOptionException- if a matching cp specification option could not be foundNoSuchCPSpecificationOptionException
-
fetchByUuid_First
public static CPSpecificationOption fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the first cp specification option in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp specification option, or
nullif a matching cp specification option could not be found
-
findByUuid_Last
public static CPSpecificationOption findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException Returns the last cp specification option in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp specification option
- Throws:
NoSuchCPSpecificationOptionException- if a matching cp specification option could not be foundNoSuchCPSpecificationOptionException
-
fetchByUuid_Last
public static CPSpecificationOption fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the last cp specification option in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp specification option, or
nullif a matching cp specification option could not be found
-
findByUuid_PrevAndNext
public static CPSpecificationOption[] findByUuid_PrevAndNext(long CPSpecificationOptionId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException Returns the cp specification options before and after the current cp specification option in the ordered set where uuid = ?.- Parameters:
CPSpecificationOptionId- the primary key of the current cp specification optionuuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next cp specification option
- Throws:
NoSuchCPSpecificationOptionException- if a cp specification option with the primary key could not be foundNoSuchCPSpecificationOptionException
-
filterFindByUuid
Returns all the cp specification options that the user has permission to view where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching cp specification options that the user has permission to view
-
filterFindByUuid
Returns a range of all the cp specification options 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 fromCPSpecificationOptionModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of cp specification optionsend- the upper bound of the range of cp specification options (not inclusive)- Returns:
- the range of matching cp specification options that the user has permission to view
-
filterFindByUuid
public static List<CPSpecificationOption> filterFindByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns an ordered range of all the cp specification options that the user has permissions to view where uuid = ?.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 fromCPSpecificationOptionModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of cp specification optionsend- the upper bound of the range of cp specification options (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp specification options that the user has permission to view
-
filterFindByUuid_PrevAndNext
public static CPSpecificationOption[] filterFindByUuid_PrevAndNext(long CPSpecificationOptionId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException Returns the cp specification options before and after the current cp specification option in the ordered set of cp specification options that the user has permission to view where uuid = ?.- Parameters:
CPSpecificationOptionId- the primary key of the current cp specification optionuuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next cp specification option
- Throws:
NoSuchCPSpecificationOptionException- if a cp specification option with the primary key could not be foundNoSuchCPSpecificationOptionException
-
removeByUuid
Removes all the cp specification options where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of cp specification options where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching cp specification options
-
filterCountByUuid
Returns the number of cp specification options that the user has permission to view where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching cp specification options that the user has permission to view
-
findByUuid_C
Returns all the cp specification options where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching cp specification options
-
findByUuid_C
public static List<CPSpecificationOption> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the cp specification options 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 fromCPSpecificationOptionModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of cp specification optionsend- the upper bound of the range of cp specification options (not inclusive)- Returns:
- the range of matching cp specification options
-
findByUuid_C
public static List<CPSpecificationOption> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns an ordered range of all the cp specification options where uuid = ? and companyId = ?.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 fromCPSpecificationOptionModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of cp specification optionsend- the upper bound of the range of cp specification options (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp specification options
-
findByUuid_C
public static List<CPSpecificationOption> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp specification options where uuid = ? and companyId = ?.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 fromCPSpecificationOptionModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of cp specification optionsend- the upper bound of the range of cp specification options (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching cp specification options
-
findByUuid_C_First
public static CPSpecificationOption findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException Returns the first cp specification option 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 specification option
- Throws:
NoSuchCPSpecificationOptionException- if a matching cp specification option could not be foundNoSuchCPSpecificationOptionException
-
fetchByUuid_C_First
public static CPSpecificationOption fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the first cp specification option in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp specification option, or
nullif a matching cp specification option could not be found
-
findByUuid_C_Last
public static CPSpecificationOption findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException Returns the last cp specification option 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 specification option
- Throws:
NoSuchCPSpecificationOptionException- if a matching cp specification option could not be foundNoSuchCPSpecificationOptionException
-
fetchByUuid_C_Last
public static CPSpecificationOption fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the last cp specification option in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp specification option, or
nullif a matching cp specification option could not be found
-
findByUuid_C_PrevAndNext
public static CPSpecificationOption[] findByUuid_C_PrevAndNext(long CPSpecificationOptionId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException Returns the cp specification options before and after the current cp specification option in the ordered set where uuid = ? and companyId = ?.- Parameters:
CPSpecificationOptionId- the primary key of the current cp specification optionuuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next cp specification option
- Throws:
NoSuchCPSpecificationOptionException- if a cp specification option with the primary key could not be foundNoSuchCPSpecificationOptionException
-
filterFindByUuid_C
Returns all the cp specification options that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching cp specification options that the user has permission to view
-
filterFindByUuid_C
public static List<CPSpecificationOption> filterFindByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the cp specification options that the user has permission to view where uuid = ? and companyId = ?.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 fromCPSpecificationOptionModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of cp specification optionsend- the upper bound of the range of cp specification options (not inclusive)- Returns:
- the range of matching cp specification options that the user has permission to view
-
filterFindByUuid_C
public static List<CPSpecificationOption> filterFindByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns an ordered range of all the cp specification options that the user has permissions to view where uuid = ? and companyId = ?.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 fromCPSpecificationOptionModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of cp specification optionsend- the upper bound of the range of cp specification options (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp specification options that the user has permission to view
-
filterFindByUuid_C_PrevAndNext
public static CPSpecificationOption[] filterFindByUuid_C_PrevAndNext(long CPSpecificationOptionId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException Returns the cp specification options before and after the current cp specification option in the ordered set of cp specification options that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
CPSpecificationOptionId- the primary key of the current cp specification optionuuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next cp specification option
- Throws:
NoSuchCPSpecificationOptionException- if a cp specification option with the primary key could not be foundNoSuchCPSpecificationOptionException
-
removeByUuid_C
Removes all the cp specification options where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of cp specification options where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching cp specification options
-
filterCountByUuid_C
Returns the number of cp specification options that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching cp specification options that the user has permission to view
-
findByCompanyId
Returns all the cp specification options where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching cp specification options
-
findByCompanyId
Returns a range of all the cp specification options 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 fromCPSpecificationOptionModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of cp specification optionsend- the upper bound of the range of cp specification options (not inclusive)- Returns:
- the range of matching cp specification options
-
findByCompanyId
public static List<CPSpecificationOption> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns an ordered range of all the cp specification options where companyId = ?.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 fromCPSpecificationOptionModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of cp specification optionsend- the upper bound of the range of cp specification options (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp specification options
-
findByCompanyId
public static List<CPSpecificationOption> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp specification options where companyId = ?.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 fromCPSpecificationOptionModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of cp specification optionsend- the upper bound of the range of cp specification options (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching cp specification options
-
findByCompanyId_First
public static CPSpecificationOption findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException Returns the first cp specification option in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp specification option
- Throws:
NoSuchCPSpecificationOptionException- if a matching cp specification option could not be foundNoSuchCPSpecificationOptionException
-
fetchByCompanyId_First
public static CPSpecificationOption fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the first cp specification option in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp specification option, or
nullif a matching cp specification option could not be found
-
findByCompanyId_Last
public static CPSpecificationOption findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException Returns the last cp specification option in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp specification option
- Throws:
NoSuchCPSpecificationOptionException- if a matching cp specification option could not be foundNoSuchCPSpecificationOptionException
-
fetchByCompanyId_Last
public static CPSpecificationOption fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the last cp specification option in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp specification option, or
nullif a matching cp specification option could not be found
-
findByCompanyId_PrevAndNext
public static CPSpecificationOption[] findByCompanyId_PrevAndNext(long CPSpecificationOptionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException Returns the cp specification options before and after the current cp specification option in the ordered set where companyId = ?.- Parameters:
CPSpecificationOptionId- the primary key of the current cp specification optioncompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next cp specification option
- Throws:
NoSuchCPSpecificationOptionException- if a cp specification option with the primary key could not be foundNoSuchCPSpecificationOptionException
-
filterFindByCompanyId
Returns all the cp specification options that the user has permission to view where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching cp specification options that the user has permission to view
-
filterFindByCompanyId
Returns a range of all the cp specification options 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 fromCPSpecificationOptionModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of cp specification optionsend- the upper bound of the range of cp specification options (not inclusive)- Returns:
- the range of matching cp specification options that the user has permission to view
-
filterFindByCompanyId
public static List<CPSpecificationOption> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns an ordered range of all the cp specification options that the user has permissions to view where companyId = ?.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 fromCPSpecificationOptionModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of cp specification optionsend- the upper bound of the range of cp specification options (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp specification options that the user has permission to view
-
filterFindByCompanyId_PrevAndNext
public static CPSpecificationOption[] filterFindByCompanyId_PrevAndNext(long CPSpecificationOptionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException Returns the cp specification options before and after the current cp specification option in the ordered set of cp specification options that the user has permission to view where companyId = ?.- Parameters:
CPSpecificationOptionId- the primary key of the current cp specification optioncompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next cp specification option
- Throws:
NoSuchCPSpecificationOptionException- if a cp specification option with the primary key could not be foundNoSuchCPSpecificationOptionException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the cp specification options where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of cp specification options where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching cp specification options
-
filterCountByCompanyId
public static int filterCountByCompanyId(long companyId) Returns the number of cp specification options that the user has permission to view where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching cp specification options that the user has permission to view
-
findByCPOptionCategoryId
Returns all the cp specification options where CPOptionCategoryId = ?.- Parameters:
CPOptionCategoryId- the cp option category ID- Returns:
- the matching cp specification options
-
findByCPOptionCategoryId
public static List<CPSpecificationOption> findByCPOptionCategoryId(long CPOptionCategoryId, int start, int end) Returns a range of all the cp specification options where CPOptionCategoryId = ?.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 fromCPSpecificationOptionModelImpl.- Parameters:
CPOptionCategoryId- the cp option category IDstart- the lower bound of the range of cp specification optionsend- the upper bound of the range of cp specification options (not inclusive)- Returns:
- the range of matching cp specification options
-
findByCPOptionCategoryId
public static List<CPSpecificationOption> findByCPOptionCategoryId(long CPOptionCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns an ordered range of all the cp specification options where CPOptionCategoryId = ?.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 fromCPSpecificationOptionModelImpl.- Parameters:
CPOptionCategoryId- the cp option category IDstart- the lower bound of the range of cp specification optionsend- the upper bound of the range of cp specification options (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp specification options
-
findByCPOptionCategoryId
public static List<CPSpecificationOption> findByCPOptionCategoryId(long CPOptionCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp specification options where CPOptionCategoryId = ?.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 fromCPSpecificationOptionModelImpl.- Parameters:
CPOptionCategoryId- the cp option category IDstart- the lower bound of the range of cp specification optionsend- the upper bound of the range of cp specification options (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching cp specification options
-
findByCPOptionCategoryId_First
public static CPSpecificationOption findByCPOptionCategoryId_First(long CPOptionCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException Returns the first cp specification option in the ordered set where CPOptionCategoryId = ?.- Parameters:
CPOptionCategoryId- the cp option category IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp specification option
- Throws:
NoSuchCPSpecificationOptionException- if a matching cp specification option could not be foundNoSuchCPSpecificationOptionException
-
fetchByCPOptionCategoryId_First
public static CPSpecificationOption fetchByCPOptionCategoryId_First(long CPOptionCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the first cp specification option in the ordered set where CPOptionCategoryId = ?.- Parameters:
CPOptionCategoryId- the cp option category IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp specification option, or
nullif a matching cp specification option could not be found
-
findByCPOptionCategoryId_Last
public static CPSpecificationOption findByCPOptionCategoryId_Last(long CPOptionCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException Returns the last cp specification option in the ordered set where CPOptionCategoryId = ?.- Parameters:
CPOptionCategoryId- the cp option category IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp specification option
- Throws:
NoSuchCPSpecificationOptionException- if a matching cp specification option could not be foundNoSuchCPSpecificationOptionException
-
fetchByCPOptionCategoryId_Last
public static CPSpecificationOption fetchByCPOptionCategoryId_Last(long CPOptionCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the last cp specification option in the ordered set where CPOptionCategoryId = ?.- Parameters:
CPOptionCategoryId- the cp option category IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching cp specification option, or
nullif a matching cp specification option could not be found
-
findByCPOptionCategoryId_PrevAndNext
public static CPSpecificationOption[] findByCPOptionCategoryId_PrevAndNext(long CPSpecificationOptionId, long CPOptionCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException Returns the cp specification options before and after the current cp specification option in the ordered set where CPOptionCategoryId = ?.- Parameters:
CPSpecificationOptionId- the primary key of the current cp specification optionCPOptionCategoryId- the cp option category IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next cp specification option
- Throws:
NoSuchCPSpecificationOptionException- if a cp specification option with the primary key could not be foundNoSuchCPSpecificationOptionException
-
filterFindByCPOptionCategoryId
Returns all the cp specification options that the user has permission to view where CPOptionCategoryId = ?.- Parameters:
CPOptionCategoryId- the cp option category ID- Returns:
- the matching cp specification options that the user has permission to view
-
filterFindByCPOptionCategoryId
public static List<CPSpecificationOption> filterFindByCPOptionCategoryId(long CPOptionCategoryId, int start, int end) Returns a range of all the cp specification options that the user has permission to view where CPOptionCategoryId = ?.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 fromCPSpecificationOptionModelImpl.- Parameters:
CPOptionCategoryId- the cp option category IDstart- the lower bound of the range of cp specification optionsend- the upper bound of the range of cp specification options (not inclusive)- Returns:
- the range of matching cp specification options that the user has permission to view
-
filterFindByCPOptionCategoryId
public static List<CPSpecificationOption> filterFindByCPOptionCategoryId(long CPOptionCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns an ordered range of all the cp specification options that the user has permissions to view where CPOptionCategoryId = ?.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 fromCPSpecificationOptionModelImpl.- Parameters:
CPOptionCategoryId- the cp option category IDstart- the lower bound of the range of cp specification optionsend- the upper bound of the range of cp specification options (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp specification options that the user has permission to view
-
filterFindByCPOptionCategoryId_PrevAndNext
public static CPSpecificationOption[] filterFindByCPOptionCategoryId_PrevAndNext(long CPSpecificationOptionId, long CPOptionCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) throws NoSuchCPSpecificationOptionException Returns the cp specification options before and after the current cp specification option in the ordered set of cp specification options that the user has permission to view where CPOptionCategoryId = ?.- Parameters:
CPSpecificationOptionId- the primary key of the current cp specification optionCPOptionCategoryId- the cp option category IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next cp specification option
- Throws:
NoSuchCPSpecificationOptionException- if a cp specification option with the primary key could not be foundNoSuchCPSpecificationOptionException
-
removeByCPOptionCategoryId
public static void removeByCPOptionCategoryId(long CPOptionCategoryId) Removes all the cp specification options where CPOptionCategoryId = ? from the database.- Parameters:
CPOptionCategoryId- the cp option category ID
-
countByCPOptionCategoryId
public static int countByCPOptionCategoryId(long CPOptionCategoryId) Returns the number of cp specification options where CPOptionCategoryId = ?.- Parameters:
CPOptionCategoryId- the cp option category ID- Returns:
- the number of matching cp specification options
-
filterCountByCPOptionCategoryId
public static int filterCountByCPOptionCategoryId(long CPOptionCategoryId) Returns the number of cp specification options that the user has permission to view where CPOptionCategoryId = ?.- Parameters:
CPOptionCategoryId- the cp option category ID- Returns:
- the number of matching cp specification options that the user has permission to view
-
findByC_K
public static CPSpecificationOption findByC_K(long companyId, String key) throws NoSuchCPSpecificationOptionException Returns the cp specification option where companyId = ? and key = ? or throws aNoSuchCPSpecificationOptionExceptionif it could not be found.- Parameters:
companyId- the company IDkey- the key- Returns:
- the matching cp specification option
- Throws:
NoSuchCPSpecificationOptionException- if a matching cp specification option could not be foundNoSuchCPSpecificationOptionException
-
fetchByC_K
Returns the cp specification option 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 specification option, or
nullif a matching cp specification option could not be found
-
fetchByC_K
Returns the cp specification option 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 specification option, or
nullif a matching cp specification option could not be found
-
removeByC_K
public static CPSpecificationOption removeByC_K(long companyId, String key) throws NoSuchCPSpecificationOptionException Removes the cp specification option where companyId = ? and key = ? from the database.- Parameters:
companyId- the company IDkey- the key- Returns:
- the cp specification option that was removed
- Throws:
NoSuchCPSpecificationOptionException
-
countByC_K
Returns the number of cp specification options where companyId = ? and key = ?.- Parameters:
companyId- the company IDkey- the key- Returns:
- the number of matching cp specification options
-
findByERC_C
public static CPSpecificationOption findByERC_C(String externalReferenceCode, long companyId) throws NoSuchCPSpecificationOptionException Returns the cp specification option where externalReferenceCode = ? and companyId = ? or throws aNoSuchCPSpecificationOptionExceptionif it could not be found.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the matching cp specification option
- Throws:
NoSuchCPSpecificationOptionException- if a matching cp specification option could not be foundNoSuchCPSpecificationOptionException
-
fetchByERC_C
Returns the cp specification option 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 specification option, or
nullif a matching cp specification option could not be found
-
fetchByERC_C
public static CPSpecificationOption fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the cp specification option 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 specification option, or
nullif a matching cp specification option could not be found
-
removeByERC_C
public static CPSpecificationOption removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchCPSpecificationOptionException Removes the cp specification option where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the cp specification option that was removed
- Throws:
NoSuchCPSpecificationOptionException
-
countByERC_C
Returns the number of cp specification options where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the number of matching cp specification options
-
cacheResult
Caches the cp specification option in the entity cache if it is enabled.- Parameters:
cpSpecificationOption- the cp specification option
-
cacheResult
Caches the cp specification options in the entity cache if it is enabled.- Parameters:
cpSpecificationOptions- the cp specification options
-
create
Creates a new cp specification option with the primary key. Does not add the cp specification option to the database.- Parameters:
CPSpecificationOptionId- the primary key for the new cp specification option- Returns:
- the new cp specification option
-
remove
public static CPSpecificationOption remove(long CPSpecificationOptionId) throws NoSuchCPSpecificationOptionException Removes the cp specification option with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
CPSpecificationOptionId- the primary key of the cp specification option- Returns:
- the cp specification option that was removed
- Throws:
NoSuchCPSpecificationOptionException- if a cp specification option with the primary key could not be foundNoSuchCPSpecificationOptionException
-
updateImpl
-
findByPrimaryKey
public static CPSpecificationOption findByPrimaryKey(long CPSpecificationOptionId) throws NoSuchCPSpecificationOptionException Returns the cp specification option with the primary key or throws aNoSuchCPSpecificationOptionExceptionif it could not be found.- Parameters:
CPSpecificationOptionId- the primary key of the cp specification option- Returns:
- the cp specification option
- Throws:
NoSuchCPSpecificationOptionException- if a cp specification option with the primary key could not be foundNoSuchCPSpecificationOptionException
-
fetchByPrimaryKey
Returns the cp specification option with the primary key or returnsnullif it could not be found.- Parameters:
CPSpecificationOptionId- the primary key of the cp specification option- Returns:
- the cp specification option, or
nullif a cp specification option with the primary key could not be found
-
findAll
Returns all the cp specification options.- Returns:
- the cp specification options
-
findAll
Returns a range of all the cp specification options.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 fromCPSpecificationOptionModelImpl.- Parameters:
start- the lower bound of the range of cp specification optionsend- the upper bound of the range of cp specification options (not inclusive)- Returns:
- the range of cp specification options
-
findAll
public static List<CPSpecificationOption> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns an ordered range of all the cp specification options.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 fromCPSpecificationOptionModelImpl.- Parameters:
start- the lower bound of the range of cp specification optionsend- the upper bound of the range of cp specification options (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of cp specification options
-
findAll
public static List<CPSpecificationOption> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp specification options.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 fromCPSpecificationOptionModelImpl.- Parameters:
start- the lower bound of the range of cp specification optionsend- the upper bound of the range of cp specification options (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of cp specification options
-
removeAll
public static void removeAll()Removes all the cp specification options from the database. -
countAll
public static int countAll()Returns the number of cp specification options.- Returns:
- the number of cp specification options
-
getPersistence
-
setPersistence
-