Class CPDefinitionUtil
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CPDefinition cpDefinition) Caches the cp definition in the entity cache if it is enabled.static void
cacheResult
(List<CPDefinition> cpDefinitions) Caches the cp definitions in the entity cache if it is enabled.static void
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
countByCProductId
(long CProductId) Returns the number of cp definitions where CProductId = ?.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
(Date displayDate, int status) Returns the number of cp definitions where displayDate < ? and status = ?.static int
countByUuid
(String uuid) Returns the number of cp definitions where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of cp definitions where uuid = ? and companyId = ?.static int
countByUUID_G
(String uuid, long groupId) Returns the number of cp definitions where uuid = ? and groupId = ?.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 returnsnull
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 returnsnull
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
fetchByCProductId_First
(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where CProductId = ?.static CPDefinition
fetchByCProductId_Last
(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the last cp definition in the ordered set where CProductId = ?.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
(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
(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 returnsnull
if it could not be found.static Map<Serializable,
CPDefinition> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static CPDefinition
fetchByUuid_C_First
(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
(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
(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
(String uuid, long groupId) Returns the cp definition where uuid = ? and groupId = ? or returnsnull
if it could not be found.static CPDefinition
fetchByUUID_G
(String uuid, long groupId, boolean useFinderCache) Returns the cp definition where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.static CPDefinition
fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the last cp definition in the ordered set where uuid = ?.static int
filterCountByG_S
(long groupId, int status) Returns the number of cp definitions that the user has permission to view where groupId = ? and status = ?.static int
filterCountByG_SE
(long groupId, boolean subscriptionEnabled) Returns the number of cp definitions that the user has permission to view where groupId = ? and subscriptionEnabled = ?.static int
filterCountByGroupId
(long groupId) Returns the number of cp definitions that the user has permission to view where groupId = ?.static List<CPDefinition>
filterFindByG_S
(long groupId, int status) Returns all the cp definitions that the user has permission to view where groupId = ? and status = ?.static List<CPDefinition>
filterFindByG_S
(long groupId, int status, int start, int end) Returns a range of all the cp definitions that the user has permission to view where groupId = ? and status = ?.static List<CPDefinition>
filterFindByG_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 that the user has permissions to view where groupId = ? and status = ?.static CPDefinition[]
filterFindByG_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 of cp definitions that the user has permission to view where groupId = ? and status = ?.static List<CPDefinition>
filterFindByG_SE
(long groupId, boolean subscriptionEnabled) Returns all the cp definitions that the user has permission to view where groupId = ? and subscriptionEnabled = ?.static List<CPDefinition>
filterFindByG_SE
(long groupId, boolean subscriptionEnabled, int start, int end) Returns a range of all the cp definitions that the user has permission to view where groupId = ? and subscriptionEnabled = ?.static List<CPDefinition>
filterFindByG_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 that the user has permissions to view where groupId = ? and subscriptionEnabled = ?.static CPDefinition[]
filterFindByG_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 of cp definitions that the user has permission to view where groupId = ? and subscriptionEnabled = ?.static List<CPDefinition>
filterFindByGroupId
(long groupId) Returns all the cp definitions that the user has permission to view where groupId = ?.static List<CPDefinition>
filterFindByGroupId
(long groupId, int start, int end) Returns a range of all the cp definitions that the user has permission to view where groupId = ?.static List<CPDefinition>
filterFindByGroupId
(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions that the user has permissions to view where groupId = ?.static CPDefinition[]
filterFindByGroupId_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 of cp definitions that the user has permission to view where groupId = ?.static List<CPDefinition>
findAll()
Returns all the cp definitions.static List<CPDefinition>
findAll
(int start, int end) Returns a range of all the cp definitions.static 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 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 List<CPDefinition>
findByC_S
(long CProductId, int status) Returns all the cp definitions where CProductId = ? and status = ?.static 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 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 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_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 CPDefinition
findByC_V
(long CProductId, int version) Returns the cp definition where CProductId = ? and version = ? or throws aNoSuchCPDefinitionException
if it could not be found.static List<CPDefinition>
findByCompanyId
(long companyId) Returns all the cp definitions where companyId = ?.static List<CPDefinition>
findByCompanyId
(long companyId, int start, int end) Returns a range of all the cp definitions where companyId = ?.static 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 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
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 List<CPDefinition>
findByCProductId
(long CProductId) Returns all the cp definitions where CProductId = ?.static List<CPDefinition>
findByCProductId
(long CProductId, int start, int end) Returns a range of all the cp definitions where CProductId = ?.static List<CPDefinition>
findByCProductId
(long CProductId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where CProductId = ?.static List<CPDefinition>
findByCProductId
(long CProductId, 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 = ?.static CPDefinition
findByCProductId_First
(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where CProductId = ?.static CPDefinition
findByCProductId_Last
(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the last cp definition in the ordered set where CProductId = ?.static CPDefinition[]
findByCProductId_PrevAndNext
(long CPDefinitionId, long CProductId, 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 = ?.static List<CPDefinition>
findByCPTaxCategoryId
(long CPTaxCategoryId) Returns all the cp definitions where CPTaxCategoryId = ?.static List<CPDefinition>
findByCPTaxCategoryId
(long CPTaxCategoryId, int start, int end) Returns a range of all the cp definitions where CPTaxCategoryId = ?.static 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 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
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 List<CPDefinition>
findByG_S
(long groupId, int status) Returns all the cp definitions where groupId = ? and status = ?.static 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 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 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_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 List<CPDefinition>
findByG_SE
(long groupId, boolean subscriptionEnabled) Returns all the cp definitions where groupId = ? and subscriptionEnabled = ?.static 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 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 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
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 List<CPDefinition>
findByGroupId
(long groupId) Returns all the cp definitions where groupId = ?.static List<CPDefinition>
findByGroupId
(long groupId, int start, int end) Returns a range of all the cp definitions where groupId = ?.static 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 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
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 List<CPDefinition>
findByLtD_S
(Date displayDate, int status) Returns all the cp definitions where displayDate < ? and status = ?.static List<CPDefinition>
findByLtD_S
(Date displayDate, int status, int start, int end) Returns a range of all the cp definitions where displayDate < ? and status = ?.static List<CPDefinition>
findByLtD_S
(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 List<CPDefinition>
findByLtD_S
(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
findByLtD_S_First
(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
(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, 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 CPDefinition
findByPrimaryKey
(long CPDefinitionId) Returns the cp definition with the primary key or throws aNoSuchCPDefinitionException
if it could not be found.static List<CPDefinition>
findByUuid
(String uuid) Returns all the cp definitions where uuid = ?.static List<CPDefinition>
findByUuid
(String uuid, int start, int end) Returns a range of all the cp definitions where uuid = ?.static List<CPDefinition>
findByUuid
(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 List<CPDefinition>
findByUuid
(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 List<CPDefinition>
findByUuid_C
(String uuid, long companyId) Returns all the cp definitions where uuid = ? and companyId = ?.static List<CPDefinition>
findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the cp definitions where uuid = ? and companyId = ?.static List<CPDefinition>
findByUuid_C
(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 List<CPDefinition>
findByUuid_C
(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_C_First
(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
(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, 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 CPDefinition
findByUuid_First
(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
(String uuid, long groupId) Returns the cp definition where uuid = ? and groupId = ? or throws aNoSuchCPDefinitionException
if it could not be found.static CPDefinition
findByUuid_Last
(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, 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 List<CPDefinition>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CPDefinition>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static 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
static CPDefinition
remove
(long CPDefinitionId) Removes the cp definition with the primary key from the database.static void
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
removeByCProductId
(long CProductId) Removes all the cp definitions where CProductId = ? 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
(Date displayDate, int status) Removes all the cp definitions where displayDate < ? and status = ? from the database.static void
removeByUuid
(String uuid) Removes all the cp definitions where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the cp definitions where uuid = ? and companyId = ? from the database.static CPDefinition
removeByUUID_G
(String uuid, long groupId) Removes the cp definition where uuid = ? and groupId = ? from the database.static void
setPersistence
(CPDefinitionPersistence persistence) static CPDefinition
update
(CPDefinition cpDefinition) static CPDefinition
update
(CPDefinition cpDefinition, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CPDefinition
updateImpl
(CPDefinition cpDefinition)
-
Constructor Details
-
CPDefinitionUtil
public CPDefinitionUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CPDefinition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CPDefinition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CPDefinition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CPDefinition update(CPDefinition cpDefinition, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the cp definitions where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching cp definitions
-
findByUuid
Returns a range of all the cp definitions where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions
-
findByUuid
public static List<CPDefinition> findByUuid(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching cp definitions
-
findByUuid
public static List<CPDefinition> findByUuid(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp definitions
-
findByUuid_First
public static CPDefinition findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition
- Throws:
NoSuchCPDefinitionException
- if a matching cp definition could not be foundNoSuchCPDefinitionException
-
fetchByUuid_First
public static CPDefinition fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition, or
null
if a matching cp definition could not be found
-
findByUuid_Last
public static CPDefinition findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the last cp definition in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition
- Throws:
NoSuchCPDefinitionException
- if a matching cp definition could not be foundNoSuchCPDefinitionException
-
fetchByUuid_Last
public static CPDefinition fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the last cp definition in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition, or
null
if a matching cp definition could not be found
-
findByUuid_PrevAndNext
public static CPDefinition[] findByUuid_PrevAndNext(long CPDefinitionId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the cp definitions before and after the current cp definition in the ordered set where uuid = ?.- Parameters:
CPDefinitionId
- the primary key of the current cp definitionuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp definition
- Throws:
NoSuchCPDefinitionException
- if a cp definition with the primary key could not be foundNoSuchCPDefinitionException
-
removeByUuid
Removes all the cp definitions where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of cp definitions where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching cp definitions
-
findByUUID_G
public static CPDefinition findByUUID_G(String uuid, long groupId) throws NoSuchCPDefinitionException Returns the cp definition where uuid = ? and groupId = ? or throws aNoSuchCPDefinitionException
if it could not be found.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching cp definition
- Throws:
NoSuchCPDefinitionException
- if a matching cp definition could not be foundNoSuchCPDefinitionException
-
fetchByUUID_G
Returns the cp definition where uuid = ? and groupId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching cp definition, or
null
if a matching cp definition could not be found
-
fetchByUUID_G
Returns the cp definition where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching cp definition, or
null
if a matching cp definition could not be found
-
removeByUUID_G
public static CPDefinition removeByUUID_G(String uuid, long groupId) throws NoSuchCPDefinitionException Removes the cp definition where uuid = ? and groupId = ? from the database.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the cp definition that was removed
- Throws:
NoSuchCPDefinitionException
-
countByUUID_G
Returns the number of cp definitions where uuid = ? and groupId = ?.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the number of matching cp definitions
-
findByUuid_C
Returns all the cp definitions where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching cp definitions
-
findByUuid_C
Returns a range of all the cp definitions where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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)- Returns:
- the range of matching cp definitions
-
findByUuid_C
public static List<CPDefinition> findByUuid_C(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching cp definitions
-
findByUuid_C
public static List<CPDefinition> findByUuid_C(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp definitions
-
findByUuid_C_First
public static CPDefinition findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition
- Throws:
NoSuchCPDefinitionException
- if a matching cp definition could not be foundNoSuchCPDefinitionException
-
fetchByUuid_C_First
public static CPDefinition fetchByUuid_C_First(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 = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition, or
null
if a matching cp definition could not be found
-
findByUuid_C_Last
public static CPDefinition findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the last cp definition in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition
- Throws:
NoSuchCPDefinitionException
- if a matching cp definition could not be foundNoSuchCPDefinitionException
-
fetchByUuid_C_Last
public static CPDefinition fetchByUuid_C_Last(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 = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition, or
null
if a matching cp definition could not be found
-
findByUuid_C_PrevAndNext
public static CPDefinition[] findByUuid_C_PrevAndNext(long CPDefinitionId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the cp definitions before and after the current cp definition in the ordered set where uuid = ? and companyId = ?.- Parameters:
CPDefinitionId
- the primary key of the current cp definitionuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp definition
- Throws:
NoSuchCPDefinitionException
- if a cp definition with the primary key could not be foundNoSuchCPDefinitionException
-
removeByUuid_C
Removes all the cp definitions where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of cp definitions where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching cp definitions
-
findByGroupId
Returns all the cp definitions where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the matching cp definitions
-
findByGroupId
Returns a range of all the cp definitions where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions
-
findByGroupId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching cp definitions
-
findByGroupId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp definitions
-
findByGroupId_First
public static CPDefinition findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition
- Throws:
NoSuchCPDefinitionException
- if a matching cp definition could not be foundNoSuchCPDefinitionException
-
fetchByGroupId_First
public 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 = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition, or
null
if a matching cp definition could not be found
-
findByGroupId_Last
public static CPDefinition findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the last cp definition in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition
- Throws:
NoSuchCPDefinitionException
- if a matching cp definition could not be foundNoSuchCPDefinitionException
-
fetchByGroupId_Last
public 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 = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition, or
null
if a matching cp definition could not be found
-
findByGroupId_PrevAndNext
public static CPDefinition[] findByGroupId_PrevAndNext(long CPDefinitionId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the cp definitions before and after the current cp definition in the ordered set where groupId = ?.- Parameters:
CPDefinitionId
- the primary key of the current cp definitiongroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp definition
- Throws:
NoSuchCPDefinitionException
- if a cp definition with the primary key could not be foundNoSuchCPDefinitionException
-
filterFindByGroupId
Returns all the cp definitions that the user has permission to view where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the matching cp definitions that the user has permission to view
-
filterFindByGroupId
Returns a range of all the cp definitions that the user has permission to view where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions that the user has permission to view
-
filterFindByGroupId
public static List<CPDefinition> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions that the user has permissions to view where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching cp definitions that the user has permission to view
-
filterFindByGroupId_PrevAndNext
public static CPDefinition[] filterFindByGroupId_PrevAndNext(long CPDefinitionId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the cp definitions before and after the current cp definition in the ordered set of cp definitions that the user has permission to view where groupId = ?.- Parameters:
CPDefinitionId
- the primary key of the current cp definitiongroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp definition
- Throws:
NoSuchCPDefinitionException
- if a cp definition with the primary key could not be foundNoSuchCPDefinitionException
-
removeByGroupId
public static void removeByGroupId(long groupId) Removes all the cp definitions where groupId = ? from the database.- Parameters:
groupId
- the group ID
-
countByGroupId
public static int countByGroupId(long groupId) Returns the number of cp definitions where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the number of matching cp definitions
-
filterCountByGroupId
public static int filterCountByGroupId(long groupId) Returns the number of cp definitions that the user has permission to view where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the number of matching cp definitions that the user has permission to view
-
findByCompanyId
Returns all the cp definitions where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching cp definitions
-
findByCompanyId
Returns a range of all the cp definitions where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions
-
findByCompanyId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching cp definitions
-
findByCompanyId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp definitions
-
findByCompanyId_First
public static CPDefinition findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition
- Throws:
NoSuchCPDefinitionException
- if a matching cp definition could not be foundNoSuchCPDefinitionException
-
fetchByCompanyId_First
public 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 = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition, or
null
if a matching cp definition could not be found
-
findByCompanyId_Last
public static CPDefinition findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the last cp definition in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition
- Throws:
NoSuchCPDefinitionException
- if a matching cp definition could not be foundNoSuchCPDefinitionException
-
fetchByCompanyId_Last
public 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 = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition, or
null
if a matching cp definition could not be found
-
findByCompanyId_PrevAndNext
public static CPDefinition[] findByCompanyId_PrevAndNext(long CPDefinitionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the cp definitions before and after the current cp definition in the ordered set where companyId = ?.- Parameters:
CPDefinitionId
- the primary key of the current cp definitioncompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp definition
- Throws:
NoSuchCPDefinitionException
- if a cp definition with the primary key could not be foundNoSuchCPDefinitionException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the cp definitions where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of cp definitions where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching cp definitions
-
findByCProductId
Returns all the cp definitions where CProductId = ?.- Parameters:
CProductId
- the c product ID- Returns:
- the matching cp definitions
-
findByCProductId
Returns a range of all the cp definitions where CProductId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
CProductId
- the c product IDstart
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions
-
findByCProductId
public static List<CPDefinition> findByCProductId(long CProductId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where CProductId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
CProductId
- the c product 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 (optionallynull
)- Returns:
- the ordered range of matching cp definitions
-
findByCProductId
public static List<CPDefinition> findByCProductId(long CProductId, 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
CProductId
- the c product 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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp definitions
-
findByCProductId_First
public static CPDefinition findByCProductId_First(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where CProductId = ?.- Parameters:
CProductId
- the c product IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition
- Throws:
NoSuchCPDefinitionException
- if a matching cp definition could not be foundNoSuchCPDefinitionException
-
fetchByCProductId_First
public static CPDefinition fetchByCProductId_First(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where CProductId = ?.- Parameters:
CProductId
- the c product IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition, or
null
if a matching cp definition could not be found
-
findByCProductId_Last
public static CPDefinition findByCProductId_Last(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the last cp definition in the ordered set where CProductId = ?.- Parameters:
CProductId
- the c product IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition
- Throws:
NoSuchCPDefinitionException
- if a matching cp definition could not be foundNoSuchCPDefinitionException
-
fetchByCProductId_Last
public static CPDefinition fetchByCProductId_Last(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the last cp definition in the ordered set where CProductId = ?.- Parameters:
CProductId
- the c product IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition, or
null
if a matching cp definition could not be found
-
findByCProductId_PrevAndNext
public static CPDefinition[] findByCProductId_PrevAndNext(long CPDefinitionId, long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the cp definitions before and after the current cp definition in the ordered set where CProductId = ?.- Parameters:
CPDefinitionId
- the primary key of the current cp definitionCProductId
- the c product IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp definition
- Throws:
NoSuchCPDefinitionException
- if a cp definition with the primary key could not be foundNoSuchCPDefinitionException
-
removeByCProductId
public static void removeByCProductId(long CProductId) Removes all the cp definitions where CProductId = ? from the database.- Parameters:
CProductId
- the c product ID
-
countByCProductId
public static int countByCProductId(long CProductId) Returns the number of cp definitions where CProductId = ?.- Parameters:
CProductId
- the c product ID- Returns:
- the number of matching cp definitions
-
findByCPTaxCategoryId
Returns all the cp definitions where CPTaxCategoryId = ?.- Parameters:
CPTaxCategoryId
- the cp tax category ID- Returns:
- the matching cp definitions
-
findByCPTaxCategoryId
Returns a range of all the cp definitions where CPTaxCategoryId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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)- Returns:
- the range of matching cp definitions
-
findByCPTaxCategoryId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching cp definitions
-
findByCPTaxCategoryId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp definitions
-
findByCPTaxCategoryId_First
public static CPDefinition findByCPTaxCategoryId_First(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where CPTaxCategoryId = ?.- Parameters:
CPTaxCategoryId
- the cp tax category IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition
- Throws:
NoSuchCPDefinitionException
- if a matching cp definition could not be foundNoSuchCPDefinitionException
-
fetchByCPTaxCategoryId_First
public 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 = ?.- Parameters:
CPTaxCategoryId
- the cp tax category IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition, or
null
if a matching cp definition could not be found
-
findByCPTaxCategoryId_Last
public static CPDefinition findByCPTaxCategoryId_Last(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the last cp definition in the ordered set where CPTaxCategoryId = ?.- Parameters:
CPTaxCategoryId
- the cp tax category IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition
- Throws:
NoSuchCPDefinitionException
- if a matching cp definition could not be foundNoSuchCPDefinitionException
-
fetchByCPTaxCategoryId_Last
public 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 = ?.- Parameters:
CPTaxCategoryId
- the cp tax category IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition, or
null
if a matching cp definition could not be found
-
findByCPTaxCategoryId_PrevAndNext
public static CPDefinition[] findByCPTaxCategoryId_PrevAndNext(long CPDefinitionId, long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the cp definitions before and after the current cp definition in the ordered set where CPTaxCategoryId = ?.- Parameters:
CPDefinitionId
- the primary key of the current cp definitionCPTaxCategoryId
- the cp tax category IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp definition
- Throws:
NoSuchCPDefinitionException
- if a cp definition with the primary key could not be foundNoSuchCPDefinitionException
-
removeByCPTaxCategoryId
public static void removeByCPTaxCategoryId(long CPTaxCategoryId) Removes all the cp definitions where CPTaxCategoryId = ? from the database.- Parameters:
CPTaxCategoryId
- the cp tax category ID
-
countByCPTaxCategoryId
public static int countByCPTaxCategoryId(long CPTaxCategoryId) Returns the number of cp definitions where CPTaxCategoryId = ?.- Parameters:
CPTaxCategoryId
- the cp tax category ID- Returns:
- the number of matching cp definitions
-
findByG_SE
Returns all the cp definitions where groupId = ? and subscriptionEnabled = ?.- Parameters:
groupId
- the group IDsubscriptionEnabled
- the subscription enabled- Returns:
- the matching cp definitions
-
findByG_SE
public static List<CPDefinition> findByG_SE(long groupId, boolean subscriptionEnabled, int start, int end) Returns a range of all the cp definitions where groupId = ? and subscriptionEnabled = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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)- Returns:
- the range of matching cp definitions
-
findByG_SE
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching cp definitions
-
findByG_SE
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp definitions
-
findByG_SE_First
public static CPDefinition findByG_SE_First(long groupId, boolean subscriptionEnabled, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where groupId = ? and subscriptionEnabled = ?.- Parameters:
groupId
- the group IDsubscriptionEnabled
- the subscription enabledorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition
- Throws:
NoSuchCPDefinitionException
- if a matching cp definition could not be foundNoSuchCPDefinitionException
-
fetchByG_SE_First
public 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 = ?.- Parameters:
groupId
- the group IDsubscriptionEnabled
- the subscription enabledorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition, or
null
if a matching cp definition could not be found
-
findByG_SE_Last
public static CPDefinition findByG_SE_Last(long groupId, boolean subscriptionEnabled, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the last cp definition in the ordered set where groupId = ? and subscriptionEnabled = ?.- Parameters:
groupId
- the group IDsubscriptionEnabled
- the subscription enabledorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition
- Throws:
NoSuchCPDefinitionException
- if a matching cp definition could not be foundNoSuchCPDefinitionException
-
fetchByG_SE_Last
public 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 = ?.- Parameters:
groupId
- the group IDsubscriptionEnabled
- the subscription enabledorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition, or
null
if a matching cp definition could not be found
-
findByG_SE_PrevAndNext
public static CPDefinition[] findByG_SE_PrevAndNext(long CPDefinitionId, long groupId, boolean subscriptionEnabled, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the cp definitions before and after the current cp definition in the ordered set where groupId = ? and subscriptionEnabled = ?.- Parameters:
CPDefinitionId
- the primary key of the current cp definitiongroupId
- the group IDsubscriptionEnabled
- the subscription enabledorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp definition
- Throws:
NoSuchCPDefinitionException
- if a cp definition with the primary key could not be foundNoSuchCPDefinitionException
-
filterFindByG_SE
Returns all the cp definitions that the user has permission to view where groupId = ? and subscriptionEnabled = ?.- Parameters:
groupId
- the group IDsubscriptionEnabled
- the subscription enabled- Returns:
- the matching cp definitions that the user has permission to view
-
filterFindByG_SE
public static List<CPDefinition> filterFindByG_SE(long groupId, boolean subscriptionEnabled, int start, int end) Returns a range of all the cp definitions that the user has permission to view where groupId = ? and subscriptionEnabled = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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)- Returns:
- the range of matching cp definitions that the user has permission to view
-
filterFindByG_SE
public static List<CPDefinition> filterFindByG_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 that the user has permissions to view where groupId = ? and subscriptionEnabled = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching cp definitions that the user has permission to view
-
filterFindByG_SE_PrevAndNext
public static CPDefinition[] filterFindByG_SE_PrevAndNext(long CPDefinitionId, long groupId, boolean subscriptionEnabled, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the cp definitions before and after the current cp definition in the ordered set of cp definitions that the user has permission to view where groupId = ? and subscriptionEnabled = ?.- Parameters:
CPDefinitionId
- the primary key of the current cp definitiongroupId
- the group IDsubscriptionEnabled
- the subscription enabledorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp definition
- Throws:
NoSuchCPDefinitionException
- if a cp definition with the primary key could not be foundNoSuchCPDefinitionException
-
removeByG_SE
public static void removeByG_SE(long groupId, boolean subscriptionEnabled) Removes all the cp definitions where groupId = ? and subscriptionEnabled = ? from the database.- Parameters:
groupId
- the group IDsubscriptionEnabled
- the subscription enabled
-
countByG_SE
public static int countByG_SE(long groupId, boolean subscriptionEnabled) Returns the number of cp definitions where groupId = ? and subscriptionEnabled = ?.- Parameters:
groupId
- the group IDsubscriptionEnabled
- the subscription enabled- Returns:
- the number of matching cp definitions
-
filterCountByG_SE
public static int filterCountByG_SE(long groupId, boolean subscriptionEnabled) Returns the number of cp definitions that the user has permission to view where groupId = ? and subscriptionEnabled = ?.- Parameters:
groupId
- the group IDsubscriptionEnabled
- the subscription enabled- Returns:
- the number of matching cp definitions that the user has permission to view
-
findByG_S
Returns all the cp definitions where groupId = ? and status = ?.- Parameters:
groupId
- the group IDstatus
- the status- Returns:
- the matching cp definitions
-
findByG_S
Returns a range of all the cp definitions where groupId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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)- Returns:
- the range of matching cp definitions
-
findByG_S
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching cp definitions
-
findByG_S
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp definitions
-
findByG_S_First
public static CPDefinition findByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where groupId = ? and status = ?.- Parameters:
groupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition
- Throws:
NoSuchCPDefinitionException
- if a matching cp definition could not be foundNoSuchCPDefinitionException
-
fetchByG_S_First
public 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 = ?.- Parameters:
groupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition, or
null
if a matching cp definition could not be found
-
findByG_S_Last
public static CPDefinition findByG_S_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the last cp definition in the ordered set where groupId = ? and status = ?.- Parameters:
groupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition
- Throws:
NoSuchCPDefinitionException
- if a matching cp definition could not be foundNoSuchCPDefinitionException
-
fetchByG_S_Last
public 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 = ?.- Parameters:
groupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition, or
null
if a matching cp definition could not be found
-
findByG_S_PrevAndNext
public static CPDefinition[] findByG_S_PrevAndNext(long CPDefinitionId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the cp definitions before and after the current cp definition in the ordered set where groupId = ? and status = ?.- Parameters:
CPDefinitionId
- the primary key of the current cp definitiongroupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp definition
- Throws:
NoSuchCPDefinitionException
- if a cp definition with the primary key could not be foundNoSuchCPDefinitionException
-
filterFindByG_S
Returns all the cp definitions that the user has permission to view where groupId = ? and status = ?.- Parameters:
groupId
- the group IDstatus
- the status- Returns:
- the matching cp definitions that the user has permission to view
-
filterFindByG_S
Returns a range of all the cp definitions that the user has permission to view where groupId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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)- Returns:
- the range of matching cp definitions that the user has permission to view
-
filterFindByG_S
public static List<CPDefinition> filterFindByG_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 that the user has permissions to view where groupId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching cp definitions that the user has permission to view
-
filterFindByG_S_PrevAndNext
public static CPDefinition[] filterFindByG_S_PrevAndNext(long CPDefinitionId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the cp definitions before and after the current cp definition in the ordered set of cp definitions that the user has permission to view where groupId = ? and status = ?.- Parameters:
CPDefinitionId
- the primary key of the current cp definitiongroupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp definition
- Throws:
NoSuchCPDefinitionException
- if a cp definition with the primary key could not be foundNoSuchCPDefinitionException
-
removeByG_S
public static void removeByG_S(long groupId, int status) Removes all the cp definitions where groupId = ? and status = ? from the database.- Parameters:
groupId
- the group IDstatus
- the status
-
countByG_S
public static int countByG_S(long groupId, int status) Returns the number of cp definitions where groupId = ? and status = ?.- Parameters:
groupId
- the group IDstatus
- the status- Returns:
- the number of matching cp definitions
-
filterCountByG_S
public static int filterCountByG_S(long groupId, int status) Returns the number of cp definitions that the user has permission to view where groupId = ? and status = ?.- Parameters:
groupId
- the group IDstatus
- the status- Returns:
- the number of matching cp definitions that the user has permission to view
-
findByC_V
public static CPDefinition findByC_V(long CProductId, int version) throws NoSuchCPDefinitionException Returns the cp definition where CProductId = ? and version = ? or throws aNoSuchCPDefinitionException
if it could not be found.- Parameters:
CProductId
- the c product IDversion
- the version- Returns:
- the matching cp definition
- Throws:
NoSuchCPDefinitionException
- if a matching cp definition could not be foundNoSuchCPDefinitionException
-
fetchByC_V
Returns the cp definition where CProductId = ? and version = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
CProductId
- the c product IDversion
- the version- Returns:
- the matching cp definition, or
null
if a matching cp definition could not be found
-
fetchByC_V
Returns the cp definition where CProductId = ? and version = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
CProductId
- the c product IDversion
- the versionuseFinderCache
- whether to use the finder cache- Returns:
- the matching cp definition, or
null
if a matching cp definition could not be found
-
removeByC_V
public static CPDefinition removeByC_V(long CProductId, int version) throws NoSuchCPDefinitionException Removes the cp definition where CProductId = ? and version = ? from the database.- Parameters:
CProductId
- the c product IDversion
- the version- Returns:
- the cp definition that was removed
- Throws:
NoSuchCPDefinitionException
-
countByC_V
public static int countByC_V(long CProductId, int version) Returns the number of cp definitions where CProductId = ? and version = ?.- Parameters:
CProductId
- the c product IDversion
- the version- Returns:
- the number of matching cp definitions
-
findByC_S
Returns all the cp definitions where CProductId = ? and status = ?.- Parameters:
CProductId
- the c product IDstatus
- the status- Returns:
- the matching cp definitions
-
findByC_S
Returns a range of all the cp definitions where CProductId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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)- Returns:
- the range of matching cp definitions
-
findByC_S
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching cp definitions
-
findByC_S
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp definitions
-
findByC_S_First
public static CPDefinition findByC_S_First(long CProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where CProductId = ? and status = ?.- Parameters:
CProductId
- the c product IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition
- Throws:
NoSuchCPDefinitionException
- if a matching cp definition could not be foundNoSuchCPDefinitionException
-
fetchByC_S_First
public 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 = ?.- Parameters:
CProductId
- the c product IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition, or
null
if a matching cp definition could not be found
-
findByC_S_Last
public static CPDefinition findByC_S_Last(long CProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the last cp definition in the ordered set where CProductId = ? and status = ?.- Parameters:
CProductId
- the c product IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition
- Throws:
NoSuchCPDefinitionException
- if a matching cp definition could not be foundNoSuchCPDefinitionException
-
fetchByC_S_Last
public 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 = ?.- Parameters:
CProductId
- the c product IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition, or
null
if a matching cp definition could not be found
-
findByC_S_PrevAndNext
public static CPDefinition[] findByC_S_PrevAndNext(long CPDefinitionId, long CProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the cp definitions before and after the current cp definition in the ordered set where CProductId = ? and status = ?.- Parameters:
CPDefinitionId
- the primary key of the current cp definitionCProductId
- the c product IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp definition
- Throws:
NoSuchCPDefinitionException
- if a cp definition with the primary key could not be foundNoSuchCPDefinitionException
-
removeByC_S
public static void removeByC_S(long CProductId, int status) Removes all the cp definitions where CProductId = ? and status = ? from the database.- Parameters:
CProductId
- the c product IDstatus
- the status
-
countByC_S
public static int countByC_S(long CProductId, int status) Returns the number of cp definitions where CProductId = ? and status = ?.- Parameters:
CProductId
- the c product IDstatus
- the status- Returns:
- the number of matching cp definitions
-
findByLtD_S
Returns all the cp definitions where displayDate < ? and status = ?.- Parameters:
displayDate
- the display datestatus
- the status- Returns:
- the matching cp definitions
-
findByLtD_S
Returns a range of all the cp definitions where displayDate < ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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)- Returns:
- the range of matching cp definitions
-
findByLtD_S
public static List<CPDefinition> findByLtD_S(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching cp definitions
-
findByLtD_S
public static List<CPDefinition> findByLtD_S(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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp definitions
-
findByLtD_S_First
public static CPDefinition findByLtD_S_First(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where displayDate < ? and status = ?.- Parameters:
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition
- Throws:
NoSuchCPDefinitionException
- if a matching cp definition could not be foundNoSuchCPDefinitionException
-
fetchByLtD_S_First
public static CPDefinition fetchByLtD_S_First(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 = ?.- Parameters:
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition, or
null
if a matching cp definition could not be found
-
findByLtD_S_Last
public static CPDefinition findByLtD_S_Last(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the last cp definition in the ordered set where displayDate < ? and status = ?.- Parameters:
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition
- Throws:
NoSuchCPDefinitionException
- if a matching cp definition could not be foundNoSuchCPDefinitionException
-
fetchByLtD_S_Last
public static CPDefinition fetchByLtD_S_Last(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 = ?.- Parameters:
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition, or
null
if a matching cp definition could not be found
-
findByLtD_S_PrevAndNext
public static CPDefinition[] findByLtD_S_PrevAndNext(long CPDefinitionId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the cp definitions before and after the current cp definition in the ordered set where displayDate < ? and status = ?.- Parameters:
CPDefinitionId
- the primary key of the current cp definitiondisplayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp definition
- Throws:
NoSuchCPDefinitionException
- if a cp definition with the primary key could not be foundNoSuchCPDefinitionException
-
removeByLtD_S
Removes all the cp definitions where displayDate < ? and status = ? from the database.- Parameters:
displayDate
- the display datestatus
- the status
-
countByLtD_S
Returns the number of cp definitions where displayDate < ? and status = ?.- Parameters:
displayDate
- the display datestatus
- the status- Returns:
- the number of matching cp definitions
-
cacheResult
Caches the cp definition in the entity cache if it is enabled.- Parameters:
cpDefinition
- the cp definition
-
cacheResult
Caches the cp definitions in the entity cache if it is enabled.- Parameters:
cpDefinitions
- the cp definitions
-
create
Creates a new cp definition with the primary key. Does not add the cp definition to the database.- Parameters:
CPDefinitionId
- the primary key for the new cp definition- Returns:
- the new cp definition
-
remove
Removes the cp definition with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
CPDefinitionId
- the primary key of the cp definition- Returns:
- the cp definition that was removed
- Throws:
NoSuchCPDefinitionException
- if a cp definition with the primary key could not be foundNoSuchCPDefinitionException
-
updateImpl
-
findByPrimaryKey
Returns the cp definition with the primary key or throws aNoSuchCPDefinitionException
if it could not be found.- Parameters:
CPDefinitionId
- the primary key of the cp definition- Returns:
- the cp definition
- Throws:
NoSuchCPDefinitionException
- if a cp definition with the primary key could not be foundNoSuchCPDefinitionException
-
fetchByPrimaryKey
Returns the cp definition with the primary key or returnsnull
if it could not be found.- Parameters:
CPDefinitionId
- the primary key of the cp definition- Returns:
- the cp definition, or
null
if a cp definition with the primary key could not be found
-
findAll
Returns all the cp definitions.- Returns:
- the cp definitions
-
findAll
Returns a range of all the cp definitions.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
start
- the lower bound of the range of cp definitionsend
- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of cp definitions
-
findAll
public static List<CPDefinition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of cp definitions
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of cp definitions
-
removeAll
public static void removeAll()Removes all the cp definitions from the database. -
countAll
public static int countAll()Returns the number of cp definitions.- Returns:
- the number of cp definitions
-
getPersistence
-
setPersistence
-