Class CPInstanceUtil
com.liferay.commerce.product.service.persistence.impl.CPInstancePersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
countAll()
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
countByUuid
(String uuid) 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 returnsnull
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 returnsnull
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 returnsnull
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 returnsnull
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 returnsnull
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 returnsnull
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 returnsnull
if it could not be found.static Map<Serializable,
CPInstance> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) 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 returnsnull
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 returnsnull
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 = ?.static List<CPInstance>
filterFindByG_ST
(long groupId, int status) Returns all the cp instances that the user has permission to view where groupId = ? and status = ?.static List<CPInstance>
filterFindByG_ST
(long groupId, int status, int start, int end) Returns a range of all the cp instances that the user has permission to view where groupId = ? and status = ?.static List<CPInstance>
filterFindByG_ST
(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances that the user has permissions to view where groupId = ? and status = ?.static 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 = ?.static List<CPInstance>
filterFindByGroupId
(long groupId) Returns all the cp instances that the user has permission to view where groupId = ?.static List<CPInstance>
filterFindByGroupId
(long groupId, int start, int end) Returns a range of all the cp instances that the user has permission to view where groupId = ?.static List<CPInstance>
filterFindByGroupId
(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances that the user has permissions to view where groupId = ?.static 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 = ?.static List<CPInstance>
findAll()
Returns all the cp instances.static List<CPInstance>
findAll
(int start, int end) Returns a range of all the cp instances.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.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.static CPInstance
Returns the cp instance where CPDefinitionId = ? and CPInstanceUuid = ? or throws aNoSuchCPInstanceException
if it could not be found.static List<CPInstance>
findByC_LtD_S
(long CPDefinitionId, Date displayDate, int status) Returns all the cp instances where CPDefinitionId = ? and displayDate < ? and status = ?.static List<CPInstance>
findByC_LtD_S
(long CPDefinitionId, Date displayDate, int status, int start, int end) Returns a range of all the cp instances where CPDefinitionId = ? and displayDate < ? and status = ?.static List<CPInstance>
findByC_LtD_S
(long CPDefinitionId, Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where CPDefinitionId = ? and displayDate < ? and status = ?.static List<CPInstance>
findByC_LtD_S
(long CPDefinitionId, Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where CPDefinitionId = ? and displayDate < ? and status = ?.static 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 = ?.static List<CPInstance>
Returns all the cp instances where companyId = ? and sku = ?.static List<CPInstance>
Returns a range of all the cp instances where companyId = ? and sku = ?.static List<CPInstance>
findByC_S
(long companyId, String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where companyId = ? and sku = ?.static List<CPInstance>
findByC_S
(long companyId, String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where companyId = ? and sku = ?.static 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 = ?.static List<CPInstance>
findByC_ST
(long CPDefinitionId, int status) Returns all the cp instances where CPDefinitionId = ? and status = ?.static List<CPInstance>
findByC_ST
(long CPDefinitionId, int status, int start, int end) Returns a range of all the cp instances where CPDefinitionId = ? and status = ?.static List<CPInstance>
findByC_ST
(long CPDefinitionId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where CPDefinitionId = ? and status = ?.static List<CPInstance>
findByC_ST
(long CPDefinitionId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where CPDefinitionId = ? and status = ?.static 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 = ?.static List<CPInstance>
findByCompanyId
(long companyId) Returns all the cp instances where companyId = ?.static List<CPInstance>
findByCompanyId
(long companyId, int start, int end) Returns a range of all the cp instances where companyId = ?.static List<CPInstance>
findByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where companyId = ?.static List<CPInstance>
findByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where companyId = ?.static 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 = ?.static List<CPInstance>
findByCPDefinitionId
(long CPDefinitionId) Returns all the cp instances where CPDefinitionId = ?.static List<CPInstance>
findByCPDefinitionId
(long CPDefinitionId, int start, int end) Returns a range of all the cp instances where CPDefinitionId = ?.static List<CPInstance>
findByCPDefinitionId
(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where CPDefinitionId = ?.static List<CPInstance>
findByCPDefinitionId
(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where CPDefinitionId = ?.static 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 aNoSuchCPInstanceException
if it could not be found.static List<CPInstance>
findByCPInstanceUuid
(String CPInstanceUuid) Returns all the cp instances where CPInstanceUuid = ?.static List<CPInstance>
findByCPInstanceUuid
(String CPInstanceUuid, int start, int end) Returns a range of all the cp instances where CPInstanceUuid = ?.static List<CPInstance>
findByCPInstanceUuid
(String CPInstanceUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where CPInstanceUuid = ?.static List<CPInstance>
findByCPInstanceUuid
(String CPInstanceUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where CPInstanceUuid = ?.static 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 aNoSuchCPInstanceException
if it could not be found.static List<CPInstance>
findByG_ST
(long groupId, int status) Returns all the cp instances where groupId = ? and status = ?.static List<CPInstance>
findByG_ST
(long groupId, int status, int start, int end) Returns a range of all the cp instances where groupId = ? and status = ?.static List<CPInstance>
findByG_ST
(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where groupId = ? and status = ?.static List<CPInstance>
findByG_ST
(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where groupId = ? and status = ?.static 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 = ?.static List<CPInstance>
findByGroupId
(long groupId) Returns all the cp instances where groupId = ?.static List<CPInstance>
findByGroupId
(long groupId, int start, int end) Returns a range of all the cp instances where groupId = ?.static List<CPInstance>
findByGroupId
(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where groupId = ?.static List<CPInstance>
findByGroupId
(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where groupId = ?.static 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 = ?.static List<CPInstance>
findByLtD_S
(Date displayDate, int status) Returns all the cp instances where displayDate < ? and status = ?.static List<CPInstance>
findByLtD_S
(Date displayDate, int status, int start, int end) Returns a range of all the cp instances where displayDate < ? and status = ?.static List<CPInstance>
findByLtD_S
(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where displayDate < ? and status = ?.static List<CPInstance>
findByLtD_S
(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where displayDate < ? and status = ?.static 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 aNoSuchCPInstanceException
if it could not be found.static List<CPInstance>
findByR_R_S
(String replacementCPInstanceUuid, long replacementCProductId, int status) Returns all the cp instances where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.static List<CPInstance>
findByR_R_S
(String replacementCPInstanceUuid, long replacementCProductId, int status, int start, int end) Returns a range of all the cp instances where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.static List<CPInstance>
findByR_R_S
(String replacementCPInstanceUuid, long replacementCProductId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.static List<CPInstance>
findByR_R_S
(String replacementCPInstanceUuid, long replacementCProductId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.static 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 = ?.static List<CPInstance>
findByUuid
(String uuid) Returns all the cp instances where uuid = ?.static List<CPInstance>
findByUuid
(String uuid, int start, int end) Returns a range of all the cp instances where uuid = ?.static List<CPInstance>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where uuid = ?.static List<CPInstance>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where uuid = ?.static List<CPInstance>
findByUuid_C
(String uuid, long companyId) Returns all the cp instances where uuid = ? and companyId = ?.static List<CPInstance>
findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the cp instances where uuid = ? and companyId = ?.static List<CPInstance>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where uuid = ? and companyId = ?.static List<CPInstance>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where uuid = ? and companyId = ?.static 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 aNoSuchCPInstanceException
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 = ?.static List<CPInstance>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CPInstance>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CPInstance>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) static CPInstancePersistence
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
removeByCPInstanceUuid
(String CPInstanceUuid) 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
removeByUuid
(String uuid) 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
setPersistence
(CPInstancePersistence persistence) static CPInstance
update
(CPInstance cpInstance) static CPInstance
update
(CPInstance cpInstance, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CPInstance
updateImpl
(CPInstance cpInstance)
-
Constructor Details
-
CPInstanceUtil
public CPInstanceUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- 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
- 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
Returns all the cp instances where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching cp instances
-
findByUuid
Returns a range of all the cp instances where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances
-
findByUuid
public static List<CPInstance> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp instances
-
findByUuid
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp instances
-
findByUuid_First
public static CPInstance findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException Returns the first cp instance in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
fetchByUuid_First
public static CPInstance fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp instance, or
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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- 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 instanceuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp instance
- Throws:
NoSuchCPInstanceException
- if a cp instance with the primary key could not be foundNoSuchCPInstanceException
-
removeByUuid
Removes all the cp instances where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of cp instances where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching cp instances
-
findByUUID_G
Returns the cp instance where uuid = ? and groupId = ? or throws aNoSuchCPInstanceException
if it could not be found.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
fetchByUUID_G
Returns the cp instance where uuid = ? and groupId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching cp instance, or
null
if a matching cp instance could not be found
-
fetchByUUID_G
Returns the cp instance where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching cp instance, or
null
if a matching cp instance could not be found
-
removeByUUID_G
Removes the cp instance where uuid = ? and groupId = ? from the database.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the cp instance that was removed
- Throws:
NoSuchCPInstanceException
-
countByUUID_G
Returns the number of cp instances where uuid = ? and groupId = ?.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the number of matching cp instances
-
findByUuid_C
Returns all the cp instances where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching cp instances
-
findByUuid_C
Returns a range of all the cp instances where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances
-
findByUuid_C
public static List<CPInstance> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp instances
-
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp instances
-
findByUuid_C_First
public static CPInstance findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException Returns the first cp instance in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
fetchByUuid_C_First
public static CPInstance fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp instance, or
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 uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
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 uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 instanceuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp instance
- Throws:
NoSuchCPInstanceException
- if a cp instance with the primary key could not be foundNoSuchCPInstanceException
-
removeByUuid_C
Removes all the cp instances where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of cp instances where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching cp instances
-
findByGroupId
Returns all the cp instances where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the matching cp instances
-
findByGroupId
Returns a range of all the cp instances where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances
-
findByGroupId
public static List<CPInstance> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp instances
-
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp instances
-
findByGroupId_First
public static CPInstance findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException Returns the first cp instance in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
fetchByGroupId_First
public static CPInstance fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp instance, or
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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 instancegroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp instance
- Throws:
NoSuchCPInstanceException
- if a cp instance with the primary key could not be foundNoSuchCPInstanceException
-
filterFindByGroupId
Returns all the cp instances that the user has permission to view where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the matching cp instances that the user has permission to view
-
filterFindByGroupId
Returns a range of all the cp instances that the user has permission to view where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances that the user has permission to view
-
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp instances that the user has permission to view
-
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 instancegroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp instance
- Throws:
NoSuchCPInstanceException
- if a cp instance with the primary key could not be foundNoSuchCPInstanceException
-
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
Returns all the cp instances where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching cp instances
-
findByCompanyId
Returns a range of all the cp instances where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances
-
findByCompanyId
public static List<CPInstance> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp instances
-
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp instances
-
findByCompanyId_First
public static CPInstance findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException Returns the first cp instance in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
fetchByCompanyId_First
public static CPInstance fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp instance, or
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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 instancecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp instance
- Throws:
NoSuchCPInstanceException
- if a cp instance with the primary key could not be foundNoSuchCPInstanceException
-
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
Returns all the cp instances where CPDefinitionId = ?.- Parameters:
CPDefinitionId
- the cp definition ID- Returns:
- the matching cp instances
-
findByCPDefinitionId
Returns a range of all the cp instances where CPDefinitionId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
CPDefinitionId
- the cp definition IDstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances
-
findByCPDefinitionId
public static List<CPInstance> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where CPDefinitionId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
CPDefinitionId
- the cp definition IDstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp instances
-
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
CPDefinitionId
- the cp definition IDstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp instances
-
findByCPDefinitionId_First
public static CPInstance findByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException Returns the first cp instance in the ordered set where CPDefinitionId = ?.- Parameters:
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
fetchByCPDefinitionId_First
public static CPInstance fetchByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where CPDefinitionId = ?.- Parameters:
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp instance, or
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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 instanceCPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp instance
- Throws:
NoSuchCPInstanceException
- if a cp instance with the primary key could not be foundNoSuchCPInstanceException
-
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
Returns all the cp instances where CPInstanceUuid = ?.- Parameters:
CPInstanceUuid
- the cp instance uuid- Returns:
- the matching cp instances
-
findByCPInstanceUuid
Returns a range of all the cp instances where CPInstanceUuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
CPInstanceUuid
- the cp instance uuidstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances
-
findByCPInstanceUuid
public static List<CPInstance> findByCPInstanceUuid(String CPInstanceUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where CPInstanceUuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
CPInstanceUuid
- the cp instance uuidstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp instances
-
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
CPInstanceUuid
- the cp instance uuidstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp instances
-
findByCPInstanceUuid_First
public static CPInstance findByCPInstanceUuid_First(String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException Returns the first cp instance in the ordered set where CPInstanceUuid = ?.- Parameters:
CPInstanceUuid
- the cp instance uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
fetchByCPInstanceUuid_First
public static CPInstance fetchByCPInstanceUuid_First(String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where CPInstanceUuid = ?.- Parameters:
CPInstanceUuid
- the cp instance uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp instance, or
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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- 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 instanceCPInstanceUuid
- the cp instance uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp instance
- Throws:
NoSuchCPInstanceException
- if a cp instance with the primary key could not be foundNoSuchCPInstanceException
-
removeByCPInstanceUuid
Removes all the cp instances where CPInstanceUuid = ? from the database.- Parameters:
CPInstanceUuid
- the cp instance uuid
-
countByCPInstanceUuid
Returns the number of cp instances where CPInstanceUuid = ?.- Parameters:
CPInstanceUuid
- the cp instance uuid- Returns:
- the number of matching cp instances
-
findByG_ST
Returns all the cp instances where groupId = ? and status = ?.- Parameters:
groupId
- the group IDstatus
- the status- Returns:
- the matching cp instances
-
findByG_ST
Returns a range of all the cp instances where groupId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
groupId
- the group IDstatus
- the statusstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances
-
findByG_ST
public static List<CPInstance> findByG_ST(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where groupId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
groupId
- the group IDstatus
- the statusstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp instances
-
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
groupId
- the group IDstatus
- the statusstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp instances
-
findByG_ST_First
public static CPInstance findByG_ST_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException Returns the first cp instance in the ordered set where groupId = ? and status = ?.- Parameters:
groupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
fetchByG_ST_First
public static CPInstance fetchByG_ST_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where groupId = ? and status = ?.- Parameters:
groupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp instance, or
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 IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
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 IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- 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 instancegroupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp instance
- Throws:
NoSuchCPInstanceException
- if a cp instance with the primary key could not be foundNoSuchCPInstanceException
-
filterFindByG_ST
Returns all the cp instances that the user has permission to view where groupId = ? and status = ?.- Parameters:
groupId
- the group IDstatus
- the status- Returns:
- the matching cp instances that the user has permission to view
-
filterFindByG_ST
Returns a range of all the cp instances that the user has permission to view where groupId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
groupId
- the group IDstatus
- the statusstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances that the user has permission to view
-
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
groupId
- the group IDstatus
- the statusstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp instances that the user has permission to view
-
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 instancegroupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp instance
- Throws:
NoSuchCPInstanceException
- if a cp instance with the primary key could not be foundNoSuchCPInstanceException
-
removeByG_ST
public static void removeByG_ST(long groupId, int status) Removes all the cp instances where groupId = ? and status = ? from the database.- Parameters:
groupId
- the group IDstatus
- the status
-
countByG_ST
public static int countByG_ST(long groupId, int status) Returns the number of cp instances where groupId = ? and status = ?.- Parameters:
groupId
- the group IDstatus
- the status- Returns:
- the number of matching cp instances
-
filterCountByG_ST
public static int filterCountByG_ST(long groupId, int status) Returns the number of cp instances that the user has permission to view where groupId = ? and status = ?.- Parameters:
groupId
- the group IDstatus
- the status- Returns:
- the number of matching cp instances that the user has permission to view
-
findByC_S
Returns all the cp instances where companyId = ? and sku = ?.- Parameters:
companyId
- the company IDsku
- the sku- Returns:
- the matching cp instances
-
findByC_S
Returns a range of all the cp instances where companyId = ? and sku = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
companyId
- the company IDsku
- the skustart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances
-
findByC_S
public static List<CPInstance> findByC_S(long companyId, String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where companyId = ? and sku = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
companyId
- the company IDsku
- the skustart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp instances
-
findByC_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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
companyId
- the company IDsku
- the skustart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp instances
-
findByC_S_First
public static CPInstance findByC_S_First(long companyId, String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException Returns the first cp instance in the ordered set where companyId = ? and sku = ?.- Parameters:
companyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
fetchByC_S_First
public static CPInstance fetchByC_S_First(long companyId, String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where companyId = ? and sku = ?.- Parameters:
companyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp instance, or
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 IDsku
- the skuorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
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 IDsku
- the skuorderByComparator
- the comparator to order the set by (optionallynull
)- 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 instancecompanyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp instance
- Throws:
NoSuchCPInstanceException
- if a cp instance with the primary key could not be foundNoSuchCPInstanceException
-
removeByC_S
Removes all the cp instances where companyId = ? and sku = ? from the database.- Parameters:
companyId
- the company IDsku
- the sku
-
countByC_S
Returns the number of cp instances where companyId = ? and sku = ?.- Parameters:
companyId
- the company IDsku
- the sku- Returns:
- the number of matching cp instances
-
findByC_C
public static CPInstance findByC_C(long CPDefinitionId, String CPInstanceUuid) throws NoSuchCPInstanceException Returns the cp instance where CPDefinitionId = ? and CPInstanceUuid = ? or throws aNoSuchCPInstanceException
if it could not be found.- Parameters:
CPDefinitionId
- the cp definition IDCPInstanceUuid
- the cp instance uuid- Returns:
- the matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
fetchByC_C
Returns the cp instance where CPDefinitionId = ? and CPInstanceUuid = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
CPDefinitionId
- the cp definition IDCPInstanceUuid
- the cp instance uuid- Returns:
- the matching cp instance, or
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 returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
CPDefinitionId
- the cp definition IDCPInstanceUuid
- the cp instance uuiduseFinderCache
- whether to use the finder cache- Returns:
- the matching cp instance, or
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 IDCPInstanceUuid
- the cp instance uuid- Returns:
- the cp instance that was removed
- Throws:
NoSuchCPInstanceException
-
countByC_C
Returns the number of cp instances where CPDefinitionId = ? and CPInstanceUuid = ?.- Parameters:
CPDefinitionId
- the cp definition IDCPInstanceUuid
- the cp instance uuid- Returns:
- the number of matching cp instances
-
findByCPDI_S
public static CPInstance findByCPDI_S(long CPDefinitionId, String sku) throws NoSuchCPInstanceException Returns the cp instance where CPDefinitionId = ? and sku = ? or throws aNoSuchCPInstanceException
if it could not be found.- Parameters:
CPDefinitionId
- the cp definition IDsku
- the sku- Returns:
- the matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
fetchByCPDI_S
Returns the cp instance where CPDefinitionId = ? and sku = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
CPDefinitionId
- the cp definition IDsku
- the sku- Returns:
- the matching cp instance, or
null
if a matching cp instance could not be found
-
fetchByCPDI_S
Returns the cp instance where CPDefinitionId = ? and sku = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
CPDefinitionId
- the cp definition IDsku
- the skuuseFinderCache
- whether to use the finder cache- Returns:
- the matching cp instance, or
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 IDsku
- the sku- Returns:
- the cp instance that was removed
- Throws:
NoSuchCPInstanceException
-
countByCPDI_S
Returns the number of cp instances where CPDefinitionId = ? and sku = ?.- Parameters:
CPDefinitionId
- the cp definition IDsku
- the sku- Returns:
- the number of matching cp instances
-
findByC_ST
Returns all the cp instances where CPDefinitionId = ? and status = ?.- Parameters:
CPDefinitionId
- the cp definition IDstatus
- the status- Returns:
- the matching cp instances
-
findByC_ST
Returns a range of all the cp instances where CPDefinitionId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
CPDefinitionId
- the cp definition IDstatus
- the statusstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances
-
findByC_ST
public static List<CPInstance> findByC_ST(long CPDefinitionId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where CPDefinitionId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
CPDefinitionId
- the cp definition IDstatus
- the statusstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp instances
-
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
CPDefinitionId
- the cp definition IDstatus
- the statusstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp instances
-
findByC_ST_First
public static CPInstance findByC_ST_First(long CPDefinitionId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException Returns the first cp instance in the ordered set where CPDefinitionId = ? and status = ?.- Parameters:
CPDefinitionId
- the cp definition IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
fetchByC_ST_First
public static CPInstance fetchByC_ST_First(long CPDefinitionId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where CPDefinitionId = ? and status = ?.- Parameters:
CPDefinitionId
- the cp definition IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp instance, or
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 IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
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 IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- 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 instanceCPDefinitionId
- the cp definition IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp instance
- Throws:
NoSuchCPInstanceException
- if a cp instance with the primary key could not be foundNoSuchCPInstanceException
-
removeByC_ST
public static void removeByC_ST(long CPDefinitionId, int status) Removes all the cp instances where CPDefinitionId = ? and status = ? from the database.- Parameters:
CPDefinitionId
- the cp definition IDstatus
- the status
-
countByC_ST
public static int countByC_ST(long CPDefinitionId, int status) Returns the number of cp instances where CPDefinitionId = ? and status = ?.- Parameters:
CPDefinitionId
- the cp definition IDstatus
- the status- Returns:
- the number of matching cp instances
-
findByLtD_S
Returns all the cp instances where displayDate < ? and status = ?.- Parameters:
displayDate
- the display datestatus
- the status- Returns:
- the matching cp instances
-
findByLtD_S
Returns a range of all the cp instances where displayDate < ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances
-
findByLtD_S
public static List<CPInstance> findByLtD_S(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where displayDate < ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp instances
-
findByLtD_S
public static List<CPInstance> findByLtD_S(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where displayDate < ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp instances
-
findByLtD_S_First
public static CPInstance findByLtD_S_First(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException Returns the first cp instance in the ordered set where displayDate < ? and status = ?.- Parameters:
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
fetchByLtD_S_First
public static CPInstance fetchByLtD_S_First(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where displayDate < ? and status = ?.- Parameters:
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp instance, or
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 datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
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 datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- 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 instancedisplayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp instance
- Throws:
NoSuchCPInstanceException
- if a cp instance with the primary key could not be foundNoSuchCPInstanceException
-
removeByLtD_S
Removes all the cp instances where displayDate < ? and status = ? from the database.- Parameters:
displayDate
- the display datestatus
- the status
-
countByLtD_S
Returns the number of cp instances where displayDate < ? and status = ?.- Parameters:
displayDate
- the display datestatus
- the status- Returns:
- the number of matching cp instances
-
findByC_LtD_S
Returns all the cp instances where CPDefinitionId = ? and displayDate < ? and status = ?.- Parameters:
CPDefinitionId
- the cp definition IDdisplayDate
- the display datestatus
- the status- Returns:
- the matching cp instances
-
findByC_LtD_S
public static List<CPInstance> findByC_LtD_S(long CPDefinitionId, Date displayDate, int status, int start, int end) Returns a range of all the cp instances where CPDefinitionId = ? and displayDate < ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
CPDefinitionId
- the cp definition IDdisplayDate
- the display datestatus
- the statusstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances
-
findByC_LtD_S
public static List<CPInstance> findByC_LtD_S(long CPDefinitionId, Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where CPDefinitionId = ? and displayDate < ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
CPDefinitionId
- the cp definition IDdisplayDate
- the display datestatus
- the statusstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp instances
-
findByC_LtD_S
public static List<CPInstance> findByC_LtD_S(long CPDefinitionId, Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp instances where CPDefinitionId = ? and displayDate < ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
CPDefinitionId
- the cp definition IDdisplayDate
- the display datestatus
- the statusstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp instances
-
findByC_LtD_S_First
public static CPInstance findByC_LtD_S_First(long CPDefinitionId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException Returns the first cp instance in the ordered set where CPDefinitionId = ? and displayDate < ? and status = ?.- Parameters:
CPDefinitionId
- the cp definition IDdisplayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
fetchByC_LtD_S_First
public static CPInstance fetchByC_LtD_S_First(long CPDefinitionId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where CPDefinitionId = ? and displayDate < ? and status = ?.- Parameters:
CPDefinitionId
- the cp definition IDdisplayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp instance, or
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 IDdisplayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
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 IDdisplayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- 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 instanceCPDefinitionId
- the cp definition IDdisplayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp instance
- Throws:
NoSuchCPInstanceException
- if a cp instance with the primary key could not be foundNoSuchCPInstanceException
-
removeByC_LtD_S
Removes all the cp instances where CPDefinitionId = ? and displayDate < ? and status = ? from the database.- Parameters:
CPDefinitionId
- the cp definition IDdisplayDate
- the display datestatus
- the status
-
countByC_LtD_S
Returns the number of cp instances where CPDefinitionId = ? and displayDate < ? and status = ?.- Parameters:
CPDefinitionId
- the cp definition IDdisplayDate
- the display datestatus
- the status- Returns:
- the number of matching cp instances
-
findByR_R_S
public static List<CPInstance> findByR_R_S(String replacementCPInstanceUuid, long replacementCProductId, int status) Returns all the cp instances where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.- Parameters:
replacementCPInstanceUuid
- the replacement cp instance uuidreplacementCProductId
- the replacement c product IDstatus
- the status- Returns:
- the matching cp instances
-
findByR_R_S
public static List<CPInstance> findByR_R_S(String replacementCPInstanceUuid, long replacementCProductId, int status, int start, int end) Returns a range of all the cp instances where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
replacementCPInstanceUuid
- the replacement cp instance uuidreplacementCProductId
- the replacement c product IDstatus
- the statusstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of matching cp instances
-
findByR_R_S
public static List<CPInstance> findByR_R_S(String replacementCPInstanceUuid, long replacementCProductId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns an ordered range of all the cp instances where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
replacementCPInstanceUuid
- the replacement cp instance uuidreplacementCProductId
- the replacement c product IDstatus
- the statusstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp instances
-
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
replacementCPInstanceUuid
- the replacement cp instance uuidreplacementCProductId
- the replacement c product IDstatus
- the statusstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp instances
-
findByR_R_S_First
public static CPInstance findByR_R_S_First(String replacementCPInstanceUuid, long replacementCProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException Returns the first cp instance in the ordered set where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.- Parameters:
replacementCPInstanceUuid
- the replacement cp instance uuidreplacementCProductId
- the replacement c product IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
fetchByR_R_S_First
public static CPInstance fetchByR_R_S_First(String replacementCPInstanceUuid, long replacementCProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) Returns the first cp instance in the ordered set where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.- Parameters:
replacementCPInstanceUuid
- the replacement cp instance uuidreplacementCProductId
- the replacement c product IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp instance, or
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 uuidreplacementCProductId
- the replacement c product IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
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 uuidreplacementCProductId
- the replacement c product IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- 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 instancereplacementCPInstanceUuid
- the replacement cp instance uuidreplacementCProductId
- the replacement c product IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp instance
- Throws:
NoSuchCPInstanceException
- if a cp instance with the primary key could not be foundNoSuchCPInstanceException
-
removeByR_R_S
public static void removeByR_R_S(String replacementCPInstanceUuid, long replacementCProductId, int status) Removes all the cp instances where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ? from the database.- Parameters:
replacementCPInstanceUuid
- the replacement cp instance uuidreplacementCProductId
- the replacement c product IDstatus
- the status
-
countByR_R_S
public static int countByR_R_S(String replacementCPInstanceUuid, long replacementCProductId, int status) Returns the number of cp instances where replacementCPInstanceUuid = ? and replacementCProductId = ? and status = ?.- Parameters:
replacementCPInstanceUuid
- the replacement cp instance uuidreplacementCProductId
- the replacement c product IDstatus
- the status- Returns:
- the number of matching cp instances
-
findByERC_C
public static CPInstance findByERC_C(String externalReferenceCode, long companyId) throws NoSuchCPInstanceException Returns the cp instance where externalReferenceCode = ? and companyId = ? or throws aNoSuchCPInstanceException
if it could not be found.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching cp instance
- Throws:
NoSuchCPInstanceException
- if a matching cp instance could not be foundNoSuchCPInstanceException
-
fetchByERC_C
Returns the cp instance where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- 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 returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching cp instance, or
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 codecompanyId
- the company ID- Returns:
- the cp instance that was removed
- Throws:
NoSuchCPInstanceException
-
countByERC_C
Returns the number of cp instances where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the number of matching cp instances
-
cacheResult
Caches the cp instance in the entity cache if it is enabled.- Parameters:
cpInstance
- the cp instance
-
cacheResult
Caches the cp instances in the entity cache if it is enabled.- Parameters:
cpInstances
- the cp instances
-
create
Creates a new cp instance with the primary key. Does not add the cp instance to the database.- Parameters:
CPInstanceId
- the primary key for the new cp instance- Returns:
- the new cp instance
-
remove
Removes the cp instance with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
CPInstanceId
- the primary key of the cp instance- Returns:
- the cp instance that was removed
- Throws:
NoSuchCPInstanceException
- if a cp instance with the primary key could not be foundNoSuchCPInstanceException
-
updateImpl
-
findByPrimaryKey
Returns the cp instance with the primary key or throws aNoSuchCPInstanceException
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 foundNoSuchCPInstanceException
-
fetchByPrimaryKey
Returns the cp instance with the primary key or returnsnull
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
Returns all the cp instances.- Returns:
- the cp instances
-
findAll
Returns a range of all the cp instances.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
start
- the lower bound of the range of cp instancesend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
start
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPInstanceModelImpl
.- Parameters:
start
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of 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
-
setPersistence
-