public class CPDefinitionUtil
extends java.lang.Object
com.liferay.commerce.product.service.persistence.impl.CPDefinitionPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
CPDefinitionPersistence
Constructor and Description |
---|
CPDefinitionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CPDefinition cpDefinition)
Caches the cp definition in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CPDefinition> cpDefinitions)
Caches the cp definitions in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CPDefinition cpDefinition) |
static int |
countAll()
Returns the number of cp definitions.
|
static int |
countByC_S(long CProductId,
int status)
Returns the number of cp definitions where CProductId = ? and status = ?.
|
static int |
countByC_V(long CProductId,
int version)
Returns the number of cp definitions where CProductId = ? and version = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of cp definitions where companyId = ?.
|
static int |
countByCPTaxCategoryId(long CPTaxCategoryId)
Returns the number of cp definitions where CPTaxCategoryId = ?.
|
static int |
countByG_S(long groupId,
int status)
Returns the number of cp definitions where groupId = ? and status = ?.
|
static int |
countByG_SE(long groupId,
boolean subscriptionEnabled)
Returns the number of cp definitions where groupId = ? and subscriptionEnabled = ?.
|
static int |
countByGroupId(long groupId)
Returns the number of cp definitions where groupId = ?.
|
static int |
countByLtD_S(java.util.Date displayDate,
int status)
Returns the number of cp definitions where displayDate < ? and status = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of cp definitions where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of cp definitions where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of cp definitions where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CPDefinition |
create(long CPDefinitionId)
Creates a new cp definition with the primary key.
|
static CPDefinition |
fetchByC_S_First(long CProductId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the first cp definition in the ordered set where CProductId = ? and status = ?.
|
static CPDefinition |
fetchByC_S_Last(long CProductId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the last cp definition in the ordered set where CProductId = ? and status = ?.
|
static CPDefinition |
fetchByC_V(long CProductId,
int version)
Returns the cp definition where CProductId = ? and version = ? or returns
null if it could not be found. |
static CPDefinition |
fetchByC_V(long CProductId,
int version,
boolean useFinderCache)
Returns the cp definition where CProductId = ? and version = ? or returns
null if it could not be found, optionally using the finder cache. |
static CPDefinition |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the first cp definition in the ordered set where companyId = ?.
|
static CPDefinition |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the last cp definition in the ordered set where companyId = ?.
|
static CPDefinition |
fetchByCPTaxCategoryId_First(long CPTaxCategoryId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the first cp definition in the ordered set where CPTaxCategoryId = ?.
|
static CPDefinition |
fetchByCPTaxCategoryId_Last(long CPTaxCategoryId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the last cp definition in the ordered set where CPTaxCategoryId = ?.
|
static CPDefinition |
fetchByG_S_First(long groupId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the first cp definition in the ordered set where groupId = ? and status = ?.
|
static CPDefinition |
fetchByG_S_Last(long groupId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the last cp definition in the ordered set where groupId = ? and status = ?.
|
static CPDefinition |
fetchByG_SE_First(long groupId,
boolean subscriptionEnabled,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the first cp definition in the ordered set where groupId = ? and subscriptionEnabled = ?.
|
static CPDefinition |
fetchByG_SE_Last(long groupId,
boolean subscriptionEnabled,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the last cp definition in the ordered set where groupId = ? and subscriptionEnabled = ?.
|
static CPDefinition |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the first cp definition in the ordered set where groupId = ?.
|
static CPDefinition |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the last cp definition in the ordered set where groupId = ?.
|
static CPDefinition |
fetchByLtD_S_First(java.util.Date displayDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the first cp definition in the ordered set where displayDate < ? and status = ?.
|
static CPDefinition |
fetchByLtD_S_Last(java.util.Date displayDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the last cp definition in the ordered set where displayDate < ? and status = ?.
|
static CPDefinition |
fetchByPrimaryKey(long CPDefinitionId)
Returns the cp definition with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CPDefinition> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CPDefinition |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the first cp definition in the ordered set where uuid = ? and companyId = ?.
|
static CPDefinition |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the last cp definition in the ordered set where uuid = ? and companyId = ?.
|
static CPDefinition |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the first cp definition in the ordered set where uuid = ?.
|
static CPDefinition |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the cp definition where uuid = ? and groupId = ? or returns
null if it could not be found. |
static CPDefinition |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean useFinderCache)
Returns the cp definition where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CPDefinition |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the last cp definition in the ordered set where uuid = ?.
|
static java.util.List<CPDefinition> |
findAll()
Returns all the cp definitions.
|
static java.util.List<CPDefinition> |
findAll(int start,
int end)
Returns a range of all the cp definitions.
|
static java.util.List<CPDefinition> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns an ordered range of all the cp definitions.
|
static java.util.List<CPDefinition> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definitions.
|
static CPDefinition |
findByC_S_First(long CProductId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the first cp definition in the ordered set where CProductId = ? and status = ?.
|
static CPDefinition |
findByC_S_Last(long CProductId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the last cp definition in the ordered set where CProductId = ? and status = ?.
|
static CPDefinition[] |
findByC_S_PrevAndNext(long CPDefinitionId,
long CProductId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the cp definitions before and after the current cp definition in the ordered set where CProductId = ? and status = ?.
|
static java.util.List<CPDefinition> |
findByC_S(long CProductId,
int status)
Returns all the cp definitions where CProductId = ? and status = ?.
|
static java.util.List<CPDefinition> |
findByC_S(long CProductId,
int status,
int start,
int end)
Returns a range of all the cp definitions where CProductId = ? and status = ?.
|
static java.util.List<CPDefinition> |
findByC_S(long CProductId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns an ordered range of all the cp definitions where CProductId = ? and status = ?.
|
static java.util.List<CPDefinition> |
findByC_S(long CProductId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definitions where CProductId = ? and status = ?.
|
static CPDefinition |
findByC_V(long CProductId,
int version)
Returns the cp definition where CProductId = ? and version = ? or throws a
NoSuchCPDefinitionException if it could not be found. |
static CPDefinition |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the first cp definition in the ordered set where companyId = ?.
|
static CPDefinition |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the last cp definition in the ordered set where companyId = ?.
|
static CPDefinition[] |
findByCompanyId_PrevAndNext(long CPDefinitionId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the cp definitions before and after the current cp definition in the ordered set where companyId = ?.
|
static java.util.List<CPDefinition> |
findByCompanyId(long companyId)
Returns all the cp definitions where companyId = ?.
|
static java.util.List<CPDefinition> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the cp definitions where companyId = ?.
|
static java.util.List<CPDefinition> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns an ordered range of all the cp definitions where companyId = ?.
|
static java.util.List<CPDefinition> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definitions where companyId = ?.
|
static CPDefinition |
findByCPTaxCategoryId_First(long CPTaxCategoryId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the first cp definition in the ordered set where CPTaxCategoryId = ?.
|
static CPDefinition |
findByCPTaxCategoryId_Last(long CPTaxCategoryId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the last cp definition in the ordered set where CPTaxCategoryId = ?.
|
static CPDefinition[] |
findByCPTaxCategoryId_PrevAndNext(long CPDefinitionId,
long CPTaxCategoryId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the cp definitions before and after the current cp definition in the ordered set where CPTaxCategoryId = ?.
|
static java.util.List<CPDefinition> |
findByCPTaxCategoryId(long CPTaxCategoryId)
Returns all the cp definitions where CPTaxCategoryId = ?.
|
static java.util.List<CPDefinition> |
findByCPTaxCategoryId(long CPTaxCategoryId,
int start,
int end)
Returns a range of all the cp definitions where CPTaxCategoryId = ?.
|
static java.util.List<CPDefinition> |
findByCPTaxCategoryId(long CPTaxCategoryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns an ordered range of all the cp definitions where CPTaxCategoryId = ?.
|
static java.util.List<CPDefinition> |
findByCPTaxCategoryId(long CPTaxCategoryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definitions where CPTaxCategoryId = ?.
|
static CPDefinition |
findByG_S_First(long groupId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the first cp definition in the ordered set where groupId = ? and status = ?.
|
static CPDefinition |
findByG_S_Last(long groupId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the last cp definition in the ordered set where groupId = ? and status = ?.
|
static CPDefinition[] |
findByG_S_PrevAndNext(long CPDefinitionId,
long groupId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the cp definitions before and after the current cp definition in the ordered set where groupId = ? and status = ?.
|
static java.util.List<CPDefinition> |
findByG_S(long groupId,
int status)
Returns all the cp definitions where groupId = ? and status = ?.
|
static java.util.List<CPDefinition> |
findByG_S(long groupId,
int status,
int start,
int end)
Returns a range of all the cp definitions where groupId = ? and status = ?.
|
static java.util.List<CPDefinition> |
findByG_S(long groupId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns an ordered range of all the cp definitions where groupId = ? and status = ?.
|
static java.util.List<CPDefinition> |
findByG_S(long groupId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definitions where groupId = ? and status = ?.
|
static CPDefinition |
findByG_SE_First(long groupId,
boolean subscriptionEnabled,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the first cp definition in the ordered set where groupId = ? and subscriptionEnabled = ?.
|
static CPDefinition |
findByG_SE_Last(long groupId,
boolean subscriptionEnabled,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the last cp definition in the ordered set where groupId = ? and subscriptionEnabled = ?.
|
static CPDefinition[] |
findByG_SE_PrevAndNext(long CPDefinitionId,
long groupId,
boolean subscriptionEnabled,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the cp definitions before and after the current cp definition in the ordered set where groupId = ? and subscriptionEnabled = ?.
|
static java.util.List<CPDefinition> |
findByG_SE(long groupId,
boolean subscriptionEnabled)
Returns all the cp definitions where groupId = ? and subscriptionEnabled = ?.
|
static java.util.List<CPDefinition> |
findByG_SE(long groupId,
boolean subscriptionEnabled,
int start,
int end)
Returns a range of all the cp definitions where groupId = ? and subscriptionEnabled = ?.
|
static java.util.List<CPDefinition> |
findByG_SE(long groupId,
boolean subscriptionEnabled,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns an ordered range of all the cp definitions where groupId = ? and subscriptionEnabled = ?.
|
static java.util.List<CPDefinition> |
findByG_SE(long groupId,
boolean subscriptionEnabled,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definitions where groupId = ? and subscriptionEnabled = ?.
|
static CPDefinition |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the first cp definition in the ordered set where groupId = ?.
|
static CPDefinition |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the last cp definition in the ordered set where groupId = ?.
|
static CPDefinition[] |
findByGroupId_PrevAndNext(long CPDefinitionId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the cp definitions before and after the current cp definition in the ordered set where groupId = ?.
|
static java.util.List<CPDefinition> |
findByGroupId(long groupId)
Returns all the cp definitions where groupId = ?.
|
static java.util.List<CPDefinition> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the cp definitions where groupId = ?.
|
static java.util.List<CPDefinition> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns an ordered range of all the cp definitions where groupId = ?.
|
static java.util.List<CPDefinition> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definitions where groupId = ?.
|
static CPDefinition |
findByLtD_S_First(java.util.Date displayDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the first cp definition in the ordered set where displayDate < ? and status = ?.
|
static CPDefinition |
findByLtD_S_Last(java.util.Date displayDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the last cp definition in the ordered set where displayDate < ? and status = ?.
|
static CPDefinition[] |
findByLtD_S_PrevAndNext(long CPDefinitionId,
java.util.Date displayDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the cp definitions before and after the current cp definition in the ordered set where displayDate < ? and status = ?.
|
static java.util.List<CPDefinition> |
findByLtD_S(java.util.Date displayDate,
int status)
Returns all the cp definitions where displayDate < ? and status = ?.
|
static java.util.List<CPDefinition> |
findByLtD_S(java.util.Date displayDate,
int status,
int start,
int end)
Returns a range of all the cp definitions where displayDate < ? and status = ?.
|
static java.util.List<CPDefinition> |
findByLtD_S(java.util.Date displayDate,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns an ordered range of all the cp definitions where displayDate < ? and status = ?.
|
static java.util.List<CPDefinition> |
findByLtD_S(java.util.Date displayDate,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definitions where displayDate < ? and status = ?.
|
static CPDefinition |
findByPrimaryKey(long CPDefinitionId)
Returns the cp definition with the primary key or throws a
NoSuchCPDefinitionException if it could not be found. |
static CPDefinition |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the first cp definition in the ordered set where uuid = ? and companyId = ?.
|
static CPDefinition |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the last cp definition in the ordered set where uuid = ? and companyId = ?.
|
static CPDefinition[] |
findByUuid_C_PrevAndNext(long CPDefinitionId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the cp definitions before and after the current cp definition in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<CPDefinition> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the cp definitions where uuid = ? and companyId = ?.
|
static java.util.List<CPDefinition> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the cp definitions where uuid = ? and companyId = ?.
|
static java.util.List<CPDefinition> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns an ordered range of all the cp definitions where uuid = ? and companyId = ?.
|
static java.util.List<CPDefinition> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definitions where uuid = ? and companyId = ?.
|
static CPDefinition |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the first cp definition in the ordered set where uuid = ?.
|
static CPDefinition |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the cp definition where uuid = ? and groupId = ? or throws a
NoSuchCPDefinitionException if it could not be found. |
static CPDefinition |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the last cp definition in the ordered set where uuid = ?.
|
static CPDefinition[] |
findByUuid_PrevAndNext(long CPDefinitionId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns the cp definitions before and after the current cp definition in the ordered set where uuid = ?.
|
static java.util.List<CPDefinition> |
findByUuid(java.lang.String uuid)
Returns all the cp definitions where uuid = ?.
|
static java.util.List<CPDefinition> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the cp definitions where uuid = ?.
|
static java.util.List<CPDefinition> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
Returns an ordered range of all the cp definitions where uuid = ?.
|
static java.util.List<CPDefinition> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definitions where uuid = ?.
|
static java.util.List<CPDefinition> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CPDefinition> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CPDefinition> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) |
static CPDefinitionPersistence |
getPersistence() |
static CPDefinition |
remove(long CPDefinitionId)
Removes the cp definition with the primary key from the database.
|
static void |
removeAll()
Removes all the cp definitions from the database.
|
static void |
removeByC_S(long CProductId,
int status)
Removes all the cp definitions where CProductId = ? and status = ? from the database.
|
static CPDefinition |
removeByC_V(long CProductId,
int version)
Removes the cp definition where CProductId = ? and version = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the cp definitions where companyId = ? from the database.
|
static void |
removeByCPTaxCategoryId(long CPTaxCategoryId)
Removes all the cp definitions where CPTaxCategoryId = ? from the database.
|
static void |
removeByG_S(long groupId,
int status)
Removes all the cp definitions where groupId = ? and status = ? from the database.
|
static void |
removeByG_SE(long groupId,
boolean subscriptionEnabled)
Removes all the cp definitions where groupId = ? and subscriptionEnabled = ? from the database.
|
static void |
removeByGroupId(long groupId)
Removes all the cp definitions where groupId = ? from the database.
|
static void |
removeByLtD_S(java.util.Date displayDate,
int status)
Removes all the cp definitions where displayDate < ? and status = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the cp definitions where uuid = ? and companyId = ? from the database.
|
static CPDefinition |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the cp definition where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the cp definitions where uuid = ? from the database.
|
static CPDefinition |
update(CPDefinition cpDefinition) |
static CPDefinition |
update(CPDefinition cpDefinition,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CPDefinition |
updateImpl(CPDefinition cpDefinition) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CPDefinition cpDefinition)
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,CPDefinition> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CPDefinition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CPDefinition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CPDefinition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CPDefinition update(CPDefinition cpDefinition)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CPDefinition update(CPDefinition cpDefinition, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CPDefinition> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CPDefinition> 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 CPDefinitionModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)public static java.util.List<CPDefinition> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> 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 CPDefinitionModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinition> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> 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 CPDefinitionModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinition findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a matching cp definition could not be foundpublic static CPDefinition fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition could not be foundpublic static CPDefinition findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a matching cp definition could not be foundpublic static CPDefinition fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition could not be foundpublic static CPDefinition[] findByUuid_PrevAndNext(long CPDefinitionId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
CPDefinitionId
- the primary key of the current cp definitionuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a cp definition 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 CPDefinition findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCPDefinitionException
NoSuchCPDefinitionException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchCPDefinitionException
- if a matching cp definition could not be foundpublic static CPDefinition 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 definition could not be foundpublic static CPDefinition 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 definition could not be foundpublic static CPDefinition removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCPDefinitionException
uuid
- the uuidgroupId
- the group IDNoSuchCPDefinitionException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<CPDefinition> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CPDefinition> 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 CPDefinitionModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)public static java.util.List<CPDefinition> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> 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 CPDefinitionModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinition> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> 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 CPDefinitionModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinition findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a matching cp definition could not be foundpublic static CPDefinition fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition could not be foundpublic static CPDefinition findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a matching cp definition could not be foundpublic static CPDefinition fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition could not be foundpublic static CPDefinition[] findByUuid_C_PrevAndNext(long CPDefinitionId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
CPDefinitionId
- the primary key of the current cp definitionuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a cp definition 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<CPDefinition> findByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<CPDefinition> 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 CPDefinitionModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)public static java.util.List<CPDefinition> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> 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 CPDefinitionModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinition> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> 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 CPDefinitionModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinition findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a matching cp definition could not be foundpublic static CPDefinition fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition could not be foundpublic static CPDefinition findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a matching cp definition could not be foundpublic static CPDefinition fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition could not be foundpublic static CPDefinition[] findByGroupId_PrevAndNext(long CPDefinitionId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
CPDefinitionId
- the primary key of the current cp definitiongroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a cp definition 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<CPDefinition> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CPDefinition> 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 CPDefinitionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)public static java.util.List<CPDefinition> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> 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 CPDefinitionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinition> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> 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 CPDefinitionModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinition findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a matching cp definition could not be foundpublic static CPDefinition fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition could not be foundpublic static CPDefinition findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a matching cp definition could not be foundpublic static CPDefinition fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition could not be foundpublic static CPDefinition[] findByCompanyId_PrevAndNext(long CPDefinitionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
CPDefinitionId
- the primary key of the current cp definitioncompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a cp definition 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<CPDefinition> findByCPTaxCategoryId(long CPTaxCategoryId)
CPTaxCategoryId
- the cp tax category IDpublic static java.util.List<CPDefinition> findByCPTaxCategoryId(long CPTaxCategoryId, 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 CPDefinitionModelImpl
.
CPTaxCategoryId
- the cp tax category IDstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)public static java.util.List<CPDefinition> findByCPTaxCategoryId(long CPTaxCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> 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 CPDefinitionModelImpl
.
CPTaxCategoryId
- the cp tax category IDstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinition> findByCPTaxCategoryId(long CPTaxCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> 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 CPDefinitionModelImpl
.
CPTaxCategoryId
- the cp tax category IDstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinition findByCPTaxCategoryId_First(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
CPTaxCategoryId
- the cp tax category IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a matching cp definition could not be foundpublic static CPDefinition fetchByCPTaxCategoryId_First(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
CPTaxCategoryId
- the cp tax category IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition could not be foundpublic static CPDefinition findByCPTaxCategoryId_Last(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
CPTaxCategoryId
- the cp tax category IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a matching cp definition could not be foundpublic static CPDefinition fetchByCPTaxCategoryId_Last(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
CPTaxCategoryId
- the cp tax category IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition could not be foundpublic static CPDefinition[] findByCPTaxCategoryId_PrevAndNext(long CPDefinitionId, long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
CPDefinitionId
- the primary key of the current cp definitionCPTaxCategoryId
- the cp tax category IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a cp definition with the primary key could not be foundpublic static void removeByCPTaxCategoryId(long CPTaxCategoryId)
CPTaxCategoryId
- the cp tax category IDpublic static int countByCPTaxCategoryId(long CPTaxCategoryId)
CPTaxCategoryId
- the cp tax category IDpublic static java.util.List<CPDefinition> findByG_SE(long groupId, boolean subscriptionEnabled)
groupId
- the group IDsubscriptionEnabled
- the subscription enabledpublic static java.util.List<CPDefinition> findByG_SE(long groupId, boolean subscriptionEnabled, 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 CPDefinitionModelImpl
.
groupId
- the group IDsubscriptionEnabled
- the subscription enabledstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)public static java.util.List<CPDefinition> findByG_SE(long groupId, boolean subscriptionEnabled, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> 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 CPDefinitionModelImpl
.
groupId
- the group IDsubscriptionEnabled
- the subscription enabledstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinition> findByG_SE(long groupId, boolean subscriptionEnabled, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> 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 CPDefinitionModelImpl
.
groupId
- the group IDsubscriptionEnabled
- the subscription enabledstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinition findByG_SE_First(long groupId, boolean subscriptionEnabled, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
groupId
- the group IDsubscriptionEnabled
- the subscription enabledorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a matching cp definition could not be foundpublic static CPDefinition fetchByG_SE_First(long groupId, boolean subscriptionEnabled, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
groupId
- the group IDsubscriptionEnabled
- the subscription enabledorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition could not be foundpublic static CPDefinition findByG_SE_Last(long groupId, boolean subscriptionEnabled, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
groupId
- the group IDsubscriptionEnabled
- the subscription enabledorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a matching cp definition could not be foundpublic static CPDefinition fetchByG_SE_Last(long groupId, boolean subscriptionEnabled, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
groupId
- the group IDsubscriptionEnabled
- the subscription enabledorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition could not be foundpublic static CPDefinition[] findByG_SE_PrevAndNext(long CPDefinitionId, long groupId, boolean subscriptionEnabled, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
CPDefinitionId
- the primary key of the current cp definitiongroupId
- the group IDsubscriptionEnabled
- the subscription enabledorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a cp definition with the primary key could not be foundpublic static void removeByG_SE(long groupId, boolean subscriptionEnabled)
groupId
- the group IDsubscriptionEnabled
- the subscription enabledpublic static int countByG_SE(long groupId, boolean subscriptionEnabled)
groupId
- the group IDsubscriptionEnabled
- the subscription enabledpublic static java.util.List<CPDefinition> findByG_S(long groupId, int status)
groupId
- the group IDstatus
- the statuspublic static java.util.List<CPDefinition> findByG_S(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 CPDefinitionModelImpl
.
groupId
- the group IDstatus
- the statusstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)public static java.util.List<CPDefinition> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> 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 CPDefinitionModelImpl
.
groupId
- the group IDstatus
- the statusstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinition> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> 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 CPDefinitionModelImpl
.
groupId
- the group IDstatus
- the statusstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinition findByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
groupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a matching cp definition could not be foundpublic static CPDefinition fetchByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
groupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition could not be foundpublic static CPDefinition findByG_S_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
groupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a matching cp definition could not be foundpublic static CPDefinition fetchByG_S_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
groupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition could not be foundpublic static CPDefinition[] findByG_S_PrevAndNext(long CPDefinitionId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
CPDefinitionId
- the primary key of the current cp definitiongroupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a cp definition with the primary key could not be foundpublic static void removeByG_S(long groupId, int status)
groupId
- the group IDstatus
- the statuspublic static int countByG_S(long groupId, int status)
groupId
- the group IDstatus
- the statuspublic static CPDefinition findByC_V(long CProductId, int version) throws NoSuchCPDefinitionException
NoSuchCPDefinitionException
if it could not be found.CProductId
- the c product IDversion
- the versionNoSuchCPDefinitionException
- if a matching cp definition could not be foundpublic static CPDefinition fetchByC_V(long CProductId, int version)
null
if it could not be found. Uses the finder cache.CProductId
- the c product IDversion
- the versionnull
if a matching cp definition could not be foundpublic static CPDefinition fetchByC_V(long CProductId, int version, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.CProductId
- the c product IDversion
- the versionuseFinderCache
- whether to use the finder cachenull
if a matching cp definition could not be foundpublic static CPDefinition removeByC_V(long CProductId, int version) throws NoSuchCPDefinitionException
CProductId
- the c product IDversion
- the versionNoSuchCPDefinitionException
public static int countByC_V(long CProductId, int version)
CProductId
- the c product IDversion
- the versionpublic static java.util.List<CPDefinition> findByC_S(long CProductId, int status)
CProductId
- the c product IDstatus
- the statuspublic static java.util.List<CPDefinition> findByC_S(long CProductId, 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 CPDefinitionModelImpl
.
CProductId
- the c product IDstatus
- the statusstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)public static java.util.List<CPDefinition> findByC_S(long CProductId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> 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 CPDefinitionModelImpl
.
CProductId
- the c product IDstatus
- the statusstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinition> findByC_S(long CProductId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> 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 CPDefinitionModelImpl
.
CProductId
- the c product IDstatus
- the statusstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinition findByC_S_First(long CProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
CProductId
- the c product IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a matching cp definition could not be foundpublic static CPDefinition fetchByC_S_First(long CProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
CProductId
- the c product IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition could not be foundpublic static CPDefinition findByC_S_Last(long CProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
CProductId
- the c product IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a matching cp definition could not be foundpublic static CPDefinition fetchByC_S_Last(long CProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
CProductId
- the c product IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition could not be foundpublic static CPDefinition[] findByC_S_PrevAndNext(long CPDefinitionId, long CProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
CPDefinitionId
- the primary key of the current cp definitionCProductId
- the c product IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a cp definition with the primary key could not be foundpublic static void removeByC_S(long CProductId, int status)
CProductId
- the c product IDstatus
- the statuspublic static int countByC_S(long CProductId, int status)
CProductId
- the c product IDstatus
- the statuspublic static java.util.List<CPDefinition> findByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statuspublic static java.util.List<CPDefinition> 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 CPDefinitionModelImpl
.
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)public static java.util.List<CPDefinition> findByLtD_S(java.util.Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> 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 CPDefinitionModelImpl
.
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinition> findByLtD_S(java.util.Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> 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 CPDefinitionModelImpl
.
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinition findByLtD_S_First(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a matching cp definition could not be foundpublic static CPDefinition fetchByLtD_S_First(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition could not be foundpublic static CPDefinition findByLtD_S_Last(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a matching cp definition could not be foundpublic static CPDefinition fetchByLtD_S_Last(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition could not be foundpublic static CPDefinition[] findByLtD_S_PrevAndNext(long CPDefinitionId, java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException
CPDefinitionId
- the primary key of the current cp definitiondisplayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionException
- if a cp definition 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 void cacheResult(CPDefinition cpDefinition)
cpDefinition
- the cp definitionpublic static void cacheResult(java.util.List<CPDefinition> cpDefinitions)
cpDefinitions
- the cp definitionspublic static CPDefinition create(long CPDefinitionId)
CPDefinitionId
- the primary key for the new cp definitionpublic static CPDefinition remove(long CPDefinitionId) throws NoSuchCPDefinitionException
CPDefinitionId
- the primary key of the cp definitionNoSuchCPDefinitionException
- if a cp definition with the primary key could not be foundpublic static CPDefinition updateImpl(CPDefinition cpDefinition)
public static CPDefinition findByPrimaryKey(long CPDefinitionId) throws NoSuchCPDefinitionException
NoSuchCPDefinitionException
if it could not be found.CPDefinitionId
- the primary key of the cp definitionNoSuchCPDefinitionException
- if a cp definition with the primary key could not be foundpublic static CPDefinition fetchByPrimaryKey(long CPDefinitionId)
null
if it could not be found.CPDefinitionId
- the primary key of the cp definitionnull
if a cp definition with the primary key could not be foundpublic static java.util.List<CPDefinition> findAll()
public static java.util.List<CPDefinition> 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 CPDefinitionModelImpl
.
start
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)public static java.util.List<CPDefinition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> 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 CPDefinitionModelImpl
.
start
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> 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 CPDefinitionModelImpl
.
start
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CPDefinitionPersistence getPersistence()