Class CPDefinitionUtil

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

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

    Modifier and Type
    Method
    Description
    static 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
    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
    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)
     
    create(long CPDefinitionId)
    Creates a new cp definition with the primary key.
    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 = ?.
    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 = ?.
    fetchByC_V(long CProductId, int version)
    Returns the cp definition where CProductId = ? and version = ? or returns null if it could not be found.
    fetchByC_V(long CProductId, int version, boolean useFinderCache)
    Returns the cp definition where CProductId = ? and version = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
    Returns the first cp definition in the ordered set where companyId = ?.
    fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
    Returns the last cp definition in the ordered set where companyId = ?.
    fetchByCProductId_First(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
    Returns the first cp definition in the ordered set where CProductId = ?.
    fetchByCProductId_Last(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
    Returns the last cp definition in the ordered set where CProductId = ?.
    fetchByCPTaxCategoryId_First(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
    Returns the first cp definition in the ordered set where CPTaxCategoryId = ?.
    fetchByCPTaxCategoryId_Last(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
    Returns the last cp definition in the ordered set where CPTaxCategoryId = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
    Returns the first cp definition in the ordered set where groupId = ?.
    fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
    Returns the last cp definition in the ordered set where groupId = ?.
    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 = ?.
    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 = ?.
    fetchByPrimaryKey(long CPDefinitionId)
    Returns the cp definition with the primary key or returns null if it could not be found.
     
    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 = ?.
    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 = ?.
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
    Returns the first cp definition in the ordered set where uuid = ?.
    fetchByUUID_G(String uuid, long groupId)
    Returns the cp definition where uuid = ? and groupId = ? or returns null if it could not be found.
    fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
    Returns the cp definition where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
    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 = ?.
    filterFindByG_S(long groupId, int status)
    Returns all the cp definitions that the user has permission to view where groupId = ? and status = ?.
    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 = ?.
    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 = ?.
    filterFindByG_SE(long groupId, boolean subscriptionEnabled)
    Returns all the cp definitions that the user has permission to view where groupId = ? and subscriptionEnabled = ?.
    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 = ?.
    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 = ?.
    filterFindByGroupId(long groupId)
    Returns all the cp definitions that the user has permission to view where groupId = ?.
    filterFindByGroupId(long groupId, int start, int end)
    Returns a range of all the cp definitions that the user has permission to view where groupId = ?.
    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 = ?.
    Returns all the cp definitions.
    findAll(int start, int end)
    Returns a range of all the cp definitions.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
    Returns an ordered range of all the cp definitions.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the cp definitions.
    findByC_S(long CProductId, int status)
    Returns all the cp definitions where CProductId = ? and status = ?.
    findByC_S(long CProductId, int status, int start, int end)
    Returns a range of all the cp definitions where CProductId = ? and status = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    findByC_V(long CProductId, int version)
    Returns the cp definition where CProductId = ? and version = ? or throws a NoSuchCPDefinitionException if it could not be found.
    findByCompanyId(long companyId)
    Returns all the cp definitions where companyId = ?.
    findByCompanyId(long companyId, int start, int end)
    Returns a range of all the cp definitions where companyId = ?.
    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 = ?.
    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 = ?.
    findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
    Returns the first cp definition in the ordered set where companyId = ?.
    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 = ?.
    findByCProductId(long CProductId)
    Returns all the cp definitions where CProductId = ?.
    findByCProductId(long CProductId, int start, int end)
    Returns a range of all the cp definitions where CProductId = ?.
    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 = ?.
    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 = ?.
    findByCProductId_First(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
    Returns the first cp definition in the ordered set where CProductId = ?.
    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 = ?.
    findByCPTaxCategoryId(long CPTaxCategoryId)
    Returns all the cp definitions where CPTaxCategoryId = ?.
    findByCPTaxCategoryId(long CPTaxCategoryId, int start, int end)
    Returns a range of all the cp definitions where CPTaxCategoryId = ?.
    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 = ?.
    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 = ?.
    findByCPTaxCategoryId_First(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
    Returns the first cp definition in the ordered set where CPTaxCategoryId = ?.
    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 = ?.
    findByG_S(long groupId, int status)
    Returns all the cp definitions where groupId = ? and status = ?.
    findByG_S(long groupId, int status, int start, int end)
    Returns a range of all the cp definitions where groupId = ? and status = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    findByG_SE(long groupId, boolean subscriptionEnabled)
    Returns all the cp definitions where groupId = ? and subscriptionEnabled = ?.
    findByG_SE(long groupId, boolean subscriptionEnabled, int start, int end)
    Returns a range of all the cp definitions where groupId = ? and subscriptionEnabled = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    findByGroupId(long groupId)
    Returns all the cp definitions where groupId = ?.
    findByGroupId(long groupId, int start, int end)
    Returns a range of all the cp definitions where groupId = ?.
    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 = ?.
    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 = ?.
    findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
    Returns the first cp definition in the ordered set where groupId = ?.
    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 = ?.
    findByLtD_S(Date displayDate, int status)
    Returns all the cp definitions where displayDate < ? and status = ?.
    findByLtD_S(Date displayDate, int status, int start, int end)
    Returns a range of all the cp definitions where displayDate < ? and status = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    findByPrimaryKey(long CPDefinitionId)
    Returns the cp definition with the primary key or throws a NoSuchCPDefinitionException if it could not be found.
    Returns all the cp definitions where uuid = ?.
    findByUuid(String uuid, int start, int end)
    Returns a range of all the cp definitions where uuid = ?.
    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 = ?.
    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 = ?.
    findByUuid_C(String uuid, long companyId)
    Returns all the cp definitions where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the cp definitions where uuid = ? and companyId = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
    Returns the first cp definition in the ordered set where uuid = ?.
    findByUUID_G(String uuid, long groupId)
    Returns the cp definition where uuid = ? and groupId = ? or throws a NoSuchCPDefinitionException if it could not be found.
    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 = ?.
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
     
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator)
     
     
    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.
    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
    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.
    removeByUUID_G(String uuid, long groupId)
    Removes the cp definition where uuid = ? and groupId = ? from the database.
    static void
     
    update(CPDefinition cpDefinition)
     
    update(CPDefinition cpDefinition, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    updateImpl(CPDefinition cpDefinition)
     

    Methods inherited from class java.lang.Object

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

    • CPDefinitionUtil

      public CPDefinitionUtil()
  • Method Details

    • clearCache

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

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

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

      public static Map<Serializable,CPDefinition> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      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

      public static CPDefinition update(CPDefinition cpDefinition)
      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

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

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

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

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

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

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of cp definitions
      end - the upper bound of the range of cp definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder 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 uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp definition
      Throws:
      NoSuchCPDefinitionException - if a matching cp definition could not be found
      NoSuchCPDefinitionException
    • 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 uuid
      orderByComparator - the comparator to order the set by (optionally null)
      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 uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp definition
      Throws:
      NoSuchCPDefinitionException - if a matching cp definition could not be found
      NoSuchCPDefinitionException
    • 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 uuid
      orderByComparator - the comparator to order the set by (optionally null)
      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 definition
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp definition
      Throws:
      NoSuchCPDefinitionException - if a cp definition with the primary key could not be found
      NoSuchCPDefinitionException
    • removeByUuid

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

      public static int countByUuid(String uuid)
      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 a NoSuchCPDefinitionException if it could not be found.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching cp definition
      Throws:
      NoSuchCPDefinitionException - if a matching cp definition could not be found
      NoSuchCPDefinitionException
    • fetchByUUID_G

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

      public static CPDefinition fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
      Returns the cp definition where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      useFinderCache - 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 uuid
      groupId - the group ID
      Returns:
      the cp definition that was removed
      Throws:
      NoSuchCPDefinitionException
    • countByUUID_G

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

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

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

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

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

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

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of cp definitions
      end - the upper bound of the range of cp definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder 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 uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp definition
      Throws:
      NoSuchCPDefinitionException - if a matching cp definition could not be found
      NoSuchCPDefinitionException
    • 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 uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp definition
      Throws:
      NoSuchCPDefinitionException - if a matching cp definition could not be found
      NoSuchCPDefinitionException
    • 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 uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 definition
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp definition
      Throws:
      NoSuchCPDefinitionException - if a cp definition with the primary key could not be found
      NoSuchCPDefinitionException
    • removeByUuid_C

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

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

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

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

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

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

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

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of cp definitions
      end - the upper bound of the range of cp definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp definition
      Throws:
      NoSuchCPDefinitionException - if a matching cp definition could not be found
      NoSuchCPDefinitionException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp definition
      Throws:
      NoSuchCPDefinitionException - if a matching cp definition could not be found
      NoSuchCPDefinitionException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 definition
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp definition
      Throws:
      NoSuchCPDefinitionException - if a cp definition with the primary key could not be found
      NoSuchCPDefinitionException
    • filterFindByGroupId

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

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

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

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

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of cp definitions
      end - the upper bound of the range of cp definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 definition
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp definition
      Throws:
      NoSuchCPDefinitionException - if a cp definition with the primary key could not be found
      NoSuchCPDefinitionException
    • 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

      public static List<CPDefinition> findByCompanyId(long companyId)
      Returns all the cp definitions where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching cp definitions
    • findByCompanyId

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

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

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

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

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of cp definitions
      end - the upper bound of the range of cp definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp definition
      Throws:
      NoSuchCPDefinitionException - if a matching cp definition could not be found
      NoSuchCPDefinitionException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp definition
      Throws:
      NoSuchCPDefinitionException - if a matching cp definition could not be found
      NoSuchCPDefinitionException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 definition
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp definition
      Throws:
      NoSuchCPDefinitionException - if a cp definition with the primary key could not be found
      NoSuchCPDefinitionException
    • 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

      public static List<CPDefinition> findByCProductId(long CProductId)
      Returns all the cp definitions where CProductId = ?.
      Parameters:
      CProductId - the c product ID
      Returns:
      the matching cp definitions
    • findByCProductId

      public static List<CPDefinition> findByCProductId(long CProductId, int start, int end)
      Returns a range of all the cp definitions where CProductId = ?.

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

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

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

      Parameters:
      CProductId - the c product ID
      start - the lower bound of the range of cp definitions
      end - the upper bound of the range of cp definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp definition
      Throws:
      NoSuchCPDefinitionException - if a matching cp definition could not be found
      NoSuchCPDefinitionException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp definition
      Throws:
      NoSuchCPDefinitionException - if a matching cp definition could not be found
      NoSuchCPDefinitionException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 definition
      CProductId - the c product ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp definition
      Throws:
      NoSuchCPDefinitionException - if a cp definition with the primary key could not be found
      NoSuchCPDefinitionException
    • 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

      public static List<CPDefinition> findByCPTaxCategoryId(long CPTaxCategoryId)
      Returns all the cp definitions where CPTaxCategoryId = ?.
      Parameters:
      CPTaxCategoryId - the cp tax category ID
      Returns:
      the matching cp definitions
    • findByCPTaxCategoryId

      public static List<CPDefinition> findByCPTaxCategoryId(long CPTaxCategoryId, int start, int end)
      Returns a range of all the cp definitions where CPTaxCategoryId = ?.

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

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

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

      Parameters:
      CPTaxCategoryId - the cp tax category ID
      start - the lower bound of the range of cp definitions
      end - the upper bound of the range of cp definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp definition
      Throws:
      NoSuchCPDefinitionException - if a matching cp definition could not be found
      NoSuchCPDefinitionException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp definition
      Throws:
      NoSuchCPDefinitionException - if a matching cp definition could not be found
      NoSuchCPDefinitionException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 definition
      CPTaxCategoryId - the cp tax category ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp definition
      Throws:
      NoSuchCPDefinitionException - if a cp definition with the primary key could not be found
      NoSuchCPDefinitionException
    • 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

      public static List<CPDefinition> findByG_SE(long groupId, boolean subscriptionEnabled)
      Returns all the cp definitions where groupId = ? and subscriptionEnabled = ?.
      Parameters:
      groupId - the group ID
      subscriptionEnabled - 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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CPDefinitionModelImpl.

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

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

      Parameters:
      groupId - the group ID
      subscriptionEnabled - the subscription enabled
      start - the lower bound of the range of cp definitions
      end - the upper bound of the range of cp definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder 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 ID
      subscriptionEnabled - the subscription enabled
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp definition
      Throws:
      NoSuchCPDefinitionException - if a matching cp definition could not be found
      NoSuchCPDefinitionException
    • 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 ID
      subscriptionEnabled - the subscription enabled
      orderByComparator - the comparator to order the set by (optionally null)
      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 ID
      subscriptionEnabled - the subscription enabled
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp definition
      Throws:
      NoSuchCPDefinitionException - if a matching cp definition could not be found
      NoSuchCPDefinitionException
    • 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 ID
      subscriptionEnabled - the subscription enabled
      orderByComparator - the comparator to order the set by (optionally null)
      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 definition
      groupId - the group ID
      subscriptionEnabled - the subscription enabled
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp definition
      Throws:
      NoSuchCPDefinitionException - if a cp definition with the primary key could not be found
      NoSuchCPDefinitionException
    • filterFindByG_SE

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

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

      Parameters:
      groupId - the group ID
      subscriptionEnabled - the subscription enabled
      start - the lower bound of the range of cp definitions
      end - the upper bound of the range of cp definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 definition
      groupId - the group ID
      subscriptionEnabled - the subscription enabled
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp definition
      Throws:
      NoSuchCPDefinitionException - if a cp definition with the primary key could not be found
      NoSuchCPDefinitionException
    • 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 ID
      subscriptionEnabled - 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 ID
      subscriptionEnabled - 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 ID
      subscriptionEnabled - the subscription enabled
      Returns:
      the number of matching cp definitions that the user has permission to view
    • findByG_S

      public static List<CPDefinition> findByG_S(long groupId, int status)
      Returns all the cp definitions where groupId = ? and status = ?.
      Parameters:
      groupId - the group ID
      status - the status
      Returns:
      the matching cp definitions
    • findByG_S

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

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

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

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

      Parameters:
      groupId - the group ID
      status - the status
      start - the lower bound of the range of cp definitions
      end - the upper bound of the range of cp definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder 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 ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp definition
      Throws:
      NoSuchCPDefinitionException - if a matching cp definition could not be found
      NoSuchCPDefinitionException
    • 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 ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      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 ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp definition
      Throws:
      NoSuchCPDefinitionException - if a matching cp definition could not be found
      NoSuchCPDefinitionException
    • 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 ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      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 definition
      groupId - the group ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp definition
      Throws:
      NoSuchCPDefinitionException - if a cp definition with the primary key could not be found
      NoSuchCPDefinitionException
    • filterFindByG_S

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

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

      Parameters:
      groupId - the group ID
      status - the status
      start - the lower bound of the range of cp definitions
      end - the upper bound of the range of cp definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 definition
      groupId - the group ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp definition
      Throws:
      NoSuchCPDefinitionException - if a cp definition with the primary key could not be found
      NoSuchCPDefinitionException
    • 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 ID
      status - 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 ID
      status - 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 ID
      status - 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 a NoSuchCPDefinitionException if it could not be found.
      Parameters:
      CProductId - the c product ID
      version - the version
      Returns:
      the matching cp definition
      Throws:
      NoSuchCPDefinitionException - if a matching cp definition could not be found
      NoSuchCPDefinitionException
    • fetchByC_V

      public static CPDefinition fetchByC_V(long CProductId, int version)
      Returns the cp definition where CProductId = ? and version = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      CProductId - the c product ID
      version - the version
      Returns:
      the matching cp definition, or null if a matching cp definition could not be found
    • fetchByC_V

      public static CPDefinition fetchByC_V(long CProductId, int version, boolean useFinderCache)
      Returns the cp definition where CProductId = ? and version = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      CProductId - the c product ID
      version - the version
      useFinderCache - 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 ID
      version - 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 ID
      version - the version
      Returns:
      the number of matching cp definitions
    • findByC_S

      public static List<CPDefinition> findByC_S(long CProductId, int status)
      Returns all the cp definitions where CProductId = ? and status = ?.
      Parameters:
      CProductId - the c product ID
      status - the status
      Returns:
      the matching cp definitions
    • findByC_S

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

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

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

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

      Parameters:
      CProductId - the c product ID
      status - the status
      start - the lower bound of the range of cp definitions
      end - the upper bound of the range of cp definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder 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 ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp definition
      Throws:
      NoSuchCPDefinitionException - if a matching cp definition could not be found
      NoSuchCPDefinitionException
    • 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 ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      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 ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp definition
      Throws:
      NoSuchCPDefinitionException - if a matching cp definition could not be found
      NoSuchCPDefinitionException
    • 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 ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      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 definition
      CProductId - the c product ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp definition
      Throws:
      NoSuchCPDefinitionException - if a cp definition with the primary key could not be found
      NoSuchCPDefinitionException
    • 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 ID
      status - 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 ID
      status - the status
      Returns:
      the number of matching cp definitions
    • findByLtD_S

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

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

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

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

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

      Parameters:
      displayDate - the display date
      status - the status
      start - the lower bound of the range of cp definitions
      end - the upper bound of the range of cp definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder 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 date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching cp definition
      Throws:
      NoSuchCPDefinitionException - if a matching cp definition could not be found
      NoSuchCPDefinitionException
    • 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 date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      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 date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching cp definition
      Throws:
      NoSuchCPDefinitionException - if a matching cp definition could not be found
      NoSuchCPDefinitionException
    • 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 date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      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 definition
      displayDate - the display date
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next cp definition
      Throws:
      NoSuchCPDefinitionException - if a cp definition with the primary key could not be found
      NoSuchCPDefinitionException
    • removeByLtD_S

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

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

      public static void cacheResult(CPDefinition cpDefinition)
      Caches the cp definition in the entity cache if it is enabled.
      Parameters:
      cpDefinition - the cp definition
    • cacheResult

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

      public static CPDefinition create(long CPDefinitionId)
      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

      public static CPDefinition remove(long CPDefinitionId) throws NoSuchCPDefinitionException
      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 found
      NoSuchCPDefinitionException
    • updateImpl

      public static CPDefinition updateImpl(CPDefinition cpDefinition)
    • findByPrimaryKey

      public static CPDefinition findByPrimaryKey(long CPDefinitionId) throws NoSuchCPDefinitionException
      Returns the cp definition with the primary key or throws a NoSuchCPDefinitionException 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 found
      NoSuchCPDefinitionException
    • fetchByPrimaryKey

      public static CPDefinition fetchByPrimaryKey(long CPDefinitionId)
      Returns the cp definition with the primary key or returns null 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

      public static List<CPDefinition> findAll()
      Returns all the cp definitions.
      Returns:
      the cp definitions
    • findAll

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

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

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

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

      Parameters:
      start - the lower bound of the range of cp definitions
      end - the upper bound of the range of cp definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder 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

      public static CPDefinitionPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CPDefinitionPersistence persistence)