Class CPDefinitionUtil
com.liferay.commerce.product.service.persistence.impl.CPDefinitionPersistenceImpl 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(CPDefinition cpDefinition) static voidcacheResult(List<CPDefinition> cpDefinitions) static voidstatic voidclearCache(CPDefinition cpDefinition) static intcountByC_S(long CProductId, int status) Returns the number of cp definitions where CProductId = ? and status = ?.static intcountByC_V(long CProductId, int version) Returns the number of cp definitions where CProductId = ? and version = ?.static intcountByCompanyId(long companyId) Returns the number of cp definitions where companyId = ?.static intcountByCProductId(long CProductId) Returns the number of cp definitions where CProductId = ?.static intcountByCPTaxCategoryId(long CPTaxCategoryId) Returns the number of cp definitions where CPTaxCategoryId = ?.static intcountByG_S(long groupId, int status) Returns the number of cp definitions where groupId = ? and status = ?.static intcountByG_SE(long groupId, boolean subscriptionEnabled) Returns the number of cp definitions where groupId = ? and subscriptionEnabled = ?.static intcountByGroupId(long groupId) Returns the number of cp definitions where groupId = ?.static intcountByLtD_S(Date displayDate, int status) Returns the number of cp definitions where displayDate < ? and status = ?.static intcountByUuid(String uuid) Returns the number of cp definitions where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of cp definitions where uuid = ? and companyId = ?.static intcountByUUID_G(String uuid, long groupId) Returns the number of cp definitions where uuid = ? and groupId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CPDefinitioncreate(long CPDefinitionId) Creates a new cp definition with the primary key.static CPDefinitionfetchByC_S_First(long CProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where CProductId = ? and status = ?.static CPDefinitionfetchByC_V(long CProductId, int version) Returns the cp definition where CProductId = ? and version = ? or returnsnullif it could not be found.static CPDefinitionfetchByC_V(long CProductId, int version, boolean useFinderCache) Returns the cp definition where CProductId = ? and version = ? or returnsnullif it could not be found, optionally using the finder cache.static CPDefinitionfetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where companyId = ?.static CPDefinitionfetchByCProductId_First(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where CProductId = ?.static CPDefinitionfetchByCPTaxCategoryId_First(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where CPTaxCategoryId = ?.static CPDefinitionfetchByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where groupId = ? and status = ?.static CPDefinitionfetchByG_SE_First(long groupId, boolean subscriptionEnabled, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where groupId = ? and subscriptionEnabled = ?.static CPDefinitionfetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where groupId = ?.static CPDefinitionfetchByLtD_S_First(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where displayDate < ? and status = ?.static CPDefinitionfetchByPrimaryKey(long CPDefinitionId) Returns the cp definition with the primary key or returnsnullif it could not be found.static Map<Serializable, CPDefinition> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static CPDefinitionfetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where uuid = ? and companyId = ?.static CPDefinitionfetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where uuid = ?.static CPDefinitionfetchByUUID_G(String uuid, long groupId) Returns the cp definition where uuid = ? and groupId = ? or returnsnullif it could not be found.static CPDefinitionfetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the cp definition where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.static intfilterCountByG_S(long groupId, int status) Returns the number of cp definitions that the user has permission to view where groupId = ? and status = ?.static intfilterCountByG_SE(long groupId, boolean subscriptionEnabled) Returns the number of cp definitions that the user has permission to view where groupId = ? and subscriptionEnabled = ?.static intfilterCountByGroupId(long groupId) Returns the number of cp definitions that the user has permission to view where groupId = ?.static List<CPDefinition> filterFindByG_S(long groupId, int status) Returns all the cp definitions that the user has permission to view where groupId = ? and status = ?.static List<CPDefinition> filterFindByG_S(long groupId, int status, int start, int end) Returns a range of all the cp definitions that the user has permission to view where groupId = ? and status = ?.static List<CPDefinition> filterFindByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions that the user has permissions to view where groupId = ? and status = ?.static List<CPDefinition> filterFindByG_SE(long groupId, boolean subscriptionEnabled) Returns all the cp definitions that the user has permission to view where groupId = ? and subscriptionEnabled = ?.static List<CPDefinition> filterFindByG_SE(long groupId, boolean subscriptionEnabled, int start, int end) Returns a range of all the cp definitions that the user has permission to view where groupId = ? and subscriptionEnabled = ?.static List<CPDefinition> filterFindByG_SE(long groupId, boolean subscriptionEnabled, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions that the user has permissions to view where groupId = ? and subscriptionEnabled = ?.static List<CPDefinition> filterFindByGroupId(long groupId) Returns all the cp definitions that the user has permission to view where groupId = ?.static List<CPDefinition> filterFindByGroupId(long groupId, int start, int end) Returns a range of all the cp definitions that the user has permission to view where groupId = ?.static List<CPDefinition> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions that the user has permissions to view where groupId = ?.static List<CPDefinition> findByC_S(long CProductId, int status) Returns all the cp definitions where CProductId = ? and status = ?.static List<CPDefinition> findByC_S(long CProductId, int status, int start, int end) Returns a range of all the cp definitions where CProductId = ? and status = ?.static List<CPDefinition> findByC_S(long CProductId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where CProductId = ? and status = ?.static List<CPDefinition> findByC_S(long CProductId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where CProductId = ? and status = ?.static CPDefinitionfindByC_S_First(long CProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where CProductId = ? and status = ?.static CPDefinitionfindByC_V(long CProductId, int version) Returns the cp definition where CProductId = ? and version = ? or throws aNoSuchCPDefinitionExceptionif it could not be found.static List<CPDefinition> findByCompanyId(long companyId) Returns all the cp definitions where companyId = ?.static List<CPDefinition> findByCompanyId(long companyId, int start, int end) Returns a range of all the cp definitions where companyId = ?.static List<CPDefinition> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where companyId = ?.static List<CPDefinition> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where companyId = ?.static CPDefinitionfindByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where companyId = ?.static List<CPDefinition> findByCProductId(long CProductId) Returns all the cp definitions where CProductId = ?.static List<CPDefinition> findByCProductId(long CProductId, int start, int end) Returns a range of all the cp definitions where CProductId = ?.static List<CPDefinition> findByCProductId(long CProductId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where CProductId = ?.static List<CPDefinition> findByCProductId(long CProductId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where CProductId = ?.static CPDefinitionfindByCProductId_First(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where CProductId = ?.static List<CPDefinition> findByCPTaxCategoryId(long CPTaxCategoryId) Returns all the cp definitions where CPTaxCategoryId = ?.static List<CPDefinition> findByCPTaxCategoryId(long CPTaxCategoryId, int start, int end) Returns a range of all the cp definitions where CPTaxCategoryId = ?.static List<CPDefinition> findByCPTaxCategoryId(long CPTaxCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where CPTaxCategoryId = ?.static List<CPDefinition> findByCPTaxCategoryId(long CPTaxCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where CPTaxCategoryId = ?.static CPDefinitionfindByCPTaxCategoryId_First(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where CPTaxCategoryId = ?.static List<CPDefinition> findByG_S(long groupId, int status) Returns all the cp definitions where groupId = ? and status = ?.static List<CPDefinition> findByG_S(long groupId, int status, int start, int end) Returns a range of all the cp definitions where groupId = ? and status = ?.static List<CPDefinition> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where groupId = ? and status = ?.static List<CPDefinition> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where groupId = ? and status = ?.static CPDefinitionfindByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where groupId = ? and status = ?.static List<CPDefinition> findByG_SE(long groupId, boolean subscriptionEnabled) Returns all the cp definitions where groupId = ? and subscriptionEnabled = ?.static List<CPDefinition> findByG_SE(long groupId, boolean subscriptionEnabled, int start, int end) Returns a range of all the cp definitions where groupId = ? and subscriptionEnabled = ?.static List<CPDefinition> findByG_SE(long groupId, boolean subscriptionEnabled, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where groupId = ? and subscriptionEnabled = ?.static List<CPDefinition> findByG_SE(long groupId, boolean subscriptionEnabled, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where groupId = ? and subscriptionEnabled = ?.static CPDefinitionfindByG_SE_First(long groupId, boolean subscriptionEnabled, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where groupId = ? and subscriptionEnabled = ?.static List<CPDefinition> findByGroupId(long groupId) Returns all the cp definitions where groupId = ?.static List<CPDefinition> findByGroupId(long groupId, int start, int end) Returns a range of all the cp definitions where groupId = ?.static List<CPDefinition> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where groupId = ?.static List<CPDefinition> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where groupId = ?.static CPDefinitionfindByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where groupId = ?.static List<CPDefinition> findByLtD_S(Date displayDate, int status) Returns all the cp definitions where displayDate < ? and status = ?.static List<CPDefinition> findByLtD_S(Date displayDate, int status, int start, int end) Returns a range of all the cp definitions where displayDate < ? and status = ?.static List<CPDefinition> findByLtD_S(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where displayDate < ? and status = ?.static List<CPDefinition> findByLtD_S(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where displayDate < ? and status = ?.static CPDefinitionfindByLtD_S_First(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where displayDate < ? and status = ?.static CPDefinitionfindByPrimaryKey(long CPDefinitionId) Returns the cp definition with the primary key or throws aNoSuchCPDefinitionExceptionif it could not be found.static List<CPDefinition> findByUuid(String uuid) Returns all the cp definitions where uuid = ?.static List<CPDefinition> findByUuid(String uuid, int start, int end) Returns a range of all the cp definitions where uuid = ?.static List<CPDefinition> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where uuid = ?.static List<CPDefinition> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where uuid = ?.static List<CPDefinition> findByUuid_C(String uuid, long companyId) Returns all the cp definitions where uuid = ? and companyId = ?.static List<CPDefinition> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the cp definitions where uuid = ? and companyId = ?.static List<CPDefinition> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where uuid = ? and companyId = ?.static List<CPDefinition> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where uuid = ? and companyId = ?.static CPDefinitionfindByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where uuid = ? and companyId = ?.static CPDefinitionfindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where uuid = ?.static CPDefinitionfindByUUID_G(String uuid, long groupId) Returns the cp definition where uuid = ? and groupId = ? or throws aNoSuchCPDefinitionExceptionif it could not be found.static List<CPDefinition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CPDefinition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CPDefinition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) static CPDefinitionPersistencestatic CPDefinitionremove(long CPDefinitionId) Removes the cp definition with the primary key from the database.static voidremoveByC_S(long CProductId, int status) Removes all the cp definitions where CProductId = ? and status = ? from the database.static CPDefinitionremoveByC_V(long CProductId, int version) Removes the cp definition where CProductId = ? and version = ? from the database.static voidremoveByCompanyId(long companyId) Removes all the cp definitions where companyId = ? from the database.static voidremoveByCProductId(long CProductId) Removes all the cp definitions where CProductId = ? from the database.static voidremoveByCPTaxCategoryId(long CPTaxCategoryId) Removes all the cp definitions where CPTaxCategoryId = ? from the database.static voidremoveByG_S(long groupId, int status) Removes all the cp definitions where groupId = ? and status = ? from the database.static voidremoveByG_SE(long groupId, boolean subscriptionEnabled) Removes all the cp definitions where groupId = ? and subscriptionEnabled = ? from the database.static voidremoveByGroupId(long groupId) Removes all the cp definitions where groupId = ? from the database.static voidremoveByLtD_S(Date displayDate, int status) Removes all the cp definitions where displayDate < ? and status = ? from the database.static voidremoveByUuid(String uuid) Removes all the cp definitions where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the cp definitions where uuid = ? and companyId = ? from the database.static CPDefinitionremoveByUUID_G(String uuid, long groupId) Removes the cp definition where uuid = ? and groupId = ? from the database.static voidsetPersistence(CPDefinitionPersistence persistence) static CPDefinitionupdate(CPDefinition cpDefinition) static CPDefinitionupdate(CPDefinition cpDefinition, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CPDefinitionupdateImpl(CPDefinition cpDefinition)
-
Constructor Details
-
CPDefinitionUtil
public CPDefinitionUtil()
-
-
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
- See Also:
-
findWithDynamicQuery
public static List<CPDefinition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<CPDefinition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<CPDefinition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) - See Also:
-
update
- See Also:
-
update
public static CPDefinition update(CPDefinition cpDefinition, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByUuid
public static List<CPDefinition> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions 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.CPDefinitionModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (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 definitions
-
findByUuid_First
public static CPDefinition findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition
-
fetchByUuid_First
public static CPDefinition fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition, or
nullif a matching cp definition could not be found
-
removeByUuid
Removes all the cp definitions where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of cp definitions where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching cp definitions
-
findByUUID_G
public static CPDefinition findByUUID_G(String uuid, long groupId) throws NoSuchCPDefinitionException Returns the cp definition where uuid = ? and groupId = ? or throws aNoSuchCPDefinitionExceptionif it could not be found.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching cp definition
-
fetchByUUID_G
Returns the cp definition where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
uuid- the uuidgroupId- the group IDuseFinderCache- whether to use the finder cache- Returns:
- the matching cp definition, or
nullif a matching cp definition could not be found
-
removeByUUID_G
public static CPDefinition removeByUUID_G(String uuid, long groupId) throws NoSuchCPDefinitionException Removes the cp definition where uuid = ? and groupId = ? from the database.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the cp definition that was removed
- Throws:
NoSuchCPDefinitionException
-
countByUUID_G
Returns the number of cp definitions where uuid = ? and groupId = ?.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the number of matching cp definitions
-
findByUuid_C
public static List<CPDefinition> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions 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.CPDefinitionModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (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 definitions
-
findByUuid_C_First
public static CPDefinition findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition 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 definition
-
fetchByUuid_C_First
public static CPDefinition fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition 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 definition, or
nullif a matching cp definition could not be found
-
removeByUuid_C
Removes all the cp definitions where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of cp definitions where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching cp definitions
-
findByGroupId
public static List<CPDefinition> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where groupId = ?.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.CPDefinitionModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (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 definitions
-
findByGroupId_First
public static CPDefinition findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition
-
fetchByGroupId_First
public static CPDefinition fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition, or
nullif a matching cp definition could not be found
-
filterFindByGroupId
public static List<CPDefinition> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions that the user has permissions to view where groupId = ?.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.CPDefinitionModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definitions that the user has permission to view
-
removeByGroupId
public static void removeByGroupId(long groupId) Removes all the cp definitions where groupId = ? from the database.- Parameters:
groupId- the group ID
-
countByGroupId
public static int countByGroupId(long groupId) Returns the number of cp definitions where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the number of matching cp definitions
-
filterCountByGroupId
public static int filterCountByGroupId(long groupId) Returns the number of cp definitions that the user has permission to view where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the number of matching cp definitions that the user has permission to view
-
findByCompanyId
public static List<CPDefinition> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions 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.CPDefinitionModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (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 definitions
-
findByCompanyId_First
public static CPDefinition findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition
-
fetchByCompanyId_First
public static CPDefinition fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition, or
nullif a matching cp definition could not be found
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the cp definitions where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of cp definitions where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching cp definitions
-
findByCProductId
public static List<CPDefinition> findByCProductId(long CProductId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where CProductId = ?.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.CPDefinitionModelImpl.- Parameters:
CProductId- the c product IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (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 definitions
-
findByCProductId_First
public static CPDefinition findByCProductId_First(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where CProductId = ?.- Parameters:
CProductId- the c product IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition
-
fetchByCProductId_First
public static CPDefinition fetchByCProductId_First(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where CProductId = ?.- Parameters:
CProductId- the c product IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition, or
nullif a matching cp definition could not be found
-
removeByCProductId
public static void removeByCProductId(long CProductId) Removes all the cp definitions where CProductId = ? from the database.- Parameters:
CProductId- the c product ID
-
countByCProductId
public static int countByCProductId(long CProductId) Returns the number of cp definitions where CProductId = ?.- Parameters:
CProductId- the c product ID- Returns:
- the number of matching cp definitions
-
findByCPTaxCategoryId
public static List<CPDefinition> findByCPTaxCategoryId(long CPTaxCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where CPTaxCategoryId = ?.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.CPDefinitionModelImpl.- Parameters:
CPTaxCategoryId- the cp tax category IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (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 definitions
-
findByCPTaxCategoryId_First
public static CPDefinition findByCPTaxCategoryId_First(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where CPTaxCategoryId = ?.- Parameters:
CPTaxCategoryId- the cp tax category IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition
-
fetchByCPTaxCategoryId_First
public static CPDefinition fetchByCPTaxCategoryId_First(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where CPTaxCategoryId = ?.- Parameters:
CPTaxCategoryId- the cp tax category IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition, or
nullif a matching cp definition could not be found
-
removeByCPTaxCategoryId
public static void removeByCPTaxCategoryId(long CPTaxCategoryId) Removes all the cp definitions where CPTaxCategoryId = ? from the database.- Parameters:
CPTaxCategoryId- the cp tax category ID
-
countByCPTaxCategoryId
public static int countByCPTaxCategoryId(long CPTaxCategoryId) Returns the number of cp definitions where CPTaxCategoryId = ?.- Parameters:
CPTaxCategoryId- the cp tax category ID- Returns:
- the number of matching cp definitions
-
findByG_SE
public static List<CPDefinition> findByG_SE(long groupId, boolean subscriptionEnabled, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where groupId = ? and subscriptionEnabled = ?.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.CPDefinitionModelImpl.- Parameters:
groupId- the group IDsubscriptionEnabled- the subscription enabledstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (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 definitions
-
findByG_SE_First
public static CPDefinition findByG_SE_First(long groupId, boolean subscriptionEnabled, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where groupId = ? and subscriptionEnabled = ?.- Parameters:
groupId- the group IDsubscriptionEnabled- the subscription enabledorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition
-
fetchByG_SE_First
public static CPDefinition fetchByG_SE_First(long groupId, boolean subscriptionEnabled, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where groupId = ? and subscriptionEnabled = ?.- Parameters:
groupId- the group IDsubscriptionEnabled- the subscription enabledorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition, or
nullif a matching cp definition could not be found
-
filterFindByG_SE
public static List<CPDefinition> filterFindByG_SE(long groupId, boolean subscriptionEnabled, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions that the user has permissions to view where groupId = ? and subscriptionEnabled = ?.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.CPDefinitionModelImpl.- Parameters:
groupId- the group IDsubscriptionEnabled- the subscription enabledstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definitions that the user has permission to view
-
removeByG_SE
public static void removeByG_SE(long groupId, boolean subscriptionEnabled) Removes all the cp definitions where groupId = ? and subscriptionEnabled = ? from the database.- Parameters:
groupId- the group IDsubscriptionEnabled- the subscription enabled
-
countByG_SE
public static int countByG_SE(long groupId, boolean subscriptionEnabled) Returns the number of cp definitions where groupId = ? and subscriptionEnabled = ?.- Parameters:
groupId- the group IDsubscriptionEnabled- the subscription enabled- Returns:
- the number of matching cp definitions
-
filterCountByG_SE
public static int filterCountByG_SE(long groupId, boolean subscriptionEnabled) Returns the number of cp definitions that the user has permission to view where groupId = ? and subscriptionEnabled = ?.- Parameters:
groupId- the group IDsubscriptionEnabled- the subscription enabled- Returns:
- the number of matching cp definitions that the user has permission to view
-
findByG_S
public static List<CPDefinition> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where groupId = ? and status = ?.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.CPDefinitionModelImpl.- Parameters:
groupId- the group IDstatus- the statusstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (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 definitions
-
findByG_S_First
public static CPDefinition findByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where groupId = ? and status = ?.- Parameters:
groupId- the group IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition
-
fetchByG_S_First
public static CPDefinition fetchByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where groupId = ? and status = ?.- Parameters:
groupId- the group IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition, or
nullif a matching cp definition could not be found
-
filterFindByG_S
public static List<CPDefinition> filterFindByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions that the user has permissions to view where groupId = ? and status = ?.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.CPDefinitionModelImpl.- Parameters:
groupId- the group IDstatus- the statusstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definitions that the user has permission to view
-
removeByG_S
public static void removeByG_S(long groupId, int status) Removes all the cp definitions where groupId = ? and status = ? from the database.- Parameters:
groupId- the group IDstatus- the status
-
countByG_S
public static int countByG_S(long groupId, int status) Returns the number of cp definitions where groupId = ? and status = ?.- Parameters:
groupId- the group IDstatus- the status- Returns:
- the number of matching cp definitions
-
filterCountByG_S
public static int filterCountByG_S(long groupId, int status) Returns the number of cp definitions that the user has permission to view where groupId = ? and status = ?.- Parameters:
groupId- the group IDstatus- the status- Returns:
- the number of matching cp definitions that the user has permission to view
-
findByC_V
public static CPDefinition findByC_V(long CProductId, int version) throws NoSuchCPDefinitionException Returns the cp definition where CProductId = ? and version = ? or throws aNoSuchCPDefinitionExceptionif it could not be found.- Parameters:
CProductId- the c product IDversion- the version- Returns:
- the matching cp definition
-
fetchByC_V
Returns the cp definition where CProductId = ? and version = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
CProductId- the c product IDversion- the versionuseFinderCache- whether to use the finder cache- Returns:
- the matching cp definition, or
nullif a matching cp definition could not be found
-
removeByC_V
public static CPDefinition removeByC_V(long CProductId, int version) throws NoSuchCPDefinitionException Removes the cp definition where CProductId = ? and version = ? from the database.- Parameters:
CProductId- the c product IDversion- the version- Returns:
- the cp definition that was removed
- Throws:
NoSuchCPDefinitionException
-
countByC_V
public static int countByC_V(long CProductId, int version) Returns the number of cp definitions where CProductId = ? and version = ?.- Parameters:
CProductId- the c product IDversion- the version- Returns:
- the number of matching cp definitions
-
findByC_S
public static List<CPDefinition> findByC_S(long CProductId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where CProductId = ? and status = ?.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.CPDefinitionModelImpl.- Parameters:
CProductId- the c product IDstatus- the statusstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (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 definitions
-
findByC_S_First
public static CPDefinition findByC_S_First(long CProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where CProductId = ? and status = ?.- Parameters:
CProductId- the c product IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition
-
fetchByC_S_First
public static CPDefinition fetchByC_S_First(long CProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where CProductId = ? and status = ?.- Parameters:
CProductId- the c product IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition, or
nullif a matching cp definition could not be found
-
removeByC_S
public static void removeByC_S(long CProductId, int status) Removes all the cp definitions where CProductId = ? and status = ? from the database.- Parameters:
CProductId- the c product IDstatus- the status
-
countByC_S
public static int countByC_S(long CProductId, int status) Returns the number of cp definitions where CProductId = ? and status = ?.- Parameters:
CProductId- the c product IDstatus- the status- Returns:
- the number of matching cp definitions
-
findByLtD_S
Returns all the cp definitions where displayDate < ? and status = ?.- Parameters:
displayDate- the display datestatus- the status- Returns:
- the matching cp definitions
-
findByLtD_S
Returns a range of all the cp definitions where displayDate < ? and status = ?.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.CPDefinitionModelImpl.- Parameters:
displayDate- the display datestatus- the statusstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions
-
findByLtD_S
public static List<CPDefinition> findByLtD_S(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where displayDate < ? and status = ?.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.CPDefinitionModelImpl.- Parameters:
displayDate- the display datestatus- the statusstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definitions
-
findByLtD_S
public static List<CPDefinition> findByLtD_S(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where displayDate < ? and status = ?.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.CPDefinitionModelImpl.- Parameters:
displayDate- the display datestatus- the statusstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (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 definitions
-
findByLtD_S_First
public static CPDefinition findByLtD_S_First(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where displayDate < ? and status = ?.- Parameters:
displayDate- the display datestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition
-
fetchByLtD_S_First
public static CPDefinition fetchByLtD_S_First(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where displayDate < ? and status = ?.- Parameters:
displayDate- the display datestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition, or
nullif a matching cp definition could not be found
-
removeByLtD_S
Removes all the cp definitions where displayDate < ? and status = ? from the database.- Parameters:
displayDate- the display datestatus- the status
-
countByLtD_S
Returns the number of cp definitions where displayDate < ? and status = ?.- Parameters:
displayDate- the display datestatus- the status- Returns:
- the number of matching cp definitions
-
create
Creates a new cp definition with the primary key. Does not add the cp definition to the database.- Parameters:
CPDefinitionId- the primary key for the new cp definition- Returns:
- the new cp definition
-
remove
Removes the cp definition with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
CPDefinitionId- the primary key of the cp definition- Returns:
- the cp definition that was removed
-
updateImpl
-
findByPrimaryKey
Returns the cp definition with the primary key or throws aNoSuchCPDefinitionExceptionif it could not be found.- Parameters:
CPDefinitionId- the primary key of the cp definition- Returns:
- the cp definition
-
fetchByPrimaryKey
Returns the cp definition with the primary key or returnsnullif it could not be found.- Parameters:
CPDefinitionId- the primary key of the cp definition- Returns:
- the cp definition, or
nullif a cp definition with the primary key could not be found
-
fetchByUUID_G
Returns the cp definition where uuid = ? and groupId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching cp definition, or
nullif a matching cp definition could not be found
-
fetchByC_V
Returns the cp definition where CProductId = ? and version = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
CProductId- the c product IDversion- the version- Returns:
- the matching cp definition, or
nullif a matching cp definition could not be found
-
findByUuid
Returns all the cp definitions where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching cp definitions
-
findByUuid
Returns a range of all the cp definitions 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.CPDefinitionModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions
-
findByUuid
public static List<CPDefinition> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions 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.CPDefinitionModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definitions
-
findByUuid_C
Returns all the cp definitions where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching cp definitions
-
findByUuid_C
Returns a range of all the cp definitions 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.CPDefinitionModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions
-
findByUuid_C
public static List<CPDefinition> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions 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.CPDefinitionModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definitions
-
findByGroupId
Returns all the cp definitions where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the matching cp definitions
-
findByGroupId
Returns a range of all the cp definitions where groupId = ?.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.CPDefinitionModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions
-
findByGroupId
public static List<CPDefinition> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where groupId = ?.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.CPDefinitionModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definitions
-
filterFindByGroupId
Returns all the cp definitions that the user has permission to view where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the matching cp definitions that the user has permission to view
-
filterFindByGroupId
Returns a range of all the cp definitions that the user has permission to view where groupId = ?.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.CPDefinitionModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions that the user has permission to view
-
findByCompanyId
Returns all the cp definitions where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching cp definitions
-
findByCompanyId
Returns a range of all the cp definitions 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.CPDefinitionModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions
-
findByCompanyId
public static List<CPDefinition> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions 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.CPDefinitionModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definitions
-
findByCProductId
Returns all the cp definitions where CProductId = ?.- Parameters:
CProductId- the c product ID- Returns:
- the matching cp definitions
-
findByCProductId
Returns a range of all the cp definitions where CProductId = ?.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.CPDefinitionModelImpl.- Parameters:
CProductId- the c product IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions
-
findByCProductId
public static List<CPDefinition> findByCProductId(long CProductId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where CProductId = ?.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.CPDefinitionModelImpl.- Parameters:
CProductId- the c product IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definitions
-
findByCPTaxCategoryId
Returns all the cp definitions where CPTaxCategoryId = ?.- Parameters:
CPTaxCategoryId- the cp tax category ID- Returns:
- the matching cp definitions
-
findByCPTaxCategoryId
Returns a range of all the cp definitions where CPTaxCategoryId = ?.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.CPDefinitionModelImpl.- Parameters:
CPTaxCategoryId- the cp tax category IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions
-
findByCPTaxCategoryId
public static List<CPDefinition> findByCPTaxCategoryId(long CPTaxCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where CPTaxCategoryId = ?.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.CPDefinitionModelImpl.- Parameters:
CPTaxCategoryId- the cp tax category IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definitions
-
findByG_SE
Returns all the cp definitions where groupId = ? and subscriptionEnabled = ?.- Parameters:
groupId- the group IDsubscriptionEnabled- the subscription enabled- Returns:
- the matching cp definitions
-
findByG_SE
public static List<CPDefinition> findByG_SE(long groupId, boolean subscriptionEnabled, int start, int end) Returns a range of all the cp definitions where groupId = ? and subscriptionEnabled = ?.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.CPDefinitionModelImpl.- Parameters:
groupId- the group IDsubscriptionEnabled- the subscription enabledstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions
-
findByG_SE
public static List<CPDefinition> findByG_SE(long groupId, boolean subscriptionEnabled, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where groupId = ? and subscriptionEnabled = ?.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.CPDefinitionModelImpl.- Parameters:
groupId- the group IDsubscriptionEnabled- the subscription enabledstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definitions
-
filterFindByG_SE
Returns all the cp definitions that the user has permission to view where groupId = ? and subscriptionEnabled = ?.- Parameters:
groupId- the group IDsubscriptionEnabled- the subscription enabled- Returns:
- the matching cp definitions that the user has permission to view
-
filterFindByG_SE
public static List<CPDefinition> filterFindByG_SE(long groupId, boolean subscriptionEnabled, int start, int end) Returns a range of all the cp definitions that the user has permission to view where groupId = ? and subscriptionEnabled = ?.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.CPDefinitionModelImpl.- Parameters:
groupId- the group IDsubscriptionEnabled- the subscription enabledstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions that the user has permission to view
-
findByG_S
Returns all the cp definitions where groupId = ? and status = ?.- Parameters:
groupId- the group IDstatus- the status- Returns:
- the matching cp definitions
-
findByG_S
Returns a range of all the cp definitions where groupId = ? and status = ?.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.CPDefinitionModelImpl.- Parameters:
groupId- the group IDstatus- the statusstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions
-
findByG_S
public static List<CPDefinition> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where groupId = ? and status = ?.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.CPDefinitionModelImpl.- Parameters:
groupId- the group IDstatus- the statusstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definitions
-
filterFindByG_S
Returns all the cp definitions that the user has permission to view where groupId = ? and status = ?.- Parameters:
groupId- the group IDstatus- the status- Returns:
- the matching cp definitions that the user has permission to view
-
filterFindByG_S
Returns a range of all the cp definitions that the user has permission to view where groupId = ? and status = ?.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.CPDefinitionModelImpl.- Parameters:
groupId- the group IDstatus- the statusstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions that the user has permission to view
-
findByC_S
Returns all the cp definitions where CProductId = ? and status = ?.- Parameters:
CProductId- the c product IDstatus- the status- Returns:
- the matching cp definitions
-
findByC_S
Returns a range of all the cp definitions where CProductId = ? and status = ?.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.CPDefinitionModelImpl.- Parameters:
CProductId- the c product IDstatus- the statusstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions
-
findByC_S
public static List<CPDefinition> findByC_S(long CProductId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where CProductId = ? and status = ?.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.CPDefinitionModelImpl.- Parameters:
CProductId- the c product IDstatus- the statusstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definitions
-
getPersistence
-
setPersistence
-