public class CPInstanceUtil
extends java.lang.Object
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
CPInstancePersistence
Constructor and Description |
---|
CPInstanceUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CPInstance cpInstance)
Caches the cp instance in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CPInstance> cpInstances)
Caches the cp instances in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CPInstance cpInstance) |
static int |
countAll()
Returns the number of cp instances.
|
static int |
countByC_C(long CPDefinitionId,
java.lang.String CPInstanceUuid)
Returns the number of cp instances where CPDefinitionId = ? and CPInstanceUuid = ?.
|
static int |
countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of cp instances where companyId = ? and externalReferenceCode = ?.
|
static int |
countByC_LtD_S(long CPDefinitionId,
java.util.Date displayDate,
int status)
Returns the number of cp instances where CPDefinitionId = ? and displayDate < ? and status = ?.
|
static int |
countByC_SKU(long companyId,
java.lang.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_SKU(long CPDefinitionId,
java.lang.String sku)
Returns the number of cp instances where CPDefinitionId = ? and sku = ?.
|
static int |
countByCPInstanceUuid(java.lang.String CPInstanceUuid)
Returns the number of cp instances where CPInstanceUuid = ?.
|
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(java.util.Date displayDate,
int status)
Returns the number of cp instances where displayDate < ? and status = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of cp instances where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of cp instances where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of cp instances where uuid = ?.
|
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,
java.lang.String CPInstanceUuid)
Returns the cp instance where CPDefinitionId = ? and CPInstanceUuid = ? or returns
null if it could not be found. |
static CPInstance |
fetchByC_C(long CPDefinitionId,
java.lang.String CPInstanceUuid,
boolean useFinderCache)
Returns the cp instance where CPDefinitionId = ? and CPInstanceUuid = ? or returns
null if it could not be found, optionally using the finder cache. |
static CPInstance |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the cp instance where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found. |
static CPInstance |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode,
boolean useFinderCache)
Returns the cp instance where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found, optionally using the finder cache. |
static CPInstance |
fetchByC_LtD_S_First(long CPDefinitionId,
java.util.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,
java.util.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_SKU_First(long companyId,
java.lang.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_SKU_Last(long companyId,
java.lang.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_SKU(long CPDefinitionId,
java.lang.String sku)
Returns the cp instance where CPDefinitionId = ? and sku = ? or returns
null if it could not be found. |
static CPInstance |
fetchByCPDI_SKU(long CPDefinitionId,
java.lang.String sku,
boolean useFinderCache)
Returns the cp instance where CPDefinitionId = ? and sku = ? or returns
null if it could not be found, optionally using the finder cache. |
static CPInstance |
fetchByCPInstanceUuid_First(java.lang.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(java.lang.String CPInstanceUuid,
com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
Returns the last cp instance in the ordered set where CPInstanceUuid = ?.
|
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(java.util.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(java.util.Date displayDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
Returns the last cp instance in the ordered set where displayDate < ? and status = ?.
|
static CPInstance |
fetchByPrimaryKey(long CPInstanceId)
Returns the cp instance with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CPInstance> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CPInstance |
fetchByUuid_C_First(java.lang.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(java.lang.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(java.lang.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(java.lang.String uuid,
long groupId)
Returns the cp instance where uuid = ? and groupId = ? or returns
null if it could not be found. |
static CPInstance |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean useFinderCache)
Returns the cp instance where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CPInstance |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
Returns the last cp instance in the ordered set where uuid = ?.
|
static java.util.List<CPInstance> |
findAll()
Returns all the cp instances.
|
static java.util.List<CPInstance> |
findAll(int start,
int end)
Returns a range of all the cp instances.
|
static java.util.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 java.util.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 |
findByC_C(long CPDefinitionId,
java.lang.String CPInstanceUuid)
Returns the cp instance where CPDefinitionId = ? and CPInstanceUuid = ? or throws a
NoSuchCPInstanceException if it could not be found. |
static CPInstance |
findByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the cp instance where companyId = ? and externalReferenceCode = ? or throws a
NoSuchCPInstanceException if it could not be found. |
static CPInstance |
findByC_LtD_S_First(long CPDefinitionId,
java.util.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,
java.util.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,
java.util.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 java.util.List<CPInstance> |
findByC_LtD_S(long CPDefinitionId,
java.util.Date displayDate,
int status)
Returns all the cp instances where CPDefinitionId = ? and displayDate < ? and status = ?.
|
static java.util.List<CPInstance> |
findByC_LtD_S(long CPDefinitionId,
java.util.Date displayDate,
int status,
int start,
int end)
Returns a range of all the cp instances where CPDefinitionId = ? and displayDate < ? and status = ?.
|
static java.util.List<CPInstance> |
findByC_LtD_S(long CPDefinitionId,
java.util.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 java.util.List<CPInstance> |
findByC_LtD_S(long CPDefinitionId,
java.util.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_SKU_First(long companyId,
java.lang.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_SKU_Last(long companyId,
java.lang.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_SKU_PrevAndNext(long CPInstanceId,
long companyId,
java.lang.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 java.util.List<CPInstance> |
findByC_SKU(long companyId,
java.lang.String sku)
Returns all the cp instances where companyId = ? and sku = ?.
|
static java.util.List<CPInstance> |
findByC_SKU(long companyId,
java.lang.String sku,
int start,
int end)
Returns a range of all the cp instances where companyId = ? and sku = ?.
|
static java.util.List<CPInstance> |
findByC_SKU(long companyId,
java.lang.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 java.util.List<CPInstance> |
findByC_SKU(long companyId,
java.lang.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_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 java.util.List<CPInstance> |
findByC_ST(long CPDefinitionId,
int status)
Returns all the cp instances where CPDefinitionId = ? and status = ?.
|
static java.util.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 java.util.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 java.util.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 |
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 java.util.List<CPInstance> |
findByCompanyId(long companyId)
Returns all the cp instances where companyId = ?.
|
static java.util.List<CPInstance> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the cp instances where companyId = ?.
|
static java.util.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 java.util.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 |
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 java.util.List<CPInstance> |
findByCPDefinitionId(long CPDefinitionId)
Returns all the cp instances where CPDefinitionId = ?.
|
static java.util.List<CPInstance> |
findByCPDefinitionId(long CPDefinitionId,
int start,
int end)
Returns a range of all the cp instances where CPDefinitionId = ?.
|
static java.util.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 java.util.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 |
findByCPDI_SKU(long CPDefinitionId,
java.lang.String sku)
Returns the cp instance where CPDefinitionId = ? and sku = ? or throws a
NoSuchCPInstanceException if it could not be found. |
static CPInstance |
findByCPInstanceUuid_First(java.lang.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(java.lang.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,
java.lang.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 java.util.List<CPInstance> |
findByCPInstanceUuid(java.lang.String CPInstanceUuid)
Returns all the cp instances where CPInstanceUuid = ?.
|
static java.util.List<CPInstance> |
findByCPInstanceUuid(java.lang.String CPInstanceUuid,
int start,
int end)
Returns a range of all the cp instances where CPInstanceUuid = ?.
|
static java.util.List<CPInstance> |
findByCPInstanceUuid(java.lang.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 java.util.List<CPInstance> |
findByCPInstanceUuid(java.lang.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 |
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 java.util.List<CPInstance> |
findByG_ST(long groupId,
int status)
Returns all the cp instances where groupId = ? and status = ?.
|
static java.util.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 java.util.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 java.util.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 |
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 java.util.List<CPInstance> |
findByGroupId(long groupId)
Returns all the cp instances where groupId = ?.
|
static java.util.List<CPInstance> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the cp instances where groupId = ?.
|
static java.util.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 java.util.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 |
findByLtD_S_First(java.util.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(java.util.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,
java.util.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 java.util.List<CPInstance> |
findByLtD_S(java.util.Date displayDate,
int status)
Returns all the cp instances where displayDate < ? and status = ?.
|
static java.util.List<CPInstance> |
findByLtD_S(java.util.Date displayDate,
int status,
int start,
int end)
Returns a range of all the cp instances where displayDate < ? and status = ?.
|
static java.util.List<CPInstance> |
findByLtD_S(java.util.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 java.util.List<CPInstance> |
findByLtD_S(java.util.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 |
findByPrimaryKey(long CPInstanceId)
Returns the cp instance with the primary key or throws a
NoSuchCPInstanceException if it could not be found. |
static CPInstance |
findByUuid_C_First(java.lang.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(java.lang.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,
java.lang.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 java.util.List<CPInstance> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the cp instances where uuid = ? and companyId = ?.
|
static java.util.List<CPInstance> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the cp instances where uuid = ? and companyId = ?.
|
static java.util.List<CPInstance> |
findByUuid_C(java.lang.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 java.util.List<CPInstance> |
findByUuid_C(java.lang.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_First(java.lang.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(java.lang.String uuid,
long groupId)
Returns the cp instance where uuid = ? and groupId = ? or throws a
NoSuchCPInstanceException if it could not be found. |
static CPInstance |
findByUuid_Last(java.lang.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,
java.lang.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 java.util.List<CPInstance> |
findByUuid(java.lang.String uuid)
Returns all the cp instances where uuid = ?.
|
static java.util.List<CPInstance> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the cp instances where uuid = ?.
|
static java.util.List<CPInstance> |
findByUuid(java.lang.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 java.util.List<CPInstance> |
findByUuid(java.lang.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 java.util.List<CPInstance> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CPInstance> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.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 |
getPersistence() |
static CPInstance |
remove(long CPInstanceId)
Removes the cp instance with the primary key from the database.
|
static void |
removeAll()
Removes all the cp instances from the database.
|
static CPInstance |
removeByC_C(long CPDefinitionId,
java.lang.String CPInstanceUuid)
Removes the cp instance where CPDefinitionId = ? and CPInstanceUuid = ? from the database.
|
static CPInstance |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the cp instance where companyId = ? and externalReferenceCode = ? from the database.
|
static void |
removeByC_LtD_S(long CPDefinitionId,
java.util.Date displayDate,
int status)
Removes all the cp instances where CPDefinitionId = ? and displayDate < ? and status = ? from the database.
|
static void |
removeByC_SKU(long companyId,
java.lang.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_SKU(long CPDefinitionId,
java.lang.String sku)
Removes the cp instance where CPDefinitionId = ? and sku = ? from the database.
|
static void |
removeByCPInstanceUuid(java.lang.String CPInstanceUuid)
Removes all the cp instances where CPInstanceUuid = ? 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(java.util.Date displayDate,
int status)
Removes all the cp instances where displayDate < ? and status = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the cp instances where uuid = ? and companyId = ? from the database.
|
static CPInstance |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the cp instance where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the cp instances where uuid = ? from the database.
|
static CPInstance |
update(CPInstance cpInstance) |
static CPInstance |
update(CPInstance cpInstance,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CPInstance |
updateImpl(CPInstance cpInstance) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CPInstance cpInstance)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CPInstance> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CPInstance> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CPInstance> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CPInstance> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CPInstance update(CPInstance cpInstance)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CPInstance update(CPInstance cpInstance, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CPInstance> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CPInstance> findByUuid(java.lang.String uuid, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)public static java.util.List<CPInstance> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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 (optionally null
)public static java.util.List<CPInstance> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPInstance findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a matching cp instance could not be foundpublic static CPInstance fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance could not be foundpublic static CPInstance findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a matching cp instance could not be foundpublic static CPInstance fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance could not be foundpublic static CPInstance[] findByUuid_PrevAndNext(long CPInstanceId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
CPInstanceId
- the primary key of the current cp instanceuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a cp instance with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static CPInstance findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCPInstanceException
NoSuchCPInstanceException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchCPInstanceException
- if a matching cp instance could not be foundpublic static CPInstance fetchByUUID_G(java.lang.String uuid, long groupId)
null
if it could not be found. Uses the finder cache.uuid
- the uuidgroupId
- the group IDnull
if a matching cp instance could not be foundpublic static CPInstance fetchByUUID_G(java.lang.String uuid, long groupId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cachenull
if a matching cp instance could not be foundpublic static CPInstance removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCPInstanceException
uuid
- the uuidgroupId
- the group IDNoSuchCPInstanceException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<CPInstance> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CPInstance> findByUuid_C(java.lang.String uuid, long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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)public static java.util.List<CPInstance> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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 (optionally null
)public static java.util.List<CPInstance> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPInstance findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a matching cp instance could not be foundpublic static CPInstance fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance could not be foundpublic static CPInstance findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a matching cp instance could not be foundpublic static CPInstance fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance could not be foundpublic static CPInstance[] findByUuid_C_PrevAndNext(long CPInstanceId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
CPInstanceId
- the primary key of the current cp instanceuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a cp instance with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CPInstance> findByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<CPInstance> findByGroupId(long groupId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)public static java.util.List<CPInstance> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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 (optionally null
)public static java.util.List<CPInstance> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPInstance findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a matching cp instance could not be foundpublic static CPInstance fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance could not be foundpublic static CPInstance findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a matching cp instance could not be foundpublic static CPInstance fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance could not be foundpublic static CPInstance[] findByGroupId_PrevAndNext(long CPInstanceId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
CPInstanceId
- the primary key of the current cp instancegroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a cp instance with the primary key could not be foundpublic static void removeByGroupId(long groupId)
groupId
- the group IDpublic static int countByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<CPInstance> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CPInstance> findByCompanyId(long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)public static java.util.List<CPInstance> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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 (optionally null
)public static java.util.List<CPInstance> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPInstance findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a matching cp instance could not be foundpublic static CPInstance fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance could not be foundpublic static CPInstance findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a matching cp instance could not be foundpublic static CPInstance fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance could not be foundpublic static CPInstance[] findByCompanyId_PrevAndNext(long CPInstanceId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
CPInstanceId
- the primary key of the current cp instancecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a cp instance with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CPInstance> findByCPDefinitionId(long CPDefinitionId)
CPDefinitionId
- the cp definition IDpublic static java.util.List<CPInstance> findByCPDefinitionId(long CPDefinitionId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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)public static java.util.List<CPInstance> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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 (optionally null
)public static java.util.List<CPInstance> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPInstance findByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a matching cp instance could not be foundpublic static CPInstance fetchByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance could not be foundpublic static CPInstance findByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a matching cp instance could not be foundpublic static CPInstance fetchByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance could not be foundpublic static CPInstance[] findByCPDefinitionId_PrevAndNext(long CPInstanceId, long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
CPInstanceId
- the primary key of the current cp instanceCPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a cp instance with the primary key could not be foundpublic static void removeByCPDefinitionId(long CPDefinitionId)
CPDefinitionId
- the cp definition IDpublic static int countByCPDefinitionId(long CPDefinitionId)
CPDefinitionId
- the cp definition IDpublic static java.util.List<CPInstance> findByCPInstanceUuid(java.lang.String CPInstanceUuid)
CPInstanceUuid
- the cp instance uuidpublic static java.util.List<CPInstance> findByCPInstanceUuid(java.lang.String CPInstanceUuid, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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)public static java.util.List<CPInstance> findByCPInstanceUuid(java.lang.String CPInstanceUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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 (optionally null
)public static java.util.List<CPInstance> findByCPInstanceUuid(java.lang.String CPInstanceUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPInstance findByCPInstanceUuid_First(java.lang.String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
CPInstanceUuid
- the cp instance uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a matching cp instance could not be foundpublic static CPInstance fetchByCPInstanceUuid_First(java.lang.String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
CPInstanceUuid
- the cp instance uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance could not be foundpublic static CPInstance findByCPInstanceUuid_Last(java.lang.String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
CPInstanceUuid
- the cp instance uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a matching cp instance could not be foundpublic static CPInstance fetchByCPInstanceUuid_Last(java.lang.String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
CPInstanceUuid
- the cp instance uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance could not be foundpublic static CPInstance[] findByCPInstanceUuid_PrevAndNext(long CPInstanceId, java.lang.String CPInstanceUuid, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
CPInstanceId
- the primary key of the current cp instanceCPInstanceUuid
- the cp instance uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a cp instance with the primary key could not be foundpublic static void removeByCPInstanceUuid(java.lang.String CPInstanceUuid)
CPInstanceUuid
- the cp instance uuidpublic static int countByCPInstanceUuid(java.lang.String CPInstanceUuid)
CPInstanceUuid
- the cp instance uuidpublic static java.util.List<CPInstance> findByG_ST(long groupId, int status)
groupId
- the group IDstatus
- the statuspublic static java.util.List<CPInstance> findByG_ST(long groupId, int status, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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)public static java.util.List<CPInstance> findByG_ST(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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 (optionally null
)public static java.util.List<CPInstance> findByG_ST(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPInstance findByG_ST_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
groupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a matching cp instance could not be foundpublic static CPInstance fetchByG_ST_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
groupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance could not be foundpublic static CPInstance findByG_ST_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
groupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a matching cp instance could not be foundpublic static CPInstance fetchByG_ST_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
groupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance could not be foundpublic static CPInstance[] findByG_ST_PrevAndNext(long CPInstanceId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
CPInstanceId
- the primary key of the current cp instancegroupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a cp instance with the primary key could not be foundpublic static void removeByG_ST(long groupId, int status)
groupId
- the group IDstatus
- the statuspublic static int countByG_ST(long groupId, int status)
groupId
- the group IDstatus
- the statuspublic static java.util.List<CPInstance> findByC_SKU(long companyId, java.lang.String sku)
companyId
- the company IDsku
- the skupublic static java.util.List<CPInstance> findByC_SKU(long companyId, java.lang.String sku, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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)public static java.util.List<CPInstance> findByC_SKU(long companyId, java.lang.String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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 (optionally null
)public static java.util.List<CPInstance> findByC_SKU(long companyId, java.lang.String sku, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPInstance findByC_SKU_First(long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
companyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a matching cp instance could not be foundpublic static CPInstance fetchByC_SKU_First(long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
companyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance could not be foundpublic static CPInstance findByC_SKU_Last(long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
companyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a matching cp instance could not be foundpublic static CPInstance fetchByC_SKU_Last(long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
companyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance could not be foundpublic static CPInstance[] findByC_SKU_PrevAndNext(long CPInstanceId, long companyId, java.lang.String sku, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
CPInstanceId
- the primary key of the current cp instancecompanyId
- the company IDsku
- the skuorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a cp instance with the primary key could not be foundpublic static void removeByC_SKU(long companyId, java.lang.String sku)
companyId
- the company IDsku
- the skupublic static int countByC_SKU(long companyId, java.lang.String sku)
companyId
- the company IDsku
- the skupublic static CPInstance findByC_C(long CPDefinitionId, java.lang.String CPInstanceUuid) throws NoSuchCPInstanceException
NoSuchCPInstanceException
if it could not be found.CPDefinitionId
- the cp definition IDCPInstanceUuid
- the cp instance uuidNoSuchCPInstanceException
- if a matching cp instance could not be foundpublic static CPInstance fetchByC_C(long CPDefinitionId, java.lang.String CPInstanceUuid)
null
if it could not be found. Uses the finder cache.CPDefinitionId
- the cp definition IDCPInstanceUuid
- the cp instance uuidnull
if a matching cp instance could not be foundpublic static CPInstance fetchByC_C(long CPDefinitionId, java.lang.String CPInstanceUuid, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.CPDefinitionId
- the cp definition IDCPInstanceUuid
- the cp instance uuiduseFinderCache
- whether to use the finder cachenull
if a matching cp instance could not be foundpublic static CPInstance removeByC_C(long CPDefinitionId, java.lang.String CPInstanceUuid) throws NoSuchCPInstanceException
CPDefinitionId
- the cp definition IDCPInstanceUuid
- the cp instance uuidNoSuchCPInstanceException
public static int countByC_C(long CPDefinitionId, java.lang.String CPInstanceUuid)
CPDefinitionId
- the cp definition IDCPInstanceUuid
- the cp instance uuidpublic static CPInstance findByCPDI_SKU(long CPDefinitionId, java.lang.String sku) throws NoSuchCPInstanceException
NoSuchCPInstanceException
if it could not be found.CPDefinitionId
- the cp definition IDsku
- the skuNoSuchCPInstanceException
- if a matching cp instance could not be foundpublic static CPInstance fetchByCPDI_SKU(long CPDefinitionId, java.lang.String sku)
null
if it could not be found. Uses the finder cache.CPDefinitionId
- the cp definition IDsku
- the skunull
if a matching cp instance could not be foundpublic static CPInstance fetchByCPDI_SKU(long CPDefinitionId, java.lang.String sku, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.CPDefinitionId
- the cp definition IDsku
- the skuuseFinderCache
- whether to use the finder cachenull
if a matching cp instance could not be foundpublic static CPInstance removeByCPDI_SKU(long CPDefinitionId, java.lang.String sku) throws NoSuchCPInstanceException
CPDefinitionId
- the cp definition IDsku
- the skuNoSuchCPInstanceException
public static int countByCPDI_SKU(long CPDefinitionId, java.lang.String sku)
CPDefinitionId
- the cp definition IDsku
- the skupublic static java.util.List<CPInstance> findByC_ST(long CPDefinitionId, int status)
CPDefinitionId
- the cp definition IDstatus
- the statuspublic static java.util.List<CPInstance> findByC_ST(long CPDefinitionId, int status, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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)public static java.util.List<CPInstance> findByC_ST(long CPDefinitionId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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 (optionally null
)public static java.util.List<CPInstance> findByC_ST(long CPDefinitionId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPInstance findByC_ST_First(long CPDefinitionId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
CPDefinitionId
- the cp definition IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a matching cp instance could not be foundpublic static CPInstance fetchByC_ST_First(long CPDefinitionId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
CPDefinitionId
- the cp definition IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance could not be foundpublic static CPInstance findByC_ST_Last(long CPDefinitionId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
CPDefinitionId
- the cp definition IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a matching cp instance could not be foundpublic static CPInstance fetchByC_ST_Last(long CPDefinitionId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
CPDefinitionId
- the cp definition IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance could not be foundpublic static CPInstance[] findByC_ST_PrevAndNext(long CPInstanceId, long CPDefinitionId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
CPInstanceId
- the primary key of the current cp instanceCPDefinitionId
- the cp definition IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a cp instance with the primary key could not be foundpublic static void removeByC_ST(long CPDefinitionId, int status)
CPDefinitionId
- the cp definition IDstatus
- the statuspublic static int countByC_ST(long CPDefinitionId, int status)
CPDefinitionId
- the cp definition IDstatus
- the statuspublic static java.util.List<CPInstance> findByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statuspublic static java.util.List<CPInstance> findByLtD_S(java.util.Date displayDate, int status, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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)public static java.util.List<CPInstance> findByLtD_S(java.util.Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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 (optionally null
)public static java.util.List<CPInstance> findByLtD_S(java.util.Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPInstance findByLtD_S_First(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a matching cp instance could not be foundpublic static CPInstance fetchByLtD_S_First(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance could not be foundpublic static CPInstance findByLtD_S_Last(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a matching cp instance could not be foundpublic static CPInstance fetchByLtD_S_Last(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance could not be foundpublic static CPInstance[] findByLtD_S_PrevAndNext(long CPInstanceId, java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
CPInstanceId
- the primary key of the current cp instancedisplayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a cp instance with the primary key could not be foundpublic static void removeByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statuspublic static int countByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statuspublic static java.util.List<CPInstance> findByC_LtD_S(long CPDefinitionId, java.util.Date displayDate, int status)
CPDefinitionId
- the cp definition IDdisplayDate
- the display datestatus
- the statuspublic static java.util.List<CPInstance> findByC_LtD_S(long CPDefinitionId, java.util.Date displayDate, int status, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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)public static java.util.List<CPInstance> findByC_LtD_S(long CPDefinitionId, java.util.Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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 (optionally null
)public static java.util.List<CPInstance> findByC_LtD_S(long CPDefinitionId, java.util.Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPInstance findByC_LtD_S_First(long CPDefinitionId, java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
CPDefinitionId
- the cp definition IDdisplayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a matching cp instance could not be foundpublic static CPInstance fetchByC_LtD_S_First(long CPDefinitionId, java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
CPDefinitionId
- the cp definition IDdisplayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance could not be foundpublic static CPInstance findByC_LtD_S_Last(long CPDefinitionId, java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
CPDefinitionId
- the cp definition IDdisplayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPInstanceException
- if a matching cp instance could not be foundpublic static CPInstance fetchByC_LtD_S_Last(long CPDefinitionId, java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
CPDefinitionId
- the cp definition IDdisplayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp instance could not be foundpublic static CPInstance[] findByC_LtD_S_PrevAndNext(long CPInstanceId, long CPDefinitionId, java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException
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 (optionally null
)NoSuchCPInstanceException
- if a cp instance with the primary key could not be foundpublic static void removeByC_LtD_S(long CPDefinitionId, java.util.Date displayDate, int status)
CPDefinitionId
- the cp definition IDdisplayDate
- the display datestatus
- the statuspublic static int countByC_LtD_S(long CPDefinitionId, java.util.Date displayDate, int status)
CPDefinitionId
- the cp definition IDdisplayDate
- the display datestatus
- the statuspublic static CPInstance findByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchCPInstanceException
NoSuchCPInstanceException
if it could not be found.companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchCPInstanceException
- if a matching cp instance could not be foundpublic static CPInstance fetchByC_ERC(long companyId, java.lang.String externalReferenceCode)
null
if it could not be found. Uses the finder cache.companyId
- the company IDexternalReferenceCode
- the external reference codenull
if a matching cp instance could not be foundpublic static CPInstance fetchByC_ERC(long companyId, java.lang.String externalReferenceCode, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDexternalReferenceCode
- the external reference codeuseFinderCache
- whether to use the finder cachenull
if a matching cp instance could not be foundpublic static CPInstance removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchCPInstanceException
companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchCPInstanceException
public static int countByC_ERC(long companyId, java.lang.String externalReferenceCode)
companyId
- the company IDexternalReferenceCode
- the external reference codepublic static void cacheResult(CPInstance cpInstance)
cpInstance
- the cp instancepublic static void cacheResult(java.util.List<CPInstance> cpInstances)
cpInstances
- the cp instancespublic static CPInstance create(long CPInstanceId)
CPInstanceId
- the primary key for the new cp instancepublic static CPInstance remove(long CPInstanceId) throws NoSuchCPInstanceException
CPInstanceId
- the primary key of the cp instanceNoSuchCPInstanceException
- if a cp instance with the primary key could not be foundpublic static CPInstance updateImpl(CPInstance cpInstance)
public static CPInstance findByPrimaryKey(long CPInstanceId) throws NoSuchCPInstanceException
NoSuchCPInstanceException
if it could not be found.CPInstanceId
- the primary key of the cp instanceNoSuchCPInstanceException
- if a cp instance with the primary key could not be foundpublic static CPInstance fetchByPrimaryKey(long CPInstanceId)
null
if it could not be found.CPInstanceId
- the primary key of the cp instancenull
if a cp instance with the primary key could not be foundpublic static java.util.List<CPInstance> findAll()
public static java.util.List<CPInstance> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
start
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)public static java.util.List<CPInstance> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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 (optionally null
)public static java.util.List<CPInstance> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPInstanceModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CPInstancePersistence getPersistence()