Class CPInstanceUtil
com.liferay.commerce.product.service.persistence.impl.CPInstancePersistenceImpl 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(CPInstance cpInstance) static voidcacheResult(List<CPInstance> cpInstances) static voidstatic voidclearCache(CPInstance cpInstance) static intcountByC_C(long CPDefinitionId, String CPInstanceUuid) Returns the number of cp instances where CPDefinitionId = ? and CPInstanceUuid = ?.static intcountByC_LtD_S(long CPDefinitionId, Date displayDate, int status) Returns the number of cp instances where CPDefinitionId = ? and displayDate < ? and status = ?.static intcountByC_S(long companyId, String sku) Returns the number of cp instances where companyId = ? and sku = ?.static intcountByC_ST(long CPDefinitionId, int status) Returns the number of cp instances where CPDefinitionId = ? and status = ?.static intcountByCompanyId(long companyId) Returns the number of cp instances where companyId = ?.static intcountByCPDefinitionId(long CPDefinitionId) Returns the number of cp instances where CPDefinitionId = ?.static intcountByCPDI_S(long CPDefinitionId, String sku) Returns the number of cp instances where CPDefinitionId = ? and sku = ?.static intcountByCPInstanceUuid(String CPInstanceUuid) Returns the number of cp instances where CPInstanceUuid = ?.static intcountByERC_C(String externalReferenceCode, long companyId) Returns the number of cp instances where externalReferenceCode = ? and companyId = ?.static intcountByG_ST(long groupId, int status) Returns the number of cp instances where groupId = ? and status = ?.static intcountByGroupId(long groupId) Returns the number of cp instances where groupId = ?.static intcountByLtD_S(Date displayDate, int status) Returns the number of cp instances where displayDate < ? and status = ?.static intcountByR_R_S(String replacementCPInstanceUuid, long replacementCProductId, int status) Returns the number of cp instances where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.static intcountByUuid(String uuid) Returns the number of cp instances where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of cp instances where uuid = ? and companyId = ?.static intcountByUUID_G(String uuid, long groupId) Returns the number of cp instances where uuid = ? and groupId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CPInstancecreate(long CPInstanceId) Creates a new cp instance with the primary key.static CPInstancefetchByC_C(long CPDefinitionId, String CPInstanceUuid) Returns the cp instance where CPDefinitionId = ? and CPInstanceUuid = ? or returnsnullif it could not be found.static CPInstancefetchByC_C(long CPDefinitionId, String CPInstanceUuid, boolean useFinderCache) Returns the cp instance where CPDefinitionId = ? and CPInstanceUuid = ? or returnsnullif it could not be found, optionally using the finder cache.static CPInstancefetchByC_LtD_S_First(long CPDefinitionId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where CPDefinitionId = ? and displayDate < ? and status = ?.static CPInstancefetchByC_S_First(long companyId, String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where companyId = ? and sku = ?.static CPInstancefetchByC_ST_First(long CPDefinitionId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where CPDefinitionId = ? and status = ?.static CPInstancefetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where companyId = ?.static CPInstancefetchByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where CPDefinitionId = ?.static CPInstancefetchByCPDI_S(long CPDefinitionId, String sku) Returns the cp instance where CPDefinitionId = ? and sku = ? or returnsnullif it could not be found.static CPInstancefetchByCPDI_S(long CPDefinitionId, String sku, boolean useFinderCache) Returns the cp instance where CPDefinitionId = ? and sku = ? or returnsnullif it could not be found, optionally using the finder cache.static CPInstancefetchByCPInstanceUuid_First(String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where CPInstanceUuid = ?.static CPInstancefetchByERC_C(String externalReferenceCode, long companyId) Returns the cp instance where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found.static CPInstancefetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the cp instance where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found, optionally using the finder cache.static CPInstancefetchByG_ST_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where groupId = ? and status = ?.static CPInstancefetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where groupId = ?.static CPInstancefetchByLtD_S_First(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where displayDate < ? and status = ?.static CPInstancefetchByPrimaryKey(long CPInstanceId) Returns the cp instance with the primary key or returnsnullif it could not be found.static Map<Serializable, CPInstance> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static CPInstancefetchByR_R_S_First(String replacementCPInstanceUuid, long replacementCProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.static CPInstancefetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where uuid = ? and companyId = ?.static CPInstancefetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where uuid = ?.static CPInstancefetchByUUID_G(String uuid, long groupId) Returns the cp instance where uuid = ? and groupId = ? or returnsnullif it could not be found.static CPInstancefetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the cp instance where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.static intfilterCountByG_ST(long groupId, int status) Returns the number of cp instances that the user has permission to view where groupId = ? and status = ?.static intfilterCountByGroupId(long groupId) Returns the number of cp instances that the user has permission to view where groupId = ?.static List<CPInstance> filterFindByG_ST(long groupId, int status) Returns all the cp instances that the user has permission to view where groupId = ? and status = ?.static List<CPInstance> filterFindByG_ST(long groupId, int status, int start, int end) Returns a range of all the cp instances that the user has permission to view where groupId = ? and status = ?.static List<CPInstance> filterFindByG_ST(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances that the user has permissions to view where groupId = ? and status = ?.static List<CPInstance> filterFindByGroupId(long groupId) Returns all the cp instances that the user has permission to view where groupId = ?.static List<CPInstance> filterFindByGroupId(long groupId, int start, int end) Returns a range of all the cp instances that the user has permission to view where groupId = ?.static List<CPInstance> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances that the user has permissions to view where groupId = ?.static CPInstanceReturns the cp instance where CPDefinitionId = ? and CPInstanceUuid = ? or throws aNoSuchCPInstanceExceptionif it could not be found.static List<CPInstance> findByC_LtD_S(long CPDefinitionId, Date displayDate, int status) Returns all the cp instances where CPDefinitionId = ? and displayDate < ? and status = ?.static List<CPInstance> findByC_LtD_S(long CPDefinitionId, Date displayDate, int status, int start, int end) Returns a range of all the cp instances where CPDefinitionId = ? and displayDate < ? and status = ?.static List<CPInstance> findByC_LtD_S(long CPDefinitionId, Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where CPDefinitionId = ? and displayDate < ? and status = ?.static List<CPInstance> findByC_LtD_S(long CPDefinitionId, Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where CPDefinitionId = ? and displayDate < ? and status = ?.static CPInstancefindByC_LtD_S_First(long CPDefinitionId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where CPDefinitionId = ? and displayDate < ? and status = ?.static List<CPInstance> Returns all the cp instances where companyId = ? and sku = ?.static List<CPInstance> Returns a range of all the cp instances where companyId = ? and sku = ?.static List<CPInstance> findByC_S(long companyId, String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where companyId = ? and sku = ?.static List<CPInstance> findByC_S(long companyId, String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where companyId = ? and sku = ?.static CPInstancefindByC_S_First(long companyId, String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where companyId = ? and sku = ?.static List<CPInstance> findByC_ST(long CPDefinitionId, int status) Returns all the cp instances where CPDefinitionId = ? and status = ?.static List<CPInstance> findByC_ST(long CPDefinitionId, int status, int start, int end) Returns a range of all the cp instances where CPDefinitionId = ? and status = ?.static List<CPInstance> findByC_ST(long CPDefinitionId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where CPDefinitionId = ? and status = ?.static List<CPInstance> findByC_ST(long CPDefinitionId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where CPDefinitionId = ? and status = ?.static CPInstancefindByC_ST_First(long CPDefinitionId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where CPDefinitionId = ? and status = ?.static List<CPInstance> findByCompanyId(long companyId) Returns all the cp instances where companyId = ?.static List<CPInstance> findByCompanyId(long companyId, int start, int end) Returns a range of all the cp instances where companyId = ?.static List<CPInstance> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where companyId = ?.static List<CPInstance> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where companyId = ?.static CPInstancefindByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where companyId = ?.static List<CPInstance> findByCPDefinitionId(long CPDefinitionId) Returns all the cp instances where CPDefinitionId = ?.static List<CPInstance> findByCPDefinitionId(long CPDefinitionId, int start, int end) Returns a range of all the cp instances where CPDefinitionId = ?.static List<CPInstance> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where CPDefinitionId = ?.static List<CPInstance> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where CPDefinitionId = ?.static CPInstancefindByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where CPDefinitionId = ?.static CPInstancefindByCPDI_S(long CPDefinitionId, String sku) Returns the cp instance where CPDefinitionId = ? and sku = ? or throws aNoSuchCPInstanceExceptionif it could not be found.static List<CPInstance> findByCPInstanceUuid(String CPInstanceUuid) Returns all the cp instances where CPInstanceUuid = ?.static List<CPInstance> findByCPInstanceUuid(String CPInstanceUuid, int start, int end) Returns a range of all the cp instances where CPInstanceUuid = ?.static List<CPInstance> findByCPInstanceUuid(String CPInstanceUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where CPInstanceUuid = ?.static List<CPInstance> findByCPInstanceUuid(String CPInstanceUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where CPInstanceUuid = ?.static CPInstancefindByCPInstanceUuid_First(String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where CPInstanceUuid = ?.static CPInstancefindByERC_C(String externalReferenceCode, long companyId) Returns the cp instance where externalReferenceCode = ? and companyId = ? or throws aNoSuchCPInstanceExceptionif it could not be found.static List<CPInstance> findByG_ST(long groupId, int status) Returns all the cp instances where groupId = ? and status = ?.static List<CPInstance> findByG_ST(long groupId, int status, int start, int end) Returns a range of all the cp instances where groupId = ? and status = ?.static List<CPInstance> findByG_ST(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where groupId = ? and status = ?.static List<CPInstance> findByG_ST(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where groupId = ? and status = ?.static CPInstancefindByG_ST_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where groupId = ? and status = ?.static List<CPInstance> findByGroupId(long groupId) Returns all the cp instances where groupId = ?.static List<CPInstance> findByGroupId(long groupId, int start, int end) Returns a range of all the cp instances where groupId = ?.static List<CPInstance> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where groupId = ?.static List<CPInstance> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where groupId = ?.static CPInstancefindByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where groupId = ?.static List<CPInstance> findByLtD_S(Date displayDate, int status) Returns all the cp instances where displayDate < ? and status = ?.static List<CPInstance> findByLtD_S(Date displayDate, int status, int start, int end) Returns a range of all the cp instances where displayDate < ? and status = ?.static List<CPInstance> findByLtD_S(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where displayDate < ? and status = ?.static List<CPInstance> findByLtD_S(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where displayDate < ? and status = ?.static CPInstancefindByLtD_S_First(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where displayDate < ? and status = ?.static CPInstancefindByPrimaryKey(long CPInstanceId) Returns the cp instance with the primary key or throws aNoSuchCPInstanceExceptionif it could not be found.static List<CPInstance> findByR_R_S(String replacementCPInstanceUuid, long replacementCProductId, int status) Returns all the cp instances where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.static List<CPInstance> findByR_R_S(String replacementCPInstanceUuid, long replacementCProductId, int status, int start, int end) Returns a range of all the cp instances where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.static List<CPInstance> findByR_R_S(String replacementCPInstanceUuid, long replacementCProductId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.static List<CPInstance> findByR_R_S(String replacementCPInstanceUuid, long replacementCProductId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.static CPInstancefindByR_R_S_First(String replacementCPInstanceUuid, long replacementCProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.static List<CPInstance> findByUuid(String uuid) Returns all the cp instances where uuid = ?.static List<CPInstance> findByUuid(String uuid, int start, int end) Returns a range of all the cp instances where uuid = ?.static List<CPInstance> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where uuid = ?.static List<CPInstance> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where uuid = ?.static List<CPInstance> findByUuid_C(String uuid, long companyId) Returns all the cp instances where uuid = ? and companyId = ?.static List<CPInstance> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the cp instances where uuid = ? and companyId = ?.static List<CPInstance> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where uuid = ? and companyId = ?.static List<CPInstance> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where uuid = ? and companyId = ?.static CPInstancefindByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where uuid = ? and companyId = ?.static CPInstancefindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where uuid = ?.static CPInstancefindByUUID_G(String uuid, long groupId) Returns the cp instance where uuid = ? and groupId = ? or throws aNoSuchCPInstanceExceptionif it could not be found.static List<CPInstance> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CPInstance> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CPInstance> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) static CPInstancePersistencestatic CPInstanceremove(long CPInstanceId) Removes the cp instance with the primary key from the database.static CPInstanceremoveByC_C(long CPDefinitionId, String CPInstanceUuid) Removes the cp instance where CPDefinitionId = ? and CPInstanceUuid = ? from the database.static voidremoveByC_LtD_S(long CPDefinitionId, Date displayDate, int status) Removes all the cp instances where CPDefinitionId = ? and displayDate < ? and status = ? from the database.static voidremoveByC_S(long companyId, String sku) Removes all the cp instances where companyId = ? and sku = ? from the database.static voidremoveByC_ST(long CPDefinitionId, int status) Removes all the cp instances where CPDefinitionId = ? and status = ? from the database.static voidremoveByCompanyId(long companyId) Removes all the cp instances where companyId = ? from the database.static voidremoveByCPDefinitionId(long CPDefinitionId) Removes all the cp instances where CPDefinitionId = ? from the database.static CPInstanceremoveByCPDI_S(long CPDefinitionId, String sku) Removes the cp instance where CPDefinitionId = ? and sku = ? from the database.static voidremoveByCPInstanceUuid(String CPInstanceUuid) Removes all the cp instances where CPInstanceUuid = ? from the database.static CPInstanceremoveByERC_C(String externalReferenceCode, long companyId) Removes the cp instance where externalReferenceCode = ? and companyId = ? from the database.static voidremoveByG_ST(long groupId, int status) Removes all the cp instances where groupId = ? and status = ? from the database.static voidremoveByGroupId(long groupId) Removes all the cp instances where groupId = ? from the database.static voidremoveByLtD_S(Date displayDate, int status) Removes all the cp instances where displayDate < ? and status = ? from the database.static voidremoveByR_R_S(String replacementCPInstanceUuid, long replacementCProductId, int status) Removes all the cp instances where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ? from the database.static voidremoveByUuid(String uuid) Removes all the cp instances where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the cp instances where uuid = ? and companyId = ? from the database.static CPInstanceremoveByUUID_G(String uuid, long groupId) Removes the cp instance where uuid = ? and groupId = ? from the database.static voidsetPersistence(CPInstancePersistence persistence) static CPInstanceupdate(CPInstance cpInstance) static CPInstanceupdate(CPInstance cpInstance, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CPInstanceupdateImpl(CPInstance cpInstance)
-
Constructor Details
-
CPInstanceUtil
public CPInstanceUtil()
-
-
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<CPInstance> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<CPInstance> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<CPInstance> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) - See Also:
-
update
- See Also:
-
update
public static CPInstance update(CPInstance cpInstance, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByUuid
public static List<CPInstance> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances 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.CPInstanceModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (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 instances
-
findByUuid_First
public static CPInstance findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException Returns the first cp instance in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance
-
fetchByUuid_First
public static CPInstance fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance, or
nullif a matching cp instance could not be found
-
removeByUuid
Removes all the cp instances where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of cp instances where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching cp instances
-
findByUUID_G
Returns the cp instance where uuid = ? and groupId = ? or throws aNoSuchCPInstanceExceptionif it could not be found.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching cp instance
-
fetchByUUID_G
Returns the cp instance 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 instance, or
nullif a matching cp instance could not be found
-
removeByUUID_G
Removes the cp instance where uuid = ? and groupId = ? from the database.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the cp instance that was removed
- Throws:
NoSuchCPInstanceException
-
countByUUID_G
Returns the number of cp instances where uuid = ? and groupId = ?.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the number of matching cp instances
-
findByUuid_C
public static List<CPInstance> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances 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.CPInstanceModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (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 instances
-
findByUuid_C_First
public static CPInstance findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException Returns the first cp instance 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 instance
-
fetchByUuid_C_First
public static CPInstance fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance 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 instance, or
nullif a matching cp instance could not be found
-
removeByUuid_C
Removes all the cp instances where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of cp instances where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching cp instances
-
findByGroupId
public static List<CPInstance> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances 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.CPInstanceModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (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 instances
-
findByGroupId_First
public static CPInstance findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException Returns the first cp instance in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance
-
fetchByGroupId_First
public static CPInstance fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance, or
nullif a matching cp instance could not be found
-
filterFindByGroupId
public static List<CPInstance> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances 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.CPInstanceModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp instances that the user has permission to view
-
removeByGroupId
public static void removeByGroupId(long groupId) Removes all the cp instances where groupId = ? from the database.- Parameters:
groupId- the group ID
-
countByGroupId
public static int countByGroupId(long groupId) Returns the number of cp instances where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the number of matching cp instances
-
filterCountByGroupId
public static int filterCountByGroupId(long groupId) Returns the number of cp instances that the user has permission to view where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the number of matching cp instances that the user has permission to view
-
findByCompanyId
public static List<CPInstance> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances 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.CPInstanceModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (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 instances
-
findByCompanyId_First
public static CPInstance findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException Returns the first cp instance in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance
-
fetchByCompanyId_First
public static CPInstance fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance, or
nullif a matching cp instance could not be found
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the cp instances where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of cp instances where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching cp instances
-
findByCPDefinitionId
public static List<CPInstance> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where CPDefinitionId = ?.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.CPInstanceModelImpl.- Parameters:
CPDefinitionId- the cp definition IDstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (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 instances
-
findByCPDefinitionId_First
public static CPInstance findByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException Returns the first cp instance in the ordered set where CPDefinitionId = ?.- Parameters:
CPDefinitionId- the cp definition IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance
-
fetchByCPDefinitionId_First
public static CPInstance fetchByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where CPDefinitionId = ?.- Parameters:
CPDefinitionId- the cp definition IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance, or
nullif a matching cp instance could not be found
-
removeByCPDefinitionId
public static void removeByCPDefinitionId(long CPDefinitionId) Removes all the cp instances where CPDefinitionId = ? from the database.- Parameters:
CPDefinitionId- the cp definition ID
-
countByCPDefinitionId
public static int countByCPDefinitionId(long CPDefinitionId) Returns the number of cp instances where CPDefinitionId = ?.- Parameters:
CPDefinitionId- the cp definition ID- Returns:
- the number of matching cp instances
-
findByCPInstanceUuid
public static List<CPInstance> findByCPInstanceUuid(String CPInstanceUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where CPInstanceUuid = ?.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.CPInstanceModelImpl.- Parameters:
CPInstanceUuid- the cp instance uuidstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (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 instances
-
findByCPInstanceUuid_First
public static CPInstance findByCPInstanceUuid_First(String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException Returns the first cp instance in the ordered set where CPInstanceUuid = ?.- Parameters:
CPInstanceUuid- the cp instance uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance
-
fetchByCPInstanceUuid_First
public static CPInstance fetchByCPInstanceUuid_First(String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where CPInstanceUuid = ?.- Parameters:
CPInstanceUuid- the cp instance uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance, or
nullif a matching cp instance could not be found
-
removeByCPInstanceUuid
Removes all the cp instances where CPInstanceUuid = ? from the database.- Parameters:
CPInstanceUuid- the cp instance uuid
-
countByCPInstanceUuid
Returns the number of cp instances where CPInstanceUuid = ?.- Parameters:
CPInstanceUuid- the cp instance uuid- Returns:
- the number of matching cp instances
-
findByG_ST
public static List<CPInstance> findByG_ST(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances 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.CPInstanceModelImpl.- Parameters:
groupId- the group IDstatus- the statusstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (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 instances
-
findByG_ST_First
public static CPInstance findByG_ST_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException Returns the first cp instance 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 instance
-
fetchByG_ST_First
public static CPInstance fetchByG_ST_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance 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 instance, or
nullif a matching cp instance could not be found
-
filterFindByG_ST
public static List<CPInstance> filterFindByG_ST(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances 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.CPInstanceModelImpl.- Parameters:
groupId- the group IDstatus- the statusstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp instances that the user has permission to view
-
removeByG_ST
public static void removeByG_ST(long groupId, int status) Removes all the cp instances where groupId = ? and status = ? from the database.- Parameters:
groupId- the group IDstatus- the status
-
countByG_ST
public static int countByG_ST(long groupId, int status) Returns the number of cp instances where groupId = ? and status = ?.- Parameters:
groupId- the group IDstatus- the status- Returns:
- the number of matching cp instances
-
filterCountByG_ST
public static int filterCountByG_ST(long groupId, int status) Returns the number of cp instances that the user has permission to view where groupId = ? and status = ?.- Parameters:
groupId- the group IDstatus- the status- Returns:
- the number of matching cp instances that the user has permission to view
-
findByC_S
public static List<CPInstance> findByC_S(long companyId, String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where companyId = ? and sku = ?.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.CPInstanceModelImpl.- Parameters:
companyId- the company IDsku- the skustart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (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 instances
-
findByC_S_First
public static CPInstance findByC_S_First(long companyId, String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException Returns the first cp instance in the ordered set where companyId = ? and sku = ?.- Parameters:
companyId- the company IDsku- the skuorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance
-
fetchByC_S_First
public static CPInstance fetchByC_S_First(long companyId, String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where companyId = ? and sku = ?.- Parameters:
companyId- the company IDsku- the skuorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance, or
nullif a matching cp instance could not be found
-
removeByC_S
Removes all the cp instances where companyId = ? and sku = ? from the database.- Parameters:
companyId- the company IDsku- the sku
-
countByC_S
Returns the number of cp instances where companyId = ? and sku = ?.- Parameters:
companyId- the company IDsku- the sku- Returns:
- the number of matching cp instances
-
findByC_C
public static CPInstance findByC_C(long CPDefinitionId, String CPInstanceUuid) throws NoSuchCPInstanceException Returns the cp instance where CPDefinitionId = ? and CPInstanceUuid = ? or throws aNoSuchCPInstanceExceptionif it could not be found.- Parameters:
CPDefinitionId- the cp definition IDCPInstanceUuid- the cp instance uuid- Returns:
- the matching cp instance
-
fetchByC_C
public static CPInstance fetchByC_C(long CPDefinitionId, String CPInstanceUuid, boolean useFinderCache) Returns the cp instance where CPDefinitionId = ? and CPInstanceUuid = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
CPDefinitionId- the cp definition IDCPInstanceUuid- the cp instance uuiduseFinderCache- whether to use the finder cache- Returns:
- the matching cp instance, or
nullif a matching cp instance could not be found
-
removeByC_C
public static CPInstance removeByC_C(long CPDefinitionId, String CPInstanceUuid) throws NoSuchCPInstanceException Removes the cp instance where CPDefinitionId = ? and CPInstanceUuid = ? from the database.- Parameters:
CPDefinitionId- the cp definition IDCPInstanceUuid- the cp instance uuid- Returns:
- the cp instance that was removed
- Throws:
NoSuchCPInstanceException
-
countByC_C
Returns the number of cp instances where CPDefinitionId = ? and CPInstanceUuid = ?.- Parameters:
CPDefinitionId- the cp definition IDCPInstanceUuid- the cp instance uuid- Returns:
- the number of matching cp instances
-
findByCPDI_S
public static CPInstance findByCPDI_S(long CPDefinitionId, String sku) throws NoSuchCPInstanceException Returns the cp instance where CPDefinitionId = ? and sku = ? or throws aNoSuchCPInstanceExceptionif it could not be found.- Parameters:
CPDefinitionId- the cp definition IDsku- the sku- Returns:
- the matching cp instance
-
fetchByCPDI_S
Returns the cp instance where CPDefinitionId = ? and sku = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
CPDefinitionId- the cp definition IDsku- the skuuseFinderCache- whether to use the finder cache- Returns:
- the matching cp instance, or
nullif a matching cp instance could not be found
-
removeByCPDI_S
public static CPInstance removeByCPDI_S(long CPDefinitionId, String sku) throws NoSuchCPInstanceException Removes the cp instance where CPDefinitionId = ? and sku = ? from the database.- Parameters:
CPDefinitionId- the cp definition IDsku- the sku- Returns:
- the cp instance that was removed
- Throws:
NoSuchCPInstanceException
-
countByCPDI_S
Returns the number of cp instances where CPDefinitionId = ? and sku = ?.- Parameters:
CPDefinitionId- the cp definition IDsku- the sku- Returns:
- the number of matching cp instances
-
findByC_ST
public static List<CPInstance> findByC_ST(long CPDefinitionId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where CPDefinitionId = ? 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.CPInstanceModelImpl.- Parameters:
CPDefinitionId- the cp definition IDstatus- the statusstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (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 instances
-
findByC_ST_First
public static CPInstance findByC_ST_First(long CPDefinitionId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException Returns the first cp instance in the ordered set where CPDefinitionId = ? and status = ?.- Parameters:
CPDefinitionId- the cp definition IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance
-
fetchByC_ST_First
public static CPInstance fetchByC_ST_First(long CPDefinitionId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where CPDefinitionId = ? and status = ?.- Parameters:
CPDefinitionId- the cp definition IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance, or
nullif a matching cp instance could not be found
-
removeByC_ST
public static void removeByC_ST(long CPDefinitionId, int status) Removes all the cp instances where CPDefinitionId = ? and status = ? from the database.- Parameters:
CPDefinitionId- the cp definition IDstatus- the status
-
countByC_ST
public static int countByC_ST(long CPDefinitionId, int status) Returns the number of cp instances where CPDefinitionId = ? and status = ?.- Parameters:
CPDefinitionId- the cp definition IDstatus- the status- Returns:
- the number of matching cp instances
-
findByLtD_S
Returns all the cp instances where displayDate < ? and status = ?.- Parameters:
displayDate- the display datestatus- the status- Returns:
- the matching cp instances
-
findByLtD_S
Returns a range of all the cp instances 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.CPInstanceModelImpl.- Parameters:
displayDate- the display datestatus- the statusstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances
-
findByLtD_S
public static List<CPInstance> findByLtD_S(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances 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.CPInstanceModelImpl.- Parameters:
displayDate- the display datestatus- the statusstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp instances
-
findByLtD_S
public static List<CPInstance> findByLtD_S(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances 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.CPInstanceModelImpl.- Parameters:
displayDate- the display datestatus- the statusstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (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 instances
-
findByLtD_S_First
public static CPInstance findByLtD_S_First(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException Returns the first cp instance 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 instance
-
fetchByLtD_S_First
public static CPInstance fetchByLtD_S_First(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance 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 instance, or
nullif a matching cp instance could not be found
-
removeByLtD_S
Removes all the cp instances where displayDate < ? and status = ? from the database.- Parameters:
displayDate- the display datestatus- the status
-
countByLtD_S
Returns the number of cp instances where displayDate < ? and status = ?.- Parameters:
displayDate- the display datestatus- the status- Returns:
- the number of matching cp instances
-
findByC_LtD_S
Returns all the cp instances where CPDefinitionId = ? and displayDate < ? and status = ?.- Parameters:
CPDefinitionId- the cp definition IDdisplayDate- the display datestatus- the status- Returns:
- the matching cp instances
-
findByC_LtD_S
public static List<CPInstance> findByC_LtD_S(long CPDefinitionId, Date displayDate, int status, int start, int end) Returns a range of all the cp instances where CPDefinitionId = ? and 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.CPInstanceModelImpl.- Parameters:
CPDefinitionId- the cp definition IDdisplayDate- the display datestatus- the statusstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances
-
findByC_LtD_S
public static List<CPInstance> findByC_LtD_S(long CPDefinitionId, Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where CPDefinitionId = ? and 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.CPInstanceModelImpl.- Parameters:
CPDefinitionId- the cp definition IDdisplayDate- the display datestatus- the statusstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp instances
-
findByC_LtD_S
public static List<CPInstance> findByC_LtD_S(long CPDefinitionId, Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where CPDefinitionId = ? and 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.CPInstanceModelImpl.- Parameters:
CPDefinitionId- the cp definition IDdisplayDate- the display datestatus- the statusstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (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 instances
-
findByC_LtD_S_First
public static CPInstance findByC_LtD_S_First(long CPDefinitionId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException Returns the first cp instance in the ordered set where CPDefinitionId = ? and displayDate < ? and status = ?.- Parameters:
CPDefinitionId- the cp definition IDdisplayDate- the display datestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance
-
fetchByC_LtD_S_First
public static CPInstance fetchByC_LtD_S_First(long CPDefinitionId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where CPDefinitionId = ? and displayDate < ? and status = ?.- Parameters:
CPDefinitionId- the cp definition IDdisplayDate- the display datestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance, or
nullif a matching cp instance could not be found
-
removeByC_LtD_S
Removes all the cp instances where CPDefinitionId = ? and displayDate < ? and status = ? from the database.- Parameters:
CPDefinitionId- the cp definition IDdisplayDate- the display datestatus- the status
-
countByC_LtD_S
Returns the number of cp instances where CPDefinitionId = ? and displayDate < ? and status = ?.- Parameters:
CPDefinitionId- the cp definition IDdisplayDate- the display datestatus- the status- Returns:
- the number of matching cp instances
-
findByR_R_S
public static List<CPInstance> findByR_R_S(String replacementCPInstanceUuid, long replacementCProductId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where replacementCPInstanceUuid = ? and replacementCProductId = ? 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.CPInstanceModelImpl.- Parameters:
replacementCPInstanceUuid- the replacement cp instance uuidreplacementCProductId- the replacement c product IDstatus- the statusstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (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 instances
-
findByR_R_S_First
public static CPInstance findByR_R_S_First(String replacementCPInstanceUuid, long replacementCProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException Returns the first cp instance in the ordered set where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.- Parameters:
replacementCPInstanceUuid- the replacement cp instance uuidreplacementCProductId- the replacement c product IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance
-
fetchByR_R_S_First
public static CPInstance fetchByR_R_S_First(String replacementCPInstanceUuid, long replacementCProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.- Parameters:
replacementCPInstanceUuid- the replacement cp instance uuidreplacementCProductId- the replacement c product IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp instance, or
nullif a matching cp instance could not be found
-
removeByR_R_S
public static void removeByR_R_S(String replacementCPInstanceUuid, long replacementCProductId, int status) Removes all the cp instances where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ? from the database.- Parameters:
replacementCPInstanceUuid- the replacement cp instance uuidreplacementCProductId- the replacement c product IDstatus- the status
-
countByR_R_S
public static int countByR_R_S(String replacementCPInstanceUuid, long replacementCProductId, int status) Returns the number of cp instances where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.- Parameters:
replacementCPInstanceUuid- the replacement cp instance uuidreplacementCProductId- the replacement c product IDstatus- the status- Returns:
- the number of matching cp instances
-
findByERC_C
public static CPInstance findByERC_C(String externalReferenceCode, long companyId) throws NoSuchCPInstanceException Returns the cp instance where externalReferenceCode = ? and companyId = ? or throws aNoSuchCPInstanceExceptionif it could not be found.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the matching cp instance
-
fetchByERC_C
public static CPInstance fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the cp instance 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 instance, or
nullif a matching cp instance could not be found
-
removeByERC_C
public static CPInstance removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchCPInstanceException Removes the cp instance where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the cp instance that was removed
- Throws:
NoSuchCPInstanceException
-
countByERC_C
Returns the number of cp instances where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the number of matching cp instances
-
create
Creates a new cp instance with the primary key. Does not add the cp instance to the database.- Parameters:
CPInstanceId- the primary key for the new cp instance- Returns:
- the new cp instance
-
remove
Removes the cp instance with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
CPInstanceId- the primary key of the cp instance- Returns:
- the cp instance that was removed
-
updateImpl
-
findByPrimaryKey
Returns the cp instance with the primary key or throws aNoSuchCPInstanceExceptionif it could not be found.- Parameters:
CPInstanceId- the primary key of the cp instance- Returns:
- the cp instance
-
fetchByPrimaryKey
Returns the cp instance with the primary key or returnsnullif it could not be found.- Parameters:
CPInstanceId- the primary key of the cp instance- Returns:
- the cp instance, or
nullif a cp instance with the primary key could not be found
-
fetchByUUID_G
Returns the cp instance 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 instance, or
nullif a matching cp instance could not be found
-
fetchByC_C
Returns the cp instance where CPDefinitionId = ? and CPInstanceUuid = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
CPDefinitionId- the cp definition IDCPInstanceUuid- the cp instance uuid- Returns:
- the matching cp instance, or
nullif a matching cp instance could not be found
-
fetchByCPDI_S
Returns the cp instance where CPDefinitionId = ? and sku = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
CPDefinitionId- the cp definition IDsku- the sku- Returns:
- the matching cp instance, or
nullif a matching cp instance could not be found
-
fetchByERC_C
Returns the cp instance 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 instance, or
nullif a matching cp instance could not be found
-
findByUuid
Returns all the cp instances where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching cp instances
-
findByUuid
Returns a range of all the cp instances 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.CPInstanceModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances
-
findByUuid
public static List<CPInstance> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances 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.CPInstanceModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp instances
-
findByUuid_C
Returns all the cp instances where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching cp instances
-
findByUuid_C
Returns a range of all the cp instances 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.CPInstanceModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances
-
findByUuid_C
public static List<CPInstance> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances 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.CPInstanceModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp instances
-
findByGroupId
Returns all the cp instances where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the matching cp instances
-
findByGroupId
Returns a range of all the cp instances 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.CPInstanceModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances
-
findByGroupId
public static List<CPInstance> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances 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.CPInstanceModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp instances
-
filterFindByGroupId
Returns all the cp instances that the user has permission to view where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the matching cp instances that the user has permission to view
-
filterFindByGroupId
Returns a range of all the cp instances 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.CPInstanceModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances that the user has permission to view
-
findByCompanyId
Returns all the cp instances where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching cp instances
-
findByCompanyId
Returns a range of all the cp instances 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.CPInstanceModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances
-
findByCompanyId
public static List<CPInstance> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances 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.CPInstanceModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp instances
-
findByCPDefinitionId
Returns all the cp instances where CPDefinitionId = ?.- Parameters:
CPDefinitionId- the cp definition ID- Returns:
- the matching cp instances
-
findByCPDefinitionId
Returns a range of all the cp instances where CPDefinitionId = ?.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.CPInstanceModelImpl.- Parameters:
CPDefinitionId- the cp definition IDstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances
-
findByCPDefinitionId
public static List<CPInstance> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where CPDefinitionId = ?.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.CPInstanceModelImpl.- Parameters:
CPDefinitionId- the cp definition IDstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp instances
-
findByCPInstanceUuid
Returns all the cp instances where CPInstanceUuid = ?.- Parameters:
CPInstanceUuid- the cp instance uuid- Returns:
- the matching cp instances
-
findByCPInstanceUuid
Returns a range of all the cp instances where CPInstanceUuid = ?.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.CPInstanceModelImpl.- Parameters:
CPInstanceUuid- the cp instance uuidstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances
-
findByCPInstanceUuid
public static List<CPInstance> findByCPInstanceUuid(String CPInstanceUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where CPInstanceUuid = ?.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.CPInstanceModelImpl.- Parameters:
CPInstanceUuid- the cp instance uuidstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp instances
-
findByG_ST
Returns all the cp instances where groupId = ? and status = ?.- Parameters:
groupId- the group IDstatus- the status- Returns:
- the matching cp instances
-
findByG_ST
Returns a range of all the cp instances 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.CPInstanceModelImpl.- Parameters:
groupId- the group IDstatus- the statusstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances
-
findByG_ST
public static List<CPInstance> findByG_ST(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances 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.CPInstanceModelImpl.- Parameters:
groupId- the group IDstatus- the statusstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp instances
-
filterFindByG_ST
Returns all the cp instances that the user has permission to view where groupId = ? and status = ?.- Parameters:
groupId- the group IDstatus- the status- Returns:
- the matching cp instances that the user has permission to view
-
filterFindByG_ST
Returns a range of all the cp instances 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.CPInstanceModelImpl.- Parameters:
groupId- the group IDstatus- the statusstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances that the user has permission to view
-
findByC_S
Returns all the cp instances where companyId = ? and sku = ?.- Parameters:
companyId- the company IDsku- the sku- Returns:
- the matching cp instances
-
findByC_S
Returns a range of all the cp instances where companyId = ? and sku = ?.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.CPInstanceModelImpl.- Parameters:
companyId- the company IDsku- the skustart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances
-
findByC_S
public static List<CPInstance> findByC_S(long companyId, String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where companyId = ? and sku = ?.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.CPInstanceModelImpl.- Parameters:
companyId- the company IDsku- the skustart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp instances
-
findByC_ST
Returns all the cp instances where CPDefinitionId = ? and status = ?.- Parameters:
CPDefinitionId- the cp definition IDstatus- the status- Returns:
- the matching cp instances
-
findByC_ST
Returns a range of all the cp instances where CPDefinitionId = ? 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.CPInstanceModelImpl.- Parameters:
CPDefinitionId- the cp definition IDstatus- the statusstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances
-
findByC_ST
public static List<CPInstance> findByC_ST(long CPDefinitionId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where CPDefinitionId = ? 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.CPInstanceModelImpl.- Parameters:
CPDefinitionId- the cp definition IDstatus- the statusstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp instances
-
findByR_R_S
public static List<CPInstance> findByR_R_S(String replacementCPInstanceUuid, long replacementCProductId, int status) Returns all the cp instances where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.- Parameters:
replacementCPInstanceUuid- the replacement cp instance uuidreplacementCProductId- the replacement c product IDstatus- the status- Returns:
- the matching cp instances
-
findByR_R_S
public static List<CPInstance> findByR_R_S(String replacementCPInstanceUuid, long replacementCProductId, int status, int start, int end) Returns a range of all the cp instances where replacementCPInstanceUuid = ? and replacementCProductId = ? 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.CPInstanceModelImpl.- Parameters:
replacementCPInstanceUuid- the replacement cp instance uuidreplacementCProductId- the replacement c product IDstatus- the statusstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances
-
findByR_R_S
public static List<CPInstance> findByR_R_S(String replacementCPInstanceUuid, long replacementCProductId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where replacementCPInstanceUuid = ? and replacementCProductId = ? 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.CPInstanceModelImpl.- Parameters:
replacementCPInstanceUuid- the replacement cp instance uuidreplacementCProductId- the replacement c product IDstatus- the statusstart- the lower bound of the range of cp instancesend- the upper bound of the range of cp instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp instances
-
getPersistence
-
setPersistence
-