Class CPInstanceUtil

java.lang.Object
com.liferay.commerce.product.service.persistence.CPInstanceUtil

public class CPInstanceUtil extends Object
The persistence utility for the cp instance service. This utility wraps 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    cacheResult(CPInstance cpInstance)
    Caches the cp instance in the entity cache if it is enabled.
    static void
    cacheResult(List<CPInstance> cpInstances)
    Caches the cp instances in the entity cache if it is enabled.
    static void
     
    static void
    clearCache(CPInstance cpInstance)
     
    static int
    Returns the number of cp instances.
    static int
    countByC_C(long CPDefinitionId, String CPInstanceUuid)
    Returns the number of cp instances where CPDefinitionId = ? and CPInstanceUuid = ?.
    static int
    countByC_LtD_S(long CPDefinitionId, Date displayDate, int status)
    Returns the number of cp instances where CPDefinitionId = ? and displayDate < ? and status = ?.
    static int
    countByC_S(long companyId, String sku)
    Returns the number of cp instances where companyId = ? and sku = ?.
    static int
    countByC_ST(long CPDefinitionId, int status)
    Returns the number of cp instances where CPDefinitionId = ? and status = ?.
    static int
    countByCompanyId(long companyId)
    Returns the number of cp instances where companyId = ?.
    static int
    countByCPDefinitionId(long CPDefinitionId)
    Returns the number of cp instances where CPDefinitionId = ?.
    static int
    countByCPDI_S(long CPDefinitionId, String sku)
    Returns the number of cp instances where CPDefinitionId = ? and sku = ?.
    static int
    countByCPInstanceUuid(String CPInstanceUuid)
    Returns the number of cp instances where CPInstanceUuid = ?.
    static int
    countByERC_C(String externalReferenceCode, long companyId)
    Returns the number of cp instances where externalReferenceCode = ? and companyId = ?.
    static int
    countByG_ST(long groupId, int status)
    Returns the number of cp instances where groupId = ? and status = ?.
    static int
    countByGroupId(long groupId)
    Returns the number of cp instances where groupId = ?.
    static int
    countByLtD_S(Date displayDate, int status)
    Returns the number of cp instances where displayDate < ? and status = ?.
    static int
    countByR_R_S(String replacementCPInstanceUuid, long replacementCProductId, int status)
    Returns the number of cp instances where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.
    static int
    Returns the number of cp instances where uuid = ?.
    static int
    countByUuid_C(String uuid, long companyId)
    Returns the number of cp instances where uuid = ? and companyId = ?.
    static int
    countByUUID_G(String uuid, long groupId)
    Returns the number of cp instances where uuid = ? and groupId = ?.
    static long
    countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    static CPInstance
    create(long CPInstanceId)
    Creates a new cp instance with the primary key.
    static CPInstance
    fetchByC_C(long CPDefinitionId, String CPInstanceUuid)
    Returns the cp instance where CPDefinitionId = ? and CPInstanceUuid = ? or returns null if it could not be found.
    static CPInstance
    fetchByC_C(long CPDefinitionId, String CPInstanceUuid, boolean useFinderCache)
    Returns the cp instance where CPDefinitionId = ? and CPInstanceUuid = ? or returns null if it could not be found, optionally using the finder cache.
    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 = ?.
    static CPInstance
    fetchByC_LtD_S_Last(long CPDefinitionId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the last cp instance in the ordered set where CPDefinitionId = ? and displayDate < ? and status = ?.
    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 = ?.
    static CPInstance
    fetchByC_S_Last(long companyId, String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the last cp instance in the ordered set where companyId = ? and sku = ?.
    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 = ?.
    static CPInstance
    fetchByC_ST_Last(long CPDefinitionId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the last cp instance in the ordered set where CPDefinitionId = ? and status = ?.
    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 = ?.
    static CPInstance
    fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the last cp instance in the ordered set where companyId = ?.
    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 = ?.
    static CPInstance
    fetchByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the last cp instance in the ordered set where CPDefinitionId = ?.
    static CPInstance
    fetchByCPDI_S(long CPDefinitionId, String sku)
    Returns the cp instance where CPDefinitionId = ? and sku = ? or returns null if it could not be found.
    static CPInstance
    fetchByCPDI_S(long CPDefinitionId, String sku, boolean useFinderCache)
    Returns the cp instance where CPDefinitionId = ? and sku = ? or returns null if it could not be found, optionally using the finder cache.
    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 = ?.
    static CPInstance
    fetchByCPInstanceUuid_Last(String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the last cp instance in the ordered set where CPInstanceUuid = ?.
    static CPInstance
    fetchByERC_C(String externalReferenceCode, long companyId)
    Returns the cp instance where externalReferenceCode = ? and companyId = ? or returns null if it could not be found.
    static CPInstance
    fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
    Returns the cp instance where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
    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 = ?.
    static CPInstance
    fetchByG_ST_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the last cp instance in the ordered set where groupId = ? and status = ?.
    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 = ?.
    static CPInstance
    fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the last cp instance in the ordered set where groupId = ?.
    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 = ?.
    static CPInstance
    fetchByLtD_S_Last(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the last cp instance in the ordered set where displayDate < ? and status = ?.
    static CPInstance
    fetchByPrimaryKey(long CPInstanceId)
    Returns the cp instance with the primary key or returns null if it could not be found.
     
    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 = ?.
    static CPInstance
    fetchByR_R_S_Last(String replacementCPInstanceUuid, long replacementCProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the last cp instance in the ordered set where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.
    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 = ?.
    static CPInstance
    fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the last cp instance in the ordered set where uuid = ? and companyId = ?.
    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 = ?.
    static CPInstance
    fetchByUUID_G(String uuid, long groupId)
    Returns the cp instance where uuid = ? and groupId = ? or returns null if it could not be found.
    static CPInstance
    fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
    Returns the cp instance where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
    static CPInstance
    fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the last cp instance in the ordered set where uuid = ?.
    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 = ?.
    static int
    filterCountByGroupId(long groupId)
    Returns the number of cp instances that the user has permission to view where groupId = ?.
    filterFindByG_ST(long groupId, int status)
    Returns all the cp instances that the user has permission to view where groupId = ? and status = ?.
    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 = ?.
    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 CPInstance[]
    filterFindByG_ST_PrevAndNext(long CPInstanceId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the cp instances before and after the current cp instance in the ordered set of cp instances that the user has permission to view where groupId = ? and status = ?.
    filterFindByGroupId(long groupId)
    Returns all the cp instances that the user has permission to view where groupId = ?.
    filterFindByGroupId(long groupId, int start, int end)
    Returns a range of all the cp instances that the user has permission to view where groupId = ?.
    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 CPInstance[]
    filterFindByGroupId_PrevAndNext(long CPInstanceId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the cp instances before and after the current cp instance in the ordered set of cp instances that the user has permission to view where groupId = ?.
    Returns all the cp instances.
    findAll(int start, int end)
    Returns a range of all the cp instances.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns an ordered range of all the cp instances.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the cp instances.
    static CPInstance
    findByC_C(long CPDefinitionId, String CPInstanceUuid)
    Returns the cp instance where CPDefinitionId = ? and CPInstanceUuid = ? or throws a NoSuchCPInstanceException if it could not be found.
    findByC_LtD_S(long CPDefinitionId, Date displayDate, int status)
    Returns all the cp instances where CPDefinitionId = ? and displayDate < ? and status = ?.
    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 = ?.
    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 = ?.
    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 CPInstance
    findByC_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 CPInstance
    findByC_LtD_S_Last(long CPDefinitionId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the last cp instance in the ordered set where CPDefinitionId = ? and displayDate < ? and status = ?.
    static CPInstance[]
    findByC_LtD_S_PrevAndNext(long CPInstanceId, long CPDefinitionId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the cp instances before and after the current cp instance in the ordered set where CPDefinitionId = ? and displayDate < ? and status = ?.
    findByC_S(long companyId, String sku)
    Returns all the cp instances where companyId = ? and sku = ?.
    findByC_S(long companyId, String sku, int start, int end)
    Returns a range of all the cp instances where companyId = ? and sku = ?.
    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 = ?.
    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 CPInstance
    findByC_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 CPInstance
    findByC_S_Last(long companyId, String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the last cp instance in the ordered set where companyId = ? and sku = ?.
    static CPInstance[]
    findByC_S_PrevAndNext(long CPInstanceId, long companyId, String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the cp instances before and after the current cp instance in the ordered set where companyId = ? and sku = ?.
    findByC_ST(long CPDefinitionId, int status)
    Returns all the cp instances where CPDefinitionId = ? and status = ?.
    findByC_ST(long CPDefinitionId, int status, int start, int end)
    Returns a range of all the cp instances where CPDefinitionId = ? and status = ?.
    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 = ?.
    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 CPInstance
    findByC_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 CPInstance
    findByC_ST_Last(long CPDefinitionId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the last cp instance in the ordered set where CPDefinitionId = ? and status = ?.
    static CPInstance[]
    findByC_ST_PrevAndNext(long CPInstanceId, long CPDefinitionId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the cp instances before and after the current cp instance in the ordered set where CPDefinitionId = ? and status = ?.
    findByCompanyId(long companyId)
    Returns all the cp instances where companyId = ?.
    findByCompanyId(long companyId, int start, int end)
    Returns a range of all the cp instances where companyId = ?.
    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 = ?.
    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 CPInstance
    findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the first cp instance in the ordered set where companyId = ?.
    static CPInstance
    findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the last cp instance in the ordered set where companyId = ?.
    static CPInstance[]
    findByCompanyId_PrevAndNext(long CPInstanceId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the cp instances before and after the current cp instance in the ordered set where companyId = ?.
    findByCPDefinitionId(long CPDefinitionId)
    Returns all the cp instances where CPDefinitionId = ?.
    findByCPDefinitionId(long CPDefinitionId, int start, int end)
    Returns a range of all the cp instances where CPDefinitionId = ?.
    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 = ?.
    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 CPInstance
    findByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the first cp instance in the ordered set where CPDefinitionId = ?.
    static CPInstance
    findByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the last cp instance in the ordered set where CPDefinitionId = ?.
    static CPInstance[]
    findByCPDefinitionId_PrevAndNext(long CPInstanceId, long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the cp instances before and after the current cp instance in the ordered set where CPDefinitionId = ?.
    static CPInstance
    findByCPDI_S(long CPDefinitionId, String sku)
    Returns the cp instance where CPDefinitionId = ? and sku = ? or throws a NoSuchCPInstanceException if it could not be found.
    findByCPInstanceUuid(String CPInstanceUuid)
    Returns all the cp instances where CPInstanceUuid = ?.
    findByCPInstanceUuid(String CPInstanceUuid, int start, int end)
    Returns a range of all the cp instances where CPInstanceUuid = ?.
    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 = ?.
    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 CPInstance
    findByCPInstanceUuid_First(String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the first cp instance in the ordered set where CPInstanceUuid = ?.
    static CPInstance
    findByCPInstanceUuid_Last(String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the last cp instance in the ordered set where CPInstanceUuid = ?.
    static CPInstance[]
    findByCPInstanceUuid_PrevAndNext(long CPInstanceId, String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the cp instances before and after the current cp instance in the ordered set where CPInstanceUuid = ?.
    static CPInstance
    findByERC_C(String externalReferenceCode, long companyId)
    Returns the cp instance where externalReferenceCode = ? and companyId = ? or throws a NoSuchCPInstanceException if it could not be found.
    findByG_ST(long groupId, int status)
    Returns all the cp instances where groupId = ? and status = ?.
    findByG_ST(long groupId, int status, int start, int end)
    Returns a range of all the cp instances where groupId = ? and status = ?.
    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 = ?.
    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 CPInstance
    findByG_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 CPInstance
    findByG_ST_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the last cp instance in the ordered set where groupId = ? and status = ?.
    static CPInstance[]
    findByG_ST_PrevAndNext(long CPInstanceId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the cp instances before and after the current cp instance in the ordered set where groupId = ? and status = ?.
    findByGroupId(long groupId)
    Returns all the cp instances where groupId = ?.
    findByGroupId(long groupId, int start, int end)
    Returns a range of all the cp instances where groupId = ?.
    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 = ?.
    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 CPInstance
    findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the first cp instance in the ordered set where groupId = ?.
    static CPInstance
    findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the last cp instance in the ordered set where groupId = ?.
    static CPInstance[]
    findByGroupId_PrevAndNext(long CPInstanceId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the cp instances before and after the current cp instance in the ordered set where groupId = ?.
    findByLtD_S(Date displayDate, int status)
    Returns all the cp instances where displayDate < ? and status = ?.
    findByLtD_S(Date displayDate, int status, int start, int end)
    Returns a range of all the cp instances where displayDate < ? and status = ?.
    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 = ?.
    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 CPInstance
    findByLtD_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 CPInstance
    findByLtD_S_Last(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the last cp instance in the ordered set where displayDate < ? and status = ?.
    static CPInstance[]
    findByLtD_S_PrevAndNext(long CPInstanceId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the cp instances before and after the current cp instance in the ordered set where displayDate < ? and status = ?.
    static CPInstance
    findByPrimaryKey(long CPInstanceId)
    Returns the cp instance with the primary key or throws a NoSuchCPInstanceException if it could not be found.
    findByR_R_S(String replacementCPInstanceUuid, long replacementCProductId, int status)
    Returns all the cp instances where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.
    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 = ?.
    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 = ?.
    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 CPInstance
    findByR_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 CPInstance
    findByR_R_S_Last(String replacementCPInstanceUuid, long replacementCProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the last cp instance in the ordered set where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.
    static CPInstance[]
    findByR_R_S_PrevAndNext(long CPInstanceId, String replacementCPInstanceUuid, long replacementCProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the cp instances before and after the current cp instance in the ordered set where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.
    Returns all the cp instances where uuid = ?.
    findByUuid(String uuid, int start, int end)
    Returns a range of all the cp instances where uuid = ?.
    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 = ?.
    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 = ?.
    findByUuid_C(String uuid, long companyId)
    Returns all the cp instances where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the cp instances where uuid = ? and companyId = ?.
    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 = ?.
    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 CPInstance
    findByUuid_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 CPInstance
    findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the last cp instance in the ordered set where uuid = ? and companyId = ?.
    static CPInstance[]
    findByUuid_C_PrevAndNext(long CPInstanceId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the cp instances before and after the current cp instance in the ordered set where uuid = ? and companyId = ?.
    static CPInstance
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the first cp instance in the ordered set where uuid = ?.
    static CPInstance
    findByUUID_G(String uuid, long groupId)
    Returns the cp instance where uuid = ? and groupId = ? or throws a NoSuchCPInstanceException if it could not be found.
    static CPInstance
    findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the last cp instance in the ordered set where uuid = ?.
    static CPInstance[]
    findByUuid_PrevAndNext(long CPInstanceId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
    Returns the cp instances before and after the current cp instance in the ordered set where uuid = ?.
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
     
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
     
     
    static CPInstance
    remove(long CPInstanceId)
    Removes the cp instance with the primary key from the database.
    static void
    Removes all the cp instances from the database.
    static CPInstance
    removeByC_C(long CPDefinitionId, String CPInstanceUuid)
    Removes the cp instance where CPDefinitionId = ? and CPInstanceUuid = ? from the database.
    static void
    removeByC_LtD_S(long CPDefinitionId, Date displayDate, int status)
    Removes all the cp instances where CPDefinitionId = ? and displayDate < ? and status = ? from the database.
    static void
    removeByC_S(long companyId, String sku)
    Removes all the cp instances where companyId = ? and sku = ? from the database.
    static void
    removeByC_ST(long CPDefinitionId, int status)
    Removes all the cp instances where CPDefinitionId = ? and status = ? from the database.
    static void
    removeByCompanyId(long companyId)
    Removes all the cp instances where companyId = ? from the database.
    static void
    removeByCPDefinitionId(long CPDefinitionId)
    Removes all the cp instances where CPDefinitionId = ? from the database.
    static CPInstance
    removeByCPDI_S(long CPDefinitionId, String sku)
    Removes the cp instance where CPDefinitionId = ? and sku = ? from the database.
    static void
    Removes all the cp instances where CPInstanceUuid = ? from the database.
    static CPInstance
    removeByERC_C(String externalReferenceCode, long companyId)
    Removes the cp instance where externalReferenceCode = ? and companyId = ? from the database.
    static void
    removeByG_ST(long groupId, int status)
    Removes all the cp instances where groupId = ? and status = ? from the database.
    static void
    removeByGroupId(long groupId)
    Removes all the cp instances where groupId = ? from the database.
    static void
    removeByLtD_S(Date displayDate, int status)
    Removes all the cp instances where displayDate < ? and status = ? from the database.
    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.
    static void
    Removes all the cp instances where uuid = ? from the database.
    static void
    removeByUuid_C(String uuid, long companyId)
    Removes all the cp instances where uuid = ? and companyId = ? from the database.
    static CPInstance
    removeByUUID_G(String uuid, long groupId)
    Removes the cp instance where uuid = ? and groupId = ? from the database.
    static void
     
    static CPInstance
    update(CPInstance cpInstance)
     
    static CPInstance
    update(CPInstance cpInstance, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static CPInstance
    updateImpl(CPInstance cpInstance)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CPInstanceUtil

      public CPInstanceUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(CPInstance cpInstance)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

      public static Map<Serializable,CPInstance> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<CPInstance> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<CPInstance> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • 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:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static CPInstance update(CPInstance cpInstance)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static CPInstance update(CPInstance cpInstance, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByUuid

      public static List<CPInstance> findByUuid(String uuid)
      Returns all the cp instances where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching cp instances
    • findByUuid

      public static List<CPInstance> findByUuid(String uuid, int start, int end)
      Returns a range of all the cp instances where uuid = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of cp instances
      end - 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered 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, boolean useFinderCache)
      Returns an ordered range of all the cp instances where uuid = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • 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 uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance, or null if a matching cp instance could not be found
    • findByUuid_Last

      public static CPInstance findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
      Returns the last cp instance in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • fetchByUuid_Last

      public static CPInstance fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
      Returns the last cp instance in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance, or null if a matching cp instance could not be found
    • findByUuid_PrevAndNext

      public static CPInstance[] findByUuid_PrevAndNext(long CPInstanceId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
      Returns the cp instances before and after the current cp instance in the ordered set where uuid = ?.
      Parameters:
      CPInstanceId - the primary key of the current cp instance
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp instance
      Throws:
      NoSuchCPInstanceException - if a cp instance with the primary key could not be found
      NoSuchCPInstanceException
    • removeByUuid

      public static void removeByUuid(String uuid)
      Removes all the cp instances where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      public static int countByUuid(String uuid)
      Returns the number of cp instances where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching cp instances
    • findByUUID_G

      public static CPInstance findByUUID_G(String uuid, long groupId) throws NoSuchCPInstanceException
      Returns the cp instance where uuid = ? and groupId = ? or throws a NoSuchCPInstanceException if it could not be found.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • fetchByUUID_G

      public static CPInstance fetchByUUID_G(String uuid, long groupId)
      Returns the cp instance where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching cp instance, or null if a matching cp instance could not be found
    • fetchByUUID_G

      public static CPInstance fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
      Returns the cp instance where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching cp instance, or null if a matching cp instance could not be found
    • removeByUUID_G

      public static CPInstance removeByUUID_G(String uuid, long groupId) throws NoSuchCPInstanceException
      Removes the cp instance where uuid = ? and groupId = ? from the database.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the cp instance that was removed
      Throws:
      NoSuchCPInstanceException
    • countByUUID_G

      public static int countByUUID_G(String uuid, long groupId)
      Returns the number of cp instances where uuid = ? and groupId = ?.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the number of matching cp instances
    • findByUuid_C

      public static List<CPInstance> findByUuid_C(String uuid, long companyId)
      Returns all the cp instances where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching cp instances
    • findByUuid_C

      public 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 = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of cp instances
      end - 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered 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, boolean useFinderCache)
      Returns an ordered range of all the cp instances where uuid = ? and companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • 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 uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance, or null if a matching cp instance could not be found
    • findByUuid_C_Last

      public static CPInstance findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
      Returns the last cp instance in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • fetchByUuid_C_Last

      public static CPInstance fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
      Returns the last cp instance in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance, or null if a matching cp instance could not be found
    • findByUuid_C_PrevAndNext

      public static CPInstance[] findByUuid_C_PrevAndNext(long CPInstanceId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
      Returns the cp instances before and after the current cp instance in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      CPInstanceId - the primary key of the current cp instance
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp instance
      Throws:
      NoSuchCPInstanceException - if a cp instance with the primary key could not be found
      NoSuchCPInstanceException
    • removeByUuid_C

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the cp instances where uuid = ? and companyId = ? from the database.
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      public static int countByUuid_C(String uuid, long companyId)
      Returns the number of cp instances where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching cp instances
    • findByGroupId

      public static List<CPInstance> findByGroupId(long groupId)
      Returns all the cp instances where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the matching cp instances
    • findByGroupId

      public static List<CPInstance> findByGroupId(long groupId, int start, int end)
      Returns a range of all the cp instances where groupId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of cp instances
      end - 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered 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, boolean useFinderCache)
      Returns an ordered range of all the cp instances where groupId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance, or null if a matching cp instance could not be found
    • findByGroupId_Last

      public static CPInstance findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
      Returns the last cp instance in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • fetchByGroupId_Last

      public static CPInstance fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
      Returns the last cp instance in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance, or null if a matching cp instance could not be found
    • findByGroupId_PrevAndNext

      public static CPInstance[] findByGroupId_PrevAndNext(long CPInstanceId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
      Returns the cp instances before and after the current cp instance in the ordered set where groupId = ?.
      Parameters:
      CPInstanceId - the primary key of the current cp instance
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp instance
      Throws:
      NoSuchCPInstanceException - if a cp instance with the primary key could not be found
      NoSuchCPInstanceException
    • filterFindByGroupId

      public static List<CPInstance> filterFindByGroupId(long groupId)
      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

      public 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 = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of cp instances
      end - 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
    • 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cp instances that the user has permission to view
    • filterFindByGroupId_PrevAndNext

      public static CPInstance[] filterFindByGroupId_PrevAndNext(long CPInstanceId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
      Returns the cp instances before and after the current cp instance in the ordered set of cp instances that the user has permission to view where groupId = ?.
      Parameters:
      CPInstanceId - the primary key of the current cp instance
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp instance
      Throws:
      NoSuchCPInstanceException - if a cp instance with the primary key could not be found
      NoSuchCPInstanceException
    • 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)
      Returns all the cp instances where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching cp instances
    • findByCompanyId

      public static List<CPInstance> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the cp instances where companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of cp instances
      end - 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered 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, boolean useFinderCache)
      Returns an ordered range of all the cp instances where companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance, or null if a matching cp instance could not be found
    • findByCompanyId_Last

      public static CPInstance findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
      Returns the last cp instance in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • fetchByCompanyId_Last

      public static CPInstance fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
      Returns the last cp instance in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance, or null if a matching cp instance could not be found
    • findByCompanyId_PrevAndNext

      public static CPInstance[] findByCompanyId_PrevAndNext(long CPInstanceId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
      Returns the cp instances before and after the current cp instance in the ordered set where companyId = ?.
      Parameters:
      CPInstanceId - the primary key of the current cp instance
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp instance
      Throws:
      NoSuchCPInstanceException - if a cp instance with the primary key could not be found
      NoSuchCPInstanceException
    • 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)
      Returns all the cp instances where CPDefinitionId = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      Returns:
      the matching cp instances
    • findByCPDefinitionId

      public static List<CPInstance> findByCPDefinitionId(long CPDefinitionId, int start, int end)
      Returns a range of all the cp instances where CPDefinitionId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      CPDefinitionId - the cp definition ID
      start - the lower bound of the range of cp instances
      end - 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      CPDefinitionId - the cp definition ID
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered 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, boolean useFinderCache)
      Returns an ordered range of all the cp instances where CPDefinitionId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      CPDefinitionId - the cp definition ID
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance, or null if a matching cp instance could not be found
    • findByCPDefinitionId_Last

      public static CPInstance findByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
      Returns the last cp instance in the ordered set where CPDefinitionId = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • fetchByCPDefinitionId_Last

      public static CPInstance fetchByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
      Returns the last cp instance in the ordered set where CPDefinitionId = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance, or null if a matching cp instance could not be found
    • findByCPDefinitionId_PrevAndNext

      public static CPInstance[] findByCPDefinitionId_PrevAndNext(long CPInstanceId, long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
      Returns the cp instances before and after the current cp instance in the ordered set where CPDefinitionId = ?.
      Parameters:
      CPInstanceId - the primary key of the current cp instance
      CPDefinitionId - the cp definition ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp instance
      Throws:
      NoSuchCPInstanceException - if a cp instance with the primary key could not be found
      NoSuchCPInstanceException
    • 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)
      Returns all the cp instances where CPInstanceUuid = ?.
      Parameters:
      CPInstanceUuid - the cp instance uuid
      Returns:
      the matching cp instances
    • findByCPInstanceUuid

      public static List<CPInstance> findByCPInstanceUuid(String CPInstanceUuid, int start, int end)
      Returns a range of all the cp instances where CPInstanceUuid = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      CPInstanceUuid - the cp instance uuid
      start - the lower bound of the range of cp instances
      end - 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      CPInstanceUuid - the cp instance uuid
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered 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, boolean useFinderCache)
      Returns an ordered range of all the cp instances where CPInstanceUuid = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      CPInstanceUuid - the cp instance uuid
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • 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 uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance, or null if a matching cp instance could not be found
    • findByCPInstanceUuid_Last

      public static CPInstance findByCPInstanceUuid_Last(String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
      Returns the last cp instance in the ordered set where CPInstanceUuid = ?.
      Parameters:
      CPInstanceUuid - the cp instance uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • fetchByCPInstanceUuid_Last

      public static CPInstance fetchByCPInstanceUuid_Last(String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
      Returns the last cp instance in the ordered set where CPInstanceUuid = ?.
      Parameters:
      CPInstanceUuid - the cp instance uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance, or null if a matching cp instance could not be found
    • findByCPInstanceUuid_PrevAndNext

      public static CPInstance[] findByCPInstanceUuid_PrevAndNext(long CPInstanceId, String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
      Returns the cp instances before and after the current cp instance in the ordered set where CPInstanceUuid = ?.
      Parameters:
      CPInstanceId - the primary key of the current cp instance
      CPInstanceUuid - the cp instance uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp instance
      Throws:
      NoSuchCPInstanceException - if a cp instance with the primary key could not be found
      NoSuchCPInstanceException
    • removeByCPInstanceUuid

      public static void removeByCPInstanceUuid(String CPInstanceUuid)
      Removes all the cp instances where CPInstanceUuid = ? from the database.
      Parameters:
      CPInstanceUuid - the cp instance uuid
    • countByCPInstanceUuid

      public static int countByCPInstanceUuid(String CPInstanceUuid)
      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)
      Returns all the cp instances where groupId = ? and status = ?.
      Parameters:
      groupId - the group ID
      status - the status
      Returns:
      the matching cp instances
    • findByG_ST

      public 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 = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      groupId - the group ID
      status - the status
      start - the lower bound of the range of cp instances
      end - 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      groupId - the group ID
      status - the status
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered 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, boolean useFinderCache)
      Returns an ordered range of all the cp instances where groupId = ? and status = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      groupId - the group ID
      status - the status
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • 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 ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance, or null if a matching cp instance could not be found
    • findByG_ST_Last

      public static CPInstance findByG_ST_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
      Returns the last cp instance in the ordered set where groupId = ? and status = ?.
      Parameters:
      groupId - the group ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • fetchByG_ST_Last

      public static CPInstance fetchByG_ST_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
      Returns the last cp instance in the ordered set where groupId = ? and status = ?.
      Parameters:
      groupId - the group ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance, or null if a matching cp instance could not be found
    • findByG_ST_PrevAndNext

      public static CPInstance[] findByG_ST_PrevAndNext(long CPInstanceId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
      Returns the cp instances before and after the current cp instance in the ordered set where groupId = ? and status = ?.
      Parameters:
      CPInstanceId - the primary key of the current cp instance
      groupId - the group ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp instance
      Throws:
      NoSuchCPInstanceException - if a cp instance with the primary key could not be found
      NoSuchCPInstanceException
    • filterFindByG_ST

      public 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 = ?.
      Parameters:
      groupId - the group ID
      status - the status
      Returns:
      the matching cp instances that the user has permission to view
    • filterFindByG_ST

      public 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 = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      groupId - the group ID
      status - the status
      start - the lower bound of the range of cp instances
      end - 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
    • 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      groupId - the group ID
      status - the status
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching cp instances that the user has permission to view
    • filterFindByG_ST_PrevAndNext

      public static CPInstance[] filterFindByG_ST_PrevAndNext(long CPInstanceId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
      Returns the cp instances before and after the current cp instance in the ordered set of cp instances that the user has permission to view where groupId = ? and status = ?.
      Parameters:
      CPInstanceId - the primary key of the current cp instance
      groupId - the group ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp instance
      Throws:
      NoSuchCPInstanceException - if a cp instance with the primary key could not be found
      NoSuchCPInstanceException
    • 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 ID
      status - 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 ID
      status - 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 ID
      status - 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)
      Returns all the cp instances where companyId = ? and sku = ?.
      Parameters:
      companyId - the company ID
      sku - the sku
      Returns:
      the matching cp instances
    • findByC_S

      public static List<CPInstance> findByC_S(long companyId, String sku, int start, int end)
      Returns a range of all the cp instances where companyId = ? and sku = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      companyId - the company ID
      sku - the sku
      start - the lower bound of the range of cp instances
      end - 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      companyId - the company ID
      sku - the sku
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered 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, boolean useFinderCache)
      Returns an ordered range of all the cp instances where companyId = ? and sku = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      companyId - the company ID
      sku - the sku
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 ID
      sku - the sku
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • 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 ID
      sku - the sku
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance, or null if a matching cp instance could not be found
    • findByC_S_Last

      public static CPInstance findByC_S_Last(long companyId, String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
      Returns the last cp instance in the ordered set where companyId = ? and sku = ?.
      Parameters:
      companyId - the company ID
      sku - the sku
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • fetchByC_S_Last

      public static CPInstance fetchByC_S_Last(long companyId, String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
      Returns the last cp instance in the ordered set where companyId = ? and sku = ?.
      Parameters:
      companyId - the company ID
      sku - the sku
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance, or null if a matching cp instance could not be found
    • findByC_S_PrevAndNext

      public static CPInstance[] findByC_S_PrevAndNext(long CPInstanceId, long companyId, String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
      Returns the cp instances before and after the current cp instance in the ordered set where companyId = ? and sku = ?.
      Parameters:
      CPInstanceId - the primary key of the current cp instance
      companyId - the company ID
      sku - the sku
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp instance
      Throws:
      NoSuchCPInstanceException - if a cp instance with the primary key could not be found
      NoSuchCPInstanceException
    • removeByC_S

      public static void removeByC_S(long companyId, String sku)
      Removes all the cp instances where companyId = ? and sku = ? from the database.
      Parameters:
      companyId - the company ID
      sku - the sku
    • countByC_S

      public static int countByC_S(long companyId, String sku)
      Returns the number of cp instances where companyId = ? and sku = ?.
      Parameters:
      companyId - the company ID
      sku - 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 a NoSuchCPInstanceException if it could not be found.
      Parameters:
      CPDefinitionId - the cp definition ID
      CPInstanceUuid - the cp instance uuid
      Returns:
      the matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • fetchByC_C

      public static CPInstance fetchByC_C(long CPDefinitionId, String CPInstanceUuid)
      Returns the cp instance where CPDefinitionId = ? and CPInstanceUuid = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      CPDefinitionId - the cp definition ID
      CPInstanceUuid - the cp instance uuid
      Returns:
      the matching cp instance, or null if a matching cp instance could not be found
    • fetchByC_C

      public static CPInstance fetchByC_C(long CPDefinitionId, String CPInstanceUuid, boolean useFinderCache)
      Returns the cp instance where CPDefinitionId = ? and CPInstanceUuid = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      CPDefinitionId - the cp definition ID
      CPInstanceUuid - the cp instance uuid
      useFinderCache - whether to use the finder cache
      Returns:
      the matching cp instance, or null if 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 ID
      CPInstanceUuid - the cp instance uuid
      Returns:
      the cp instance that was removed
      Throws:
      NoSuchCPInstanceException
    • countByC_C

      public static int countByC_C(long CPDefinitionId, String CPInstanceUuid)
      Returns the number of cp instances where CPDefinitionId = ? and CPInstanceUuid = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      CPInstanceUuid - 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 a NoSuchCPInstanceException if it could not be found.
      Parameters:
      CPDefinitionId - the cp definition ID
      sku - the sku
      Returns:
      the matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • fetchByCPDI_S

      public static CPInstance fetchByCPDI_S(long CPDefinitionId, String sku)
      Returns the cp instance where CPDefinitionId = ? and sku = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      CPDefinitionId - the cp definition ID
      sku - the sku
      Returns:
      the matching cp instance, or null if a matching cp instance could not be found
    • fetchByCPDI_S

      public static CPInstance fetchByCPDI_S(long CPDefinitionId, String sku, boolean useFinderCache)
      Returns the cp instance where CPDefinitionId = ? and sku = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      CPDefinitionId - the cp definition ID
      sku - the sku
      useFinderCache - whether to use the finder cache
      Returns:
      the matching cp instance, or null if 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 ID
      sku - the sku
      Returns:
      the cp instance that was removed
      Throws:
      NoSuchCPInstanceException
    • countByCPDI_S

      public static int countByCPDI_S(long CPDefinitionId, String sku)
      Returns the number of cp instances where CPDefinitionId = ? and sku = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      sku - the sku
      Returns:
      the number of matching cp instances
    • findByC_ST

      public static List<CPInstance> findByC_ST(long CPDefinitionId, int status)
      Returns all the cp instances where CPDefinitionId = ? and status = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      status - the status
      Returns:
      the matching cp instances
    • findByC_ST

      public 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 = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      CPDefinitionId - the cp definition ID
      status - the status
      start - the lower bound of the range of cp instances
      end - 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      CPDefinitionId - the cp definition ID
      status - the status
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered 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, boolean useFinderCache)
      Returns an ordered range of all the cp instances where CPDefinitionId = ? and status = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      CPDefinitionId - the cp definition ID
      status - the status
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • 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 ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance, or null if a matching cp instance could not be found
    • findByC_ST_Last

      public static CPInstance findByC_ST_Last(long CPDefinitionId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
      Returns the last cp instance in the ordered set where CPDefinitionId = ? and status = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • fetchByC_ST_Last

      public static CPInstance fetchByC_ST_Last(long CPDefinitionId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
      Returns the last cp instance in the ordered set where CPDefinitionId = ? and status = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance, or null if a matching cp instance could not be found
    • findByC_ST_PrevAndNext

      public static CPInstance[] findByC_ST_PrevAndNext(long CPInstanceId, long CPDefinitionId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
      Returns the cp instances before and after the current cp instance in the ordered set where CPDefinitionId = ? and status = ?.
      Parameters:
      CPInstanceId - the primary key of the current cp instance
      CPDefinitionId - the cp definition ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp instance
      Throws:
      NoSuchCPInstanceException - if a cp instance with the primary key could not be found
      NoSuchCPInstanceException
    • 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 ID
      status - 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 ID
      status - the status
      Returns:
      the number of matching cp instances
    • findByLtD_S

      public static List<CPInstance> findByLtD_S(Date displayDate, int status)
      Returns all the cp instances where displayDate < ? and status = ?.
      Parameters:
      displayDate - the display date
      status - the status
      Returns:
      the matching cp instances
    • findByLtD_S

      public 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 = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      displayDate - the display date
      status - the status
      start - the lower bound of the range of cp instances
      end - 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      displayDate - the display date
      status - the status
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      displayDate - the display date
      status - the status
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • 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 date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance, or null if a matching cp instance could not be found
    • findByLtD_S_Last

      public static CPInstance findByLtD_S_Last(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
      Returns the last cp instance in the ordered set where displayDate < ? and status = ?.
      Parameters:
      displayDate - the display date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • fetchByLtD_S_Last

      public static CPInstance fetchByLtD_S_Last(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
      Returns the last cp instance in the ordered set where displayDate < ? and status = ?.
      Parameters:
      displayDate - the display date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance, or null if a matching cp instance could not be found
    • findByLtD_S_PrevAndNext

      public static CPInstance[] findByLtD_S_PrevAndNext(long CPInstanceId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
      Returns the cp instances before and after the current cp instance in the ordered set where displayDate < ? and status = ?.
      Parameters:
      CPInstanceId - the primary key of the current cp instance
      displayDate - the display date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp instance
      Throws:
      NoSuchCPInstanceException - if a cp instance with the primary key could not be found
      NoSuchCPInstanceException
    • removeByLtD_S

      public static void removeByLtD_S(Date displayDate, int status)
      Removes all the cp instances where displayDate < ? and status = ? from the database.
      Parameters:
      displayDate - the display date
      status - the status
    • countByLtD_S

      public static int countByLtD_S(Date displayDate, int status)
      Returns the number of cp instances where displayDate < ? and status = ?.
      Parameters:
      displayDate - the display date
      status - the status
      Returns:
      the number of matching cp instances
    • findByC_LtD_S

      public static List<CPInstance> findByC_LtD_S(long CPDefinitionId, Date displayDate, int status)
      Returns all the cp instances where CPDefinitionId = ? and displayDate < ? and status = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      displayDate - the display date
      status - 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      CPDefinitionId - the cp definition ID
      displayDate - the display date
      status - the status
      start - the lower bound of the range of cp instances
      end - 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      CPDefinitionId - the cp definition ID
      displayDate - the display date
      status - the status
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      CPDefinitionId - the cp definition ID
      displayDate - the display date
      status - the status
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 ID
      displayDate - the display date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • 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 ID
      displayDate - the display date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance, or null if a matching cp instance could not be found
    • findByC_LtD_S_Last

      public static CPInstance findByC_LtD_S_Last(long CPDefinitionId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
      Returns the last cp instance in the ordered set where CPDefinitionId = ? and displayDate < ? and status = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      displayDate - the display date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • fetchByC_LtD_S_Last

      public static CPInstance fetchByC_LtD_S_Last(long CPDefinitionId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
      Returns the last cp instance in the ordered set where CPDefinitionId = ? and displayDate < ? and status = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      displayDate - the display date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance, or null if a matching cp instance could not be found
    • findByC_LtD_S_PrevAndNext

      public static CPInstance[] findByC_LtD_S_PrevAndNext(long CPInstanceId, long CPDefinitionId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
      Returns the cp instances before and after the current cp instance in the ordered set where CPDefinitionId = ? and displayDate < ? and status = ?.
      Parameters:
      CPInstanceId - the primary key of the current cp instance
      CPDefinitionId - the cp definition ID
      displayDate - the display date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp instance
      Throws:
      NoSuchCPInstanceException - if a cp instance with the primary key could not be found
      NoSuchCPInstanceException
    • removeByC_LtD_S

      public static void removeByC_LtD_S(long CPDefinitionId, Date displayDate, int status)
      Removes all the cp instances where CPDefinitionId = ? and displayDate < ? and status = ? from the database.
      Parameters:
      CPDefinitionId - the cp definition ID
      displayDate - the display date
      status - the status
    • countByC_LtD_S

      public static int countByC_LtD_S(long CPDefinitionId, Date displayDate, int status)
      Returns the number of cp instances where CPDefinitionId = ? and displayDate < ? and status = ?.
      Parameters:
      CPDefinitionId - the cp definition ID
      displayDate - the display date
      status - 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)
      Returns all the cp instances where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.
      Parameters:
      replacementCPInstanceUuid - the replacement cp instance uuid
      replacementCProductId - the replacement c product ID
      status - 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      replacementCPInstanceUuid - the replacement cp instance uuid
      replacementCProductId - the replacement c product ID
      status - the status
      start - the lower bound of the range of cp instances
      end - 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      replacementCPInstanceUuid - the replacement cp instance uuid
      replacementCProductId - the replacement c product ID
      status - the status
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered 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, 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      replacementCPInstanceUuid - the replacement cp instance uuid
      replacementCProductId - the replacement c product ID
      status - the status
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 uuid
      replacementCProductId - the replacement c product ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • 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 uuid
      replacementCProductId - the replacement c product ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp instance, or null if a matching cp instance could not be found
    • findByR_R_S_Last

      public static CPInstance findByR_R_S_Last(String replacementCPInstanceUuid, long replacementCProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
      Returns the last cp instance in the ordered set where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.
      Parameters:
      replacementCPInstanceUuid - the replacement cp instance uuid
      replacementCProductId - the replacement c product ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • fetchByR_R_S_Last

      public static CPInstance fetchByR_R_S_Last(String replacementCPInstanceUuid, long replacementCProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
      Returns the last cp instance in the ordered set where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.
      Parameters:
      replacementCPInstanceUuid - the replacement cp instance uuid
      replacementCProductId - the replacement c product ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp instance, or null if a matching cp instance could not be found
    • findByR_R_S_PrevAndNext

      public static CPInstance[] findByR_R_S_PrevAndNext(long CPInstanceId, String replacementCPInstanceUuid, long replacementCProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
      Returns the cp instances before and after the current cp instance in the ordered set where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.
      Parameters:
      CPInstanceId - the primary key of the current cp instance
      replacementCPInstanceUuid - the replacement cp instance uuid
      replacementCProductId - the replacement c product ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp instance
      Throws:
      NoSuchCPInstanceException - if a cp instance with the primary key could not be found
      NoSuchCPInstanceException
    • 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 uuid
      replacementCProductId - the replacement c product ID
      status - 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 uuid
      replacementCProductId - the replacement c product ID
      status - 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 a NoSuchCPInstanceException if it could not be found.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching cp instance
      Throws:
      NoSuchCPInstanceException - if a matching cp instance could not be found
      NoSuchCPInstanceException
    • fetchByERC_C

      public static CPInstance fetchByERC_C(String externalReferenceCode, long companyId)
      Returns the cp instance where externalReferenceCode = ? and companyId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching cp instance, or null if a matching cp instance could not be found
    • fetchByERC_C

      public static CPInstance fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
      Returns the cp instance where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching cp instance, or null if 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 code
      companyId - the company ID
      Returns:
      the cp instance that was removed
      Throws:
      NoSuchCPInstanceException
    • countByERC_C

      public static int countByERC_C(String externalReferenceCode, long companyId)
      Returns the number of cp instances where externalReferenceCode = ? and companyId = ?.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the number of matching cp instances
    • cacheResult

      public static void cacheResult(CPInstance cpInstance)
      Caches the cp instance in the entity cache if it is enabled.
      Parameters:
      cpInstance - the cp instance
    • cacheResult

      public static void cacheResult(List<CPInstance> cpInstances)
      Caches the cp instances in the entity cache if it is enabled.
      Parameters:
      cpInstances - the cp instances
    • create

      public static CPInstance create(long CPInstanceId)
      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

      public static CPInstance remove(long CPInstanceId) throws NoSuchCPInstanceException
      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
      Throws:
      NoSuchCPInstanceException - if a cp instance with the primary key could not be found
      NoSuchCPInstanceException
    • updateImpl

      public static CPInstance updateImpl(CPInstance cpInstance)
    • findByPrimaryKey

      public static CPInstance findByPrimaryKey(long CPInstanceId) throws NoSuchCPInstanceException
      Returns the cp instance with the primary key or throws a NoSuchCPInstanceException if it could not be found.
      Parameters:
      CPInstanceId - the primary key of the cp instance
      Returns:
      the cp instance
      Throws:
      NoSuchCPInstanceException - if a cp instance with the primary key could not be found
      NoSuchCPInstanceException
    • fetchByPrimaryKey

      public static CPInstance fetchByPrimaryKey(long CPInstanceId)
      Returns the cp instance with the primary key or returns null if it could not be found.
      Parameters:
      CPInstanceId - the primary key of the cp instance
      Returns:
      the cp instance, or null if a cp instance with the primary key could not be found
    • findAll

      public static List<CPInstance> findAll()
      Returns all the cp instances.
      Returns:
      the cp instances
    • findAll

      public static List<CPInstance> findAll(int start, int end)
      Returns a range of all the cp instances.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      Returns:
      the range of cp instances
    • findAll

      public static List<CPInstance> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
      Returns an ordered range of all the cp instances.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of cp instances
    • findAll

      public static List<CPInstance> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the cp instances.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl.

      Parameters:
      start - the lower bound of the range of cp instances
      end - the upper bound of the range of cp instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of cp instances
    • removeAll

      public static void removeAll()
      Removes all the cp instances from the database.
    • countAll

      public static int countAll()
      Returns the number of cp instances.
      Returns:
      the number of cp instances
    • getPersistence

      public static CPInstancePersistence getPersistence()
    • setPersistence

      public static void setPersistence(CPInstancePersistence persistence)