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) static voidcacheResult(List<CPSpecificationOption> cpSpecificationOptions) static voidstatic voidclearCache(CPSpecificationOption cpSpecificationOption) 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 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 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_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the first 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 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 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 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 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 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_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPSpecificationOption> orderByComparator) Returns the first 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 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
-
cacheResult
- See Also:
-
cacheResult
- See Also:
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
public static Map<Serializable,CPSpecificationOption> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
findWithDynamicQuery
public static List<CPSpecificationOption> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<CPSpecificationOption> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
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:
-
update
- See Also:
-
update
public static CPSpecificationOption update(CPSpecificationOption cpSpecificationOption, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.commerce.product.model.impl.CPSpecificationOptionModelImpl.- 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
-
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
-
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.commerce.product.model.impl.CPSpecificationOptionModelImpl.- 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
-
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
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.commerce.product.model.impl.CPSpecificationOptionModelImpl.- 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
-
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
-
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.commerce.product.model.impl.CPSpecificationOptionModelImpl.- 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
-
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
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.commerce.product.model.impl.CPSpecificationOptionModelImpl.- 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
-
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
-
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.commerce.product.model.impl.CPSpecificationOptionModelImpl.- 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
-
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
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.commerce.product.model.impl.CPSpecificationOptionModelImpl.- 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
-
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
-
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.commerce.product.model.impl.CPSpecificationOptionModelImpl.- 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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.commerce.product.model.impl.CPSpecificationOptionModelImpl.- 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.commerce.product.model.impl.CPSpecificationOptionModelImpl.- 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
-
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.commerce.product.model.impl.CPSpecificationOptionModelImpl.- 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
-
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.commerce.product.model.impl.CPSpecificationOptionModelImpl.- 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.commerce.product.model.impl.CPSpecificationOptionModelImpl.- 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
-
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.commerce.product.model.impl.CPSpecificationOptionModelImpl.- 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
-
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.commerce.product.model.impl.CPSpecificationOptionModelImpl.- 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.commerce.product.model.impl.CPSpecificationOptionModelImpl.- 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
-
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.commerce.product.model.impl.CPSpecificationOptionModelImpl.- 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
-
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.commerce.product.model.impl.CPSpecificationOptionModelImpl.- 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.commerce.product.model.impl.CPSpecificationOptionModelImpl.- 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
-
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.commerce.product.model.impl.CPSpecificationOptionModelImpl.- 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
-
getPersistence
-
setPersistence
-