Class CPDefinitionOptionRelUtil
com.liferay.commerce.product.service.persistence.impl.CPDefinitionOptionRelPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CPDefinitionOptionRel cpDefinitionOptionRel) Caches the cp definition option rel in the entity cache if it is enabled.static void
cacheResult
(List<CPDefinitionOptionRel> cpDefinitionOptionRels) Caches the cp definition option rels in the entity cache if it is enabled.static void
static void
clearCache
(CPDefinitionOptionRel cpDefinitionOptionRel) static int
countAll()
Returns the number of cp definition option rels.static int
countByC_C
(long CPDefinitionId, long CPOptionId) Returns the number of cp definition option rels where CPDefinitionId = ? and CPOptionId = ?.static int
countByC_K
(long CPDefinitionId, String key) Returns the number of cp definition option rels where CPDefinitionId = ? and key = ?.static int
countByC_SC
(long CPDefinitionId, boolean skuContributor) Returns the number of cp definition option rels where CPDefinitionId = ? and skuContributor = ?.static int
countByCompanyId
(long companyId) Returns the number of cp definition option rels where companyId = ?.static int
countByCPDefinitionId
(long CPDefinitionId) Returns the number of cp definition option rels where CPDefinitionId = ?.static int
countByCPDI_R
(long CPDefinitionId, boolean required) Returns the number of cp definition option rels where CPDefinitionId = ? and required = ?.static int
countByCPOptionId
(long CPOptionId) Returns the number of cp definition option rels where CPOptionId = ?.static int
countByGroupId
(long groupId) Returns the number of cp definition option rels where groupId = ?.static int
countByUuid
(String uuid) Returns the number of cp definition option rels where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of cp definition option rels where uuid = ? and companyId = ?.static int
countByUUID_G
(String uuid, long groupId) Returns the number of cp definition option rels where uuid = ? and groupId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CPDefinitionOptionRel
create
(long CPDefinitionOptionRelId) Creates a new cp definition option rel with the primary key.static CPDefinitionOptionRel
fetchByC_C
(long CPDefinitionId, long CPOptionId) Returns the cp definition option rel where CPDefinitionId = ? and CPOptionId = ? or returnsnull
if it could not be found.static CPDefinitionOptionRel
fetchByC_C
(long CPDefinitionId, long CPOptionId, boolean useFinderCache) Returns the cp definition option rel where CPDefinitionId = ? and CPOptionId = ? or returnsnull
if it could not be found, optionally using the finder cache.static CPDefinitionOptionRel
fetchByC_K
(long CPDefinitionId, String key) Returns the cp definition option rel where CPDefinitionId = ? and key = ? or returnsnull
if it could not be found.static CPDefinitionOptionRel
fetchByC_K
(long CPDefinitionId, String key, boolean useFinderCache) Returns the cp definition option rel where CPDefinitionId = ? and key = ? or returnsnull
if it could not be found, optionally using the finder cache.static CPDefinitionOptionRel
fetchByC_SC_First
(long CPDefinitionId, boolean skuContributor, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the first cp definition option rel in the ordered set where CPDefinitionId = ? and skuContributor = ?.static CPDefinitionOptionRel
fetchByC_SC_Last
(long CPDefinitionId, boolean skuContributor, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the last cp definition option rel in the ordered set where CPDefinitionId = ? and skuContributor = ?.static CPDefinitionOptionRel
fetchByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the first cp definition option rel in the ordered set where companyId = ?.static CPDefinitionOptionRel
fetchByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the last cp definition option rel in the ordered set where companyId = ?.static CPDefinitionOptionRel
fetchByCPDefinitionId_First
(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the first cp definition option rel in the ordered set where CPDefinitionId = ?.static CPDefinitionOptionRel
fetchByCPDefinitionId_Last
(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the last cp definition option rel in the ordered set where CPDefinitionId = ?.static CPDefinitionOptionRel
fetchByCPDI_R_First
(long CPDefinitionId, boolean required, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the first cp definition option rel in the ordered set where CPDefinitionId = ? and required = ?.static CPDefinitionOptionRel
fetchByCPDI_R_Last
(long CPDefinitionId, boolean required, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the last cp definition option rel in the ordered set where CPDefinitionId = ? and required = ?.static CPDefinitionOptionRel
fetchByCPOptionId_First
(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the first cp definition option rel in the ordered set where CPOptionId = ?.static CPDefinitionOptionRel
fetchByCPOptionId_Last
(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the last cp definition option rel in the ordered set where CPOptionId = ?.static CPDefinitionOptionRel
fetchByGroupId_First
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the first cp definition option rel in the ordered set where groupId = ?.static CPDefinitionOptionRel
fetchByGroupId_Last
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the last cp definition option rel in the ordered set where groupId = ?.static CPDefinitionOptionRel
fetchByPrimaryKey
(long CPDefinitionOptionRelId) Returns the cp definition option rel with the primary key or returnsnull
if it could not be found.static Map<Serializable,
CPDefinitionOptionRel> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static CPDefinitionOptionRel
fetchByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the first cp definition option rel in the ordered set where uuid = ? and companyId = ?.static CPDefinitionOptionRel
fetchByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the last cp definition option rel in the ordered set where uuid = ? and companyId = ?.static CPDefinitionOptionRel
fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the first cp definition option rel in the ordered set where uuid = ?.static CPDefinitionOptionRel
fetchByUUID_G
(String uuid, long groupId) Returns the cp definition option rel where uuid = ? and groupId = ? or returnsnull
if it could not be found.static CPDefinitionOptionRel
fetchByUUID_G
(String uuid, long groupId, boolean useFinderCache) Returns the cp definition option rel where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.static CPDefinitionOptionRel
fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the last cp definition option rel in the ordered set where uuid = ?.static List<CPDefinitionOptionRel>
findAll()
Returns all the cp definition option rels.static List<CPDefinitionOptionRel>
findAll
(int start, int end) Returns a range of all the cp definition option rels.static List<CPDefinitionOptionRel>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns an ordered range of all the cp definition option rels.static List<CPDefinitionOptionRel>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition option rels.static CPDefinitionOptionRel
findByC_C
(long CPDefinitionId, long CPOptionId) Returns the cp definition option rel where CPDefinitionId = ? and CPOptionId = ? or throws aNoSuchCPDefinitionOptionRelException
if it could not be found.static CPDefinitionOptionRel
Returns the cp definition option rel where CPDefinitionId = ? and key = ? or throws aNoSuchCPDefinitionOptionRelException
if it could not be found.static List<CPDefinitionOptionRel>
findByC_SC
(long CPDefinitionId, boolean skuContributor) Returns all the cp definition option rels where CPDefinitionId = ? and skuContributor = ?.static List<CPDefinitionOptionRel>
findByC_SC
(long CPDefinitionId, boolean skuContributor, int start, int end) Returns a range of all the cp definition option rels where CPDefinitionId = ? and skuContributor = ?.static List<CPDefinitionOptionRel>
findByC_SC
(long CPDefinitionId, boolean skuContributor, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns an ordered range of all the cp definition option rels where CPDefinitionId = ? and skuContributor = ?.static List<CPDefinitionOptionRel>
findByC_SC
(long CPDefinitionId, boolean skuContributor, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition option rels where CPDefinitionId = ? and skuContributor = ?.static CPDefinitionOptionRel
findByC_SC_First
(long CPDefinitionId, boolean skuContributor, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the first cp definition option rel in the ordered set where CPDefinitionId = ? and skuContributor = ?.static CPDefinitionOptionRel
findByC_SC_Last
(long CPDefinitionId, boolean skuContributor, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the last cp definition option rel in the ordered set where CPDefinitionId = ? and skuContributor = ?.static CPDefinitionOptionRel[]
findByC_SC_PrevAndNext
(long CPDefinitionOptionRelId, long CPDefinitionId, boolean skuContributor, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the cp definition option rels before and after the current cp definition option rel in the ordered set where CPDefinitionId = ? and skuContributor = ?.static List<CPDefinitionOptionRel>
findByCompanyId
(long companyId) Returns all the cp definition option rels where companyId = ?.static List<CPDefinitionOptionRel>
findByCompanyId
(long companyId, int start, int end) Returns a range of all the cp definition option rels where companyId = ?.static List<CPDefinitionOptionRel>
findByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns an ordered range of all the cp definition option rels where companyId = ?.static List<CPDefinitionOptionRel>
findByCompanyId
(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition option rels where companyId = ?.static CPDefinitionOptionRel
findByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the first cp definition option rel in the ordered set where companyId = ?.static CPDefinitionOptionRel
findByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the last cp definition option rel in the ordered set where companyId = ?.static CPDefinitionOptionRel[]
findByCompanyId_PrevAndNext
(long CPDefinitionOptionRelId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the cp definition option rels before and after the current cp definition option rel in the ordered set where companyId = ?.static List<CPDefinitionOptionRel>
findByCPDefinitionId
(long CPDefinitionId) Returns all the cp definition option rels where CPDefinitionId = ?.static List<CPDefinitionOptionRel>
findByCPDefinitionId
(long CPDefinitionId, int start, int end) Returns a range of all the cp definition option rels where CPDefinitionId = ?.static List<CPDefinitionOptionRel>
findByCPDefinitionId
(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns an ordered range of all the cp definition option rels where CPDefinitionId = ?.static List<CPDefinitionOptionRel>
findByCPDefinitionId
(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition option rels where CPDefinitionId = ?.static CPDefinitionOptionRel
findByCPDefinitionId_First
(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the first cp definition option rel in the ordered set where CPDefinitionId = ?.static CPDefinitionOptionRel
findByCPDefinitionId_Last
(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the last cp definition option rel in the ordered set where CPDefinitionId = ?.static CPDefinitionOptionRel[]
findByCPDefinitionId_PrevAndNext
(long CPDefinitionOptionRelId, long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the cp definition option rels before and after the current cp definition option rel in the ordered set where CPDefinitionId = ?.static List<CPDefinitionOptionRel>
findByCPDI_R
(long CPDefinitionId, boolean required) Returns all the cp definition option rels where CPDefinitionId = ? and required = ?.static List<CPDefinitionOptionRel>
findByCPDI_R
(long CPDefinitionId, boolean required, int start, int end) Returns a range of all the cp definition option rels where CPDefinitionId = ? and required = ?.static List<CPDefinitionOptionRel>
findByCPDI_R
(long CPDefinitionId, boolean required, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns an ordered range of all the cp definition option rels where CPDefinitionId = ? and required = ?.static List<CPDefinitionOptionRel>
findByCPDI_R
(long CPDefinitionId, boolean required, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition option rels where CPDefinitionId = ? and required = ?.static CPDefinitionOptionRel
findByCPDI_R_First
(long CPDefinitionId, boolean required, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the first cp definition option rel in the ordered set where CPDefinitionId = ? and required = ?.static CPDefinitionOptionRel
findByCPDI_R_Last
(long CPDefinitionId, boolean required, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the last cp definition option rel in the ordered set where CPDefinitionId = ? and required = ?.static CPDefinitionOptionRel[]
findByCPDI_R_PrevAndNext
(long CPDefinitionOptionRelId, long CPDefinitionId, boolean required, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the cp definition option rels before and after the current cp definition option rel in the ordered set where CPDefinitionId = ? and required = ?.static List<CPDefinitionOptionRel>
findByCPOptionId
(long CPOptionId) Returns all the cp definition option rels where CPOptionId = ?.static List<CPDefinitionOptionRel>
findByCPOptionId
(long CPOptionId, int start, int end) Returns a range of all the cp definition option rels where CPOptionId = ?.static List<CPDefinitionOptionRel>
findByCPOptionId
(long CPOptionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns an ordered range of all the cp definition option rels where CPOptionId = ?.static List<CPDefinitionOptionRel>
findByCPOptionId
(long CPOptionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition option rels where CPOptionId = ?.static CPDefinitionOptionRel
findByCPOptionId_First
(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the first cp definition option rel in the ordered set where CPOptionId = ?.static CPDefinitionOptionRel
findByCPOptionId_Last
(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the last cp definition option rel in the ordered set where CPOptionId = ?.static CPDefinitionOptionRel[]
findByCPOptionId_PrevAndNext
(long CPDefinitionOptionRelId, long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the cp definition option rels before and after the current cp definition option rel in the ordered set where CPOptionId = ?.static List<CPDefinitionOptionRel>
findByGroupId
(long groupId) Returns all the cp definition option rels where groupId = ?.static List<CPDefinitionOptionRel>
findByGroupId
(long groupId, int start, int end) Returns a range of all the cp definition option rels where groupId = ?.static List<CPDefinitionOptionRel>
findByGroupId
(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns an ordered range of all the cp definition option rels where groupId = ?.static List<CPDefinitionOptionRel>
findByGroupId
(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition option rels where groupId = ?.static CPDefinitionOptionRel
findByGroupId_First
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the first cp definition option rel in the ordered set where groupId = ?.static CPDefinitionOptionRel
findByGroupId_Last
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the last cp definition option rel in the ordered set where groupId = ?.static CPDefinitionOptionRel[]
findByGroupId_PrevAndNext
(long CPDefinitionOptionRelId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the cp definition option rels before and after the current cp definition option rel in the ordered set where groupId = ?.static CPDefinitionOptionRel
findByPrimaryKey
(long CPDefinitionOptionRelId) Returns the cp definition option rel with the primary key or throws aNoSuchCPDefinitionOptionRelException
if it could not be found.static List<CPDefinitionOptionRel>
findByUuid
(String uuid) Returns all the cp definition option rels where uuid = ?.static List<CPDefinitionOptionRel>
findByUuid
(String uuid, int start, int end) Returns a range of all the cp definition option rels where uuid = ?.static List<CPDefinitionOptionRel>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns an ordered range of all the cp definition option rels where uuid = ?.static List<CPDefinitionOptionRel>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition option rels where uuid = ?.static List<CPDefinitionOptionRel>
findByUuid_C
(String uuid, long companyId) Returns all the cp definition option rels where uuid = ? and companyId = ?.static List<CPDefinitionOptionRel>
findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the cp definition option rels where uuid = ? and companyId = ?.static List<CPDefinitionOptionRel>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns an ordered range of all the cp definition option rels where uuid = ? and companyId = ?.static List<CPDefinitionOptionRel>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition option rels where uuid = ? and companyId = ?.static CPDefinitionOptionRel
findByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the first cp definition option rel in the ordered set where uuid = ? and companyId = ?.static CPDefinitionOptionRel
findByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the last cp definition option rel in the ordered set where uuid = ? and companyId = ?.static CPDefinitionOptionRel[]
findByUuid_C_PrevAndNext
(long CPDefinitionOptionRelId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the cp definition option rels before and after the current cp definition option rel in the ordered set where uuid = ? and companyId = ?.static CPDefinitionOptionRel
findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the first cp definition option rel in the ordered set where uuid = ?.static CPDefinitionOptionRel
findByUUID_G
(String uuid, long groupId) Returns the cp definition option rel where uuid = ? and groupId = ? or throws aNoSuchCPDefinitionOptionRelException
if it could not be found.static CPDefinitionOptionRel
findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the last cp definition option rel in the ordered set where uuid = ?.static CPDefinitionOptionRel[]
findByUuid_PrevAndNext
(long CPDefinitionOptionRelId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the cp definition option rels before and after the current cp definition option rel in the ordered set where uuid = ?.static List<CPDefinitionOptionRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CPDefinitionOptionRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CPDefinitionOptionRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) static CPDefinitionOptionRel
remove
(long CPDefinitionOptionRelId) Removes the cp definition option rel with the primary key from the database.static void
Removes all the cp definition option rels from the database.static CPDefinitionOptionRel
removeByC_C
(long CPDefinitionId, long CPOptionId) Removes the cp definition option rel where CPDefinitionId = ? and CPOptionId = ? from the database.static CPDefinitionOptionRel
removeByC_K
(long CPDefinitionId, String key) Removes the cp definition option rel where CPDefinitionId = ? and key = ? from the database.static void
removeByC_SC
(long CPDefinitionId, boolean skuContributor) Removes all the cp definition option rels where CPDefinitionId = ? and skuContributor = ? from the database.static void
removeByCompanyId
(long companyId) Removes all the cp definition option rels where companyId = ? from the database.static void
removeByCPDefinitionId
(long CPDefinitionId) Removes all the cp definition option rels where CPDefinitionId = ? from the database.static void
removeByCPDI_R
(long CPDefinitionId, boolean required) Removes all the cp definition option rels where CPDefinitionId = ? and required = ? from the database.static void
removeByCPOptionId
(long CPOptionId) Removes all the cp definition option rels where CPOptionId = ? from the database.static void
removeByGroupId
(long groupId) Removes all the cp definition option rels where groupId = ? from the database.static void
removeByUuid
(String uuid) Removes all the cp definition option rels where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the cp definition option rels where uuid = ? and companyId = ? from the database.static CPDefinitionOptionRel
removeByUUID_G
(String uuid, long groupId) Removes the cp definition option rel where uuid = ? and groupId = ? from the database.static void
setPersistence
(CPDefinitionOptionRelPersistence persistence) static CPDefinitionOptionRel
update
(CPDefinitionOptionRel cpDefinitionOptionRel) static CPDefinitionOptionRel
update
(CPDefinitionOptionRel cpDefinitionOptionRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CPDefinitionOptionRel
updateImpl
(CPDefinitionOptionRel cpDefinitionOptionRel)
-
Constructor Details
-
CPDefinitionOptionRelUtil
public CPDefinitionOptionRelUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
public static Map<Serializable,CPDefinitionOptionRel> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CPDefinitionOptionRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CPDefinitionOptionRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CPDefinitionOptionRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CPDefinitionOptionRel update(CPDefinitionOptionRel cpDefinitionOptionRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the cp definition option rels where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching cp definition option rels
-
findByUuid
Returns a range of all the cp definition option rels where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)- Returns:
- the range of matching cp definition option rels
-
findByUuid
public static List<CPDefinitionOptionRel> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns an ordered range of all the cp definition option rels where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp definition option rels
-
findByUuid
public static List<CPDefinitionOptionRel> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition option rels where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp definition option rels
-
findByUuid_First
public static CPDefinitionOptionRel findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException Returns the first cp definition option rel in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundNoSuchCPDefinitionOptionRelException
-
fetchByUuid_First
public static CPDefinitionOptionRel fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the first cp definition option rel in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition option rel, or
null
if a matching cp definition option rel could not be found
-
findByUuid_Last
public static CPDefinitionOptionRel findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException Returns the last cp definition option rel in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundNoSuchCPDefinitionOptionRelException
-
fetchByUuid_Last
public static CPDefinitionOptionRel fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the last cp definition option rel in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition option rel, or
null
if a matching cp definition option rel could not be found
-
findByUuid_PrevAndNext
public static CPDefinitionOptionRel[] findByUuid_PrevAndNext(long CPDefinitionOptionRelId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException Returns the cp definition option rels before and after the current cp definition option rel in the ordered set where uuid = ?.- Parameters:
CPDefinitionOptionRelId
- the primary key of the current cp definition option reluuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a cp definition option rel with the primary key could not be foundNoSuchCPDefinitionOptionRelException
-
removeByUuid
Removes all the cp definition option rels where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of cp definition option rels where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching cp definition option rels
-
findByUUID_G
public static CPDefinitionOptionRel findByUUID_G(String uuid, long groupId) throws NoSuchCPDefinitionOptionRelException Returns the cp definition option rel where uuid = ? and groupId = ? or throws aNoSuchCPDefinitionOptionRelException
if it could not be found.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundNoSuchCPDefinitionOptionRelException
-
fetchByUUID_G
Returns the cp definition option rel where uuid = ? and groupId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching cp definition option rel, or
null
if a matching cp definition option rel could not be found
-
fetchByUUID_G
public static CPDefinitionOptionRel fetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the cp definition option rel where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching cp definition option rel, or
null
if a matching cp definition option rel could not be found
-
removeByUUID_G
public static CPDefinitionOptionRel removeByUUID_G(String uuid, long groupId) throws NoSuchCPDefinitionOptionRelException Removes the cp definition option rel where uuid = ? and groupId = ? from the database.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the cp definition option rel that was removed
- Throws:
NoSuchCPDefinitionOptionRelException
-
countByUUID_G
Returns the number of cp definition option rels where uuid = ? and groupId = ?.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the number of matching cp definition option rels
-
findByUuid_C
Returns all the cp definition option rels where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching cp definition option rels
-
findByUuid_C
public static List<CPDefinitionOptionRel> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the cp definition option rels where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)- Returns:
- the range of matching cp definition option rels
-
findByUuid_C
public static List<CPDefinitionOptionRel> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns an ordered range of all the cp definition option rels where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp definition option rels
-
findByUuid_C
public static List<CPDefinitionOptionRel> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition option rels where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp definition option rels
-
findByUuid_C_First
public static CPDefinitionOptionRel findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException Returns the first cp definition option rel in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundNoSuchCPDefinitionOptionRelException
-
fetchByUuid_C_First
public static CPDefinitionOptionRel fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the first cp definition option rel in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition option rel, or
null
if a matching cp definition option rel could not be found
-
findByUuid_C_Last
public static CPDefinitionOptionRel findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException Returns the last cp definition option rel in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundNoSuchCPDefinitionOptionRelException
-
fetchByUuid_C_Last
public static CPDefinitionOptionRel fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the last cp definition option rel in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition option rel, or
null
if a matching cp definition option rel could not be found
-
findByUuid_C_PrevAndNext
public static CPDefinitionOptionRel[] findByUuid_C_PrevAndNext(long CPDefinitionOptionRelId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException Returns the cp definition option rels before and after the current cp definition option rel in the ordered set where uuid = ? and companyId = ?.- Parameters:
CPDefinitionOptionRelId
- the primary key of the current cp definition option reluuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a cp definition option rel with the primary key could not be foundNoSuchCPDefinitionOptionRelException
-
removeByUuid_C
Removes all the cp definition option rels where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of cp definition option rels where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching cp definition option rels
-
findByGroupId
Returns all the cp definition option rels where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the matching cp definition option rels
-
findByGroupId
Returns a range of all the cp definition option rels where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)- Returns:
- the range of matching cp definition option rels
-
findByGroupId
public static List<CPDefinitionOptionRel> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns an ordered range of all the cp definition option rels where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp definition option rels
-
findByGroupId
public static List<CPDefinitionOptionRel> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition option rels where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp definition option rels
-
findByGroupId_First
public static CPDefinitionOptionRel findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException Returns the first cp definition option rel in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundNoSuchCPDefinitionOptionRelException
-
fetchByGroupId_First
public static CPDefinitionOptionRel fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the first cp definition option rel in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition option rel, or
null
if a matching cp definition option rel could not be found
-
findByGroupId_Last
public static CPDefinitionOptionRel findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException Returns the last cp definition option rel in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundNoSuchCPDefinitionOptionRelException
-
fetchByGroupId_Last
public static CPDefinitionOptionRel fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the last cp definition option rel in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition option rel, or
null
if a matching cp definition option rel could not be found
-
findByGroupId_PrevAndNext
public static CPDefinitionOptionRel[] findByGroupId_PrevAndNext(long CPDefinitionOptionRelId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException Returns the cp definition option rels before and after the current cp definition option rel in the ordered set where groupId = ?.- Parameters:
CPDefinitionOptionRelId
- the primary key of the current cp definition option relgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a cp definition option rel with the primary key could not be foundNoSuchCPDefinitionOptionRelException
-
removeByGroupId
public static void removeByGroupId(long groupId) Removes all the cp definition option rels where groupId = ? from the database.- Parameters:
groupId
- the group ID
-
countByGroupId
public static int countByGroupId(long groupId) Returns the number of cp definition option rels where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the number of matching cp definition option rels
-
findByCompanyId
Returns all the cp definition option rels where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching cp definition option rels
-
findByCompanyId
Returns a range of all the cp definition option rels where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)- Returns:
- the range of matching cp definition option rels
-
findByCompanyId
public static List<CPDefinitionOptionRel> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns an ordered range of all the cp definition option rels where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp definition option rels
-
findByCompanyId
public static List<CPDefinitionOptionRel> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition option rels where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp definition option rels
-
findByCompanyId_First
public static CPDefinitionOptionRel findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException Returns the first cp definition option rel in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundNoSuchCPDefinitionOptionRelException
-
fetchByCompanyId_First
public static CPDefinitionOptionRel fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the first cp definition option rel in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition option rel, or
null
if a matching cp definition option rel could not be found
-
findByCompanyId_Last
public static CPDefinitionOptionRel findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException Returns the last cp definition option rel in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundNoSuchCPDefinitionOptionRelException
-
fetchByCompanyId_Last
public static CPDefinitionOptionRel fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the last cp definition option rel in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition option rel, or
null
if a matching cp definition option rel could not be found
-
findByCompanyId_PrevAndNext
public static CPDefinitionOptionRel[] findByCompanyId_PrevAndNext(long CPDefinitionOptionRelId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException Returns the cp definition option rels before and after the current cp definition option rel in the ordered set where companyId = ?.- Parameters:
CPDefinitionOptionRelId
- the primary key of the current cp definition option relcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a cp definition option rel with the primary key could not be foundNoSuchCPDefinitionOptionRelException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the cp definition option rels where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of cp definition option rels where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching cp definition option rels
-
findByCPDefinitionId
Returns all the cp definition option rels where CPDefinitionId = ?.- Parameters:
CPDefinitionId
- the cp definition ID- Returns:
- the matching cp definition option rels
-
findByCPDefinitionId
public static List<CPDefinitionOptionRel> findByCPDefinitionId(long CPDefinitionId, int start, int end) Returns a range of all the cp definition option rels where CPDefinitionId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
CPDefinitionId
- the cp definition IDstart
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)- Returns:
- the range of matching cp definition option rels
-
findByCPDefinitionId
public static List<CPDefinitionOptionRel> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns an ordered range of all the cp definition option rels where CPDefinitionId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
CPDefinitionId
- the cp definition IDstart
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp definition option rels
-
findByCPDefinitionId
public static List<CPDefinitionOptionRel> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition option rels where CPDefinitionId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
CPDefinitionId
- the cp definition IDstart
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp definition option rels
-
findByCPDefinitionId_First
public static CPDefinitionOptionRel findByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException Returns the first cp definition option rel in the ordered set where CPDefinitionId = ?.- Parameters:
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundNoSuchCPDefinitionOptionRelException
-
fetchByCPDefinitionId_First
public static CPDefinitionOptionRel fetchByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the first cp definition option rel in the ordered set where CPDefinitionId = ?.- Parameters:
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition option rel, or
null
if a matching cp definition option rel could not be found
-
findByCPDefinitionId_Last
public static CPDefinitionOptionRel findByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException Returns the last cp definition option rel in the ordered set where CPDefinitionId = ?.- Parameters:
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundNoSuchCPDefinitionOptionRelException
-
fetchByCPDefinitionId_Last
public static CPDefinitionOptionRel fetchByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the last cp definition option rel in the ordered set where CPDefinitionId = ?.- Parameters:
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition option rel, or
null
if a matching cp definition option rel could not be found
-
findByCPDefinitionId_PrevAndNext
public static CPDefinitionOptionRel[] findByCPDefinitionId_PrevAndNext(long CPDefinitionOptionRelId, long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException Returns the cp definition option rels before and after the current cp definition option rel in the ordered set where CPDefinitionId = ?.- Parameters:
CPDefinitionOptionRelId
- the primary key of the current cp definition option relCPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a cp definition option rel with the primary key could not be foundNoSuchCPDefinitionOptionRelException
-
removeByCPDefinitionId
public static void removeByCPDefinitionId(long CPDefinitionId) Removes all the cp definition option rels where CPDefinitionId = ? from the database.- Parameters:
CPDefinitionId
- the cp definition ID
-
countByCPDefinitionId
public static int countByCPDefinitionId(long CPDefinitionId) Returns the number of cp definition option rels where CPDefinitionId = ?.- Parameters:
CPDefinitionId
- the cp definition ID- Returns:
- the number of matching cp definition option rels
-
findByCPOptionId
Returns all the cp definition option rels where CPOptionId = ?.- Parameters:
CPOptionId
- the cp option ID- Returns:
- the matching cp definition option rels
-
findByCPOptionId
Returns a range of all the cp definition option rels where CPOptionId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
CPOptionId
- the cp option IDstart
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)- Returns:
- the range of matching cp definition option rels
-
findByCPOptionId
public static List<CPDefinitionOptionRel> findByCPOptionId(long CPOptionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns an ordered range of all the cp definition option rels where CPOptionId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
CPOptionId
- the cp option IDstart
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp definition option rels
-
findByCPOptionId
public static List<CPDefinitionOptionRel> findByCPOptionId(long CPOptionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition option rels where CPOptionId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
CPOptionId
- the cp option IDstart
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp definition option rels
-
findByCPOptionId_First
public static CPDefinitionOptionRel findByCPOptionId_First(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException Returns the first cp definition option rel in the ordered set where CPOptionId = ?.- Parameters:
CPOptionId
- the cp option IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundNoSuchCPDefinitionOptionRelException
-
fetchByCPOptionId_First
public static CPDefinitionOptionRel fetchByCPOptionId_First(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the first cp definition option rel in the ordered set where CPOptionId = ?.- Parameters:
CPOptionId
- the cp option IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition option rel, or
null
if a matching cp definition option rel could not be found
-
findByCPOptionId_Last
public static CPDefinitionOptionRel findByCPOptionId_Last(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException Returns the last cp definition option rel in the ordered set where CPOptionId = ?.- Parameters:
CPOptionId
- the cp option IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundNoSuchCPDefinitionOptionRelException
-
fetchByCPOptionId_Last
public static CPDefinitionOptionRel fetchByCPOptionId_Last(long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the last cp definition option rel in the ordered set where CPOptionId = ?.- Parameters:
CPOptionId
- the cp option IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition option rel, or
null
if a matching cp definition option rel could not be found
-
findByCPOptionId_PrevAndNext
public static CPDefinitionOptionRel[] findByCPOptionId_PrevAndNext(long CPDefinitionOptionRelId, long CPOptionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException Returns the cp definition option rels before and after the current cp definition option rel in the ordered set where CPOptionId = ?.- Parameters:
CPDefinitionOptionRelId
- the primary key of the current cp definition option relCPOptionId
- the cp option IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a cp definition option rel with the primary key could not be foundNoSuchCPDefinitionOptionRelException
-
removeByCPOptionId
public static void removeByCPOptionId(long CPOptionId) Removes all the cp definition option rels where CPOptionId = ? from the database.- Parameters:
CPOptionId
- the cp option ID
-
countByCPOptionId
public static int countByCPOptionId(long CPOptionId) Returns the number of cp definition option rels where CPOptionId = ?.- Parameters:
CPOptionId
- the cp option ID- Returns:
- the number of matching cp definition option rels
-
findByC_C
public static CPDefinitionOptionRel findByC_C(long CPDefinitionId, long CPOptionId) throws NoSuchCPDefinitionOptionRelException Returns the cp definition option rel where CPDefinitionId = ? and CPOptionId = ? or throws aNoSuchCPDefinitionOptionRelException
if it could not be found.- Parameters:
CPDefinitionId
- the cp definition IDCPOptionId
- the cp option ID- Returns:
- the matching cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundNoSuchCPDefinitionOptionRelException
-
fetchByC_C
Returns the cp definition option rel where CPDefinitionId = ? and CPOptionId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
CPDefinitionId
- the cp definition IDCPOptionId
- the cp option ID- Returns:
- the matching cp definition option rel, or
null
if a matching cp definition option rel could not be found
-
fetchByC_C
public static CPDefinitionOptionRel fetchByC_C(long CPDefinitionId, long CPOptionId, boolean useFinderCache) Returns the cp definition option rel where CPDefinitionId = ? and CPOptionId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
CPDefinitionId
- the cp definition IDCPOptionId
- the cp option IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching cp definition option rel, or
null
if a matching cp definition option rel could not be found
-
removeByC_C
public static CPDefinitionOptionRel removeByC_C(long CPDefinitionId, long CPOptionId) throws NoSuchCPDefinitionOptionRelException Removes the cp definition option rel where CPDefinitionId = ? and CPOptionId = ? from the database.- Parameters:
CPDefinitionId
- the cp definition IDCPOptionId
- the cp option ID- Returns:
- the cp definition option rel that was removed
- Throws:
NoSuchCPDefinitionOptionRelException
-
countByC_C
public static int countByC_C(long CPDefinitionId, long CPOptionId) Returns the number of cp definition option rels where CPDefinitionId = ? and CPOptionId = ?.- Parameters:
CPDefinitionId
- the cp definition IDCPOptionId
- the cp option ID- Returns:
- the number of matching cp definition option rels
-
findByCPDI_R
Returns all the cp definition option rels where CPDefinitionId = ? and required = ?.- Parameters:
CPDefinitionId
- the cp definition IDrequired
- the required- Returns:
- the matching cp definition option rels
-
findByCPDI_R
public static List<CPDefinitionOptionRel> findByCPDI_R(long CPDefinitionId, boolean required, int start, int end) Returns a range of all the cp definition option rels where CPDefinitionId = ? and required = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
CPDefinitionId
- the cp definition IDrequired
- the requiredstart
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)- Returns:
- the range of matching cp definition option rels
-
findByCPDI_R
public static List<CPDefinitionOptionRel> findByCPDI_R(long CPDefinitionId, boolean required, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns an ordered range of all the cp definition option rels where CPDefinitionId = ? and required = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
CPDefinitionId
- the cp definition IDrequired
- the requiredstart
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp definition option rels
-
findByCPDI_R
public static List<CPDefinitionOptionRel> findByCPDI_R(long CPDefinitionId, boolean required, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition option rels where CPDefinitionId = ? and required = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
CPDefinitionId
- the cp definition IDrequired
- the requiredstart
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp definition option rels
-
findByCPDI_R_First
public static CPDefinitionOptionRel findByCPDI_R_First(long CPDefinitionId, boolean required, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException Returns the first cp definition option rel in the ordered set where CPDefinitionId = ? and required = ?.- Parameters:
CPDefinitionId
- the cp definition IDrequired
- the requiredorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundNoSuchCPDefinitionOptionRelException
-
fetchByCPDI_R_First
public static CPDefinitionOptionRel fetchByCPDI_R_First(long CPDefinitionId, boolean required, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the first cp definition option rel in the ordered set where CPDefinitionId = ? and required = ?.- Parameters:
CPDefinitionId
- the cp definition IDrequired
- the requiredorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition option rel, or
null
if a matching cp definition option rel could not be found
-
findByCPDI_R_Last
public static CPDefinitionOptionRel findByCPDI_R_Last(long CPDefinitionId, boolean required, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException Returns the last cp definition option rel in the ordered set where CPDefinitionId = ? and required = ?.- Parameters:
CPDefinitionId
- the cp definition IDrequired
- the requiredorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundNoSuchCPDefinitionOptionRelException
-
fetchByCPDI_R_Last
public static CPDefinitionOptionRel fetchByCPDI_R_Last(long CPDefinitionId, boolean required, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the last cp definition option rel in the ordered set where CPDefinitionId = ? and required = ?.- Parameters:
CPDefinitionId
- the cp definition IDrequired
- the requiredorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition option rel, or
null
if a matching cp definition option rel could not be found
-
findByCPDI_R_PrevAndNext
public static CPDefinitionOptionRel[] findByCPDI_R_PrevAndNext(long CPDefinitionOptionRelId, long CPDefinitionId, boolean required, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException Returns the cp definition option rels before and after the current cp definition option rel in the ordered set where CPDefinitionId = ? and required = ?.- Parameters:
CPDefinitionOptionRelId
- the primary key of the current cp definition option relCPDefinitionId
- the cp definition IDrequired
- the requiredorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a cp definition option rel with the primary key could not be foundNoSuchCPDefinitionOptionRelException
-
removeByCPDI_R
public static void removeByCPDI_R(long CPDefinitionId, boolean required) Removes all the cp definition option rels where CPDefinitionId = ? and required = ? from the database.- Parameters:
CPDefinitionId
- the cp definition IDrequired
- the required
-
countByCPDI_R
public static int countByCPDI_R(long CPDefinitionId, boolean required) Returns the number of cp definition option rels where CPDefinitionId = ? and required = ?.- Parameters:
CPDefinitionId
- the cp definition IDrequired
- the required- Returns:
- the number of matching cp definition option rels
-
findByC_SC
Returns all the cp definition option rels where CPDefinitionId = ? and skuContributor = ?.- Parameters:
CPDefinitionId
- the cp definition IDskuContributor
- the sku contributor- Returns:
- the matching cp definition option rels
-
findByC_SC
public static List<CPDefinitionOptionRel> findByC_SC(long CPDefinitionId, boolean skuContributor, int start, int end) Returns a range of all the cp definition option rels where CPDefinitionId = ? and skuContributor = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
CPDefinitionId
- the cp definition IDskuContributor
- the sku contributorstart
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)- Returns:
- the range of matching cp definition option rels
-
findByC_SC
public static List<CPDefinitionOptionRel> findByC_SC(long CPDefinitionId, boolean skuContributor, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns an ordered range of all the cp definition option rels where CPDefinitionId = ? and skuContributor = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
CPDefinitionId
- the cp definition IDskuContributor
- the sku contributorstart
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp definition option rels
-
findByC_SC
public static List<CPDefinitionOptionRel> findByC_SC(long CPDefinitionId, boolean skuContributor, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition option rels where CPDefinitionId = ? and skuContributor = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
CPDefinitionId
- the cp definition IDskuContributor
- the sku contributorstart
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching cp definition option rels
-
findByC_SC_First
public static CPDefinitionOptionRel findByC_SC_First(long CPDefinitionId, boolean skuContributor, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException Returns the first cp definition option rel in the ordered set where CPDefinitionId = ? and skuContributor = ?.- Parameters:
CPDefinitionId
- the cp definition IDskuContributor
- the sku contributororderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundNoSuchCPDefinitionOptionRelException
-
fetchByC_SC_First
public static CPDefinitionOptionRel fetchByC_SC_First(long CPDefinitionId, boolean skuContributor, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the first cp definition option rel in the ordered set where CPDefinitionId = ? and skuContributor = ?.- Parameters:
CPDefinitionId
- the cp definition IDskuContributor
- the sku contributororderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition option rel, or
null
if a matching cp definition option rel could not be found
-
findByC_SC_Last
public static CPDefinitionOptionRel findByC_SC_Last(long CPDefinitionId, boolean skuContributor, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException Returns the last cp definition option rel in the ordered set where CPDefinitionId = ? and skuContributor = ?.- Parameters:
CPDefinitionId
- the cp definition IDskuContributor
- the sku contributororderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundNoSuchCPDefinitionOptionRelException
-
fetchByC_SC_Last
public static CPDefinitionOptionRel fetchByC_SC_Last(long CPDefinitionId, boolean skuContributor, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns the last cp definition option rel in the ordered set where CPDefinitionId = ? and skuContributor = ?.- Parameters:
CPDefinitionId
- the cp definition IDskuContributor
- the sku contributororderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition option rel, or
null
if a matching cp definition option rel could not be found
-
findByC_SC_PrevAndNext
public static CPDefinitionOptionRel[] findByC_SC_PrevAndNext(long CPDefinitionOptionRelId, long CPDefinitionId, boolean skuContributor, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException Returns the cp definition option rels before and after the current cp definition option rel in the ordered set where CPDefinitionId = ? and skuContributor = ?.- Parameters:
CPDefinitionOptionRelId
- the primary key of the current cp definition option relCPDefinitionId
- the cp definition IDskuContributor
- the sku contributororderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a cp definition option rel with the primary key could not be foundNoSuchCPDefinitionOptionRelException
-
removeByC_SC
public static void removeByC_SC(long CPDefinitionId, boolean skuContributor) Removes all the cp definition option rels where CPDefinitionId = ? and skuContributor = ? from the database.- Parameters:
CPDefinitionId
- the cp definition IDskuContributor
- the sku contributor
-
countByC_SC
public static int countByC_SC(long CPDefinitionId, boolean skuContributor) Returns the number of cp definition option rels where CPDefinitionId = ? and skuContributor = ?.- Parameters:
CPDefinitionId
- the cp definition IDskuContributor
- the sku contributor- Returns:
- the number of matching cp definition option rels
-
findByC_K
public static CPDefinitionOptionRel findByC_K(long CPDefinitionId, String key) throws NoSuchCPDefinitionOptionRelException Returns the cp definition option rel where CPDefinitionId = ? and key = ? or throws aNoSuchCPDefinitionOptionRelException
if it could not be found.- Parameters:
CPDefinitionId
- the cp definition IDkey
- the key- Returns:
- the matching cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundNoSuchCPDefinitionOptionRelException
-
fetchByC_K
Returns the cp definition option rel where CPDefinitionId = ? and key = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
CPDefinitionId
- the cp definition IDkey
- the key- Returns:
- the matching cp definition option rel, or
null
if a matching cp definition option rel could not be found
-
fetchByC_K
public static CPDefinitionOptionRel fetchByC_K(long CPDefinitionId, String key, boolean useFinderCache) Returns the cp definition option rel where CPDefinitionId = ? and key = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
CPDefinitionId
- the cp definition IDkey
- the keyuseFinderCache
- whether to use the finder cache- Returns:
- the matching cp definition option rel, or
null
if a matching cp definition option rel could not be found
-
removeByC_K
public static CPDefinitionOptionRel removeByC_K(long CPDefinitionId, String key) throws NoSuchCPDefinitionOptionRelException Removes the cp definition option rel where CPDefinitionId = ? and key = ? from the database.- Parameters:
CPDefinitionId
- the cp definition IDkey
- the key- Returns:
- the cp definition option rel that was removed
- Throws:
NoSuchCPDefinitionOptionRelException
-
countByC_K
Returns the number of cp definition option rels where CPDefinitionId = ? and key = ?.- Parameters:
CPDefinitionId
- the cp definition IDkey
- the key- Returns:
- the number of matching cp definition option rels
-
cacheResult
Caches the cp definition option rel in the entity cache if it is enabled.- Parameters:
cpDefinitionOptionRel
- the cp definition option rel
-
cacheResult
Caches the cp definition option rels in the entity cache if it is enabled.- Parameters:
cpDefinitionOptionRels
- the cp definition option rels
-
create
Creates a new cp definition option rel with the primary key. Does not add the cp definition option rel to the database.- Parameters:
CPDefinitionOptionRelId
- the primary key for the new cp definition option rel- Returns:
- the new cp definition option rel
-
remove
public static CPDefinitionOptionRel remove(long CPDefinitionOptionRelId) throws NoSuchCPDefinitionOptionRelException Removes the cp definition option rel with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
CPDefinitionOptionRelId
- the primary key of the cp definition option rel- Returns:
- the cp definition option rel that was removed
- Throws:
NoSuchCPDefinitionOptionRelException
- if a cp definition option rel with the primary key could not be foundNoSuchCPDefinitionOptionRelException
-
updateImpl
-
findByPrimaryKey
public static CPDefinitionOptionRel findByPrimaryKey(long CPDefinitionOptionRelId) throws NoSuchCPDefinitionOptionRelException Returns the cp definition option rel with the primary key or throws aNoSuchCPDefinitionOptionRelException
if it could not be found.- Parameters:
CPDefinitionOptionRelId
- the primary key of the cp definition option rel- Returns:
- the cp definition option rel
- Throws:
NoSuchCPDefinitionOptionRelException
- if a cp definition option rel with the primary key could not be foundNoSuchCPDefinitionOptionRelException
-
fetchByPrimaryKey
Returns the cp definition option rel with the primary key or returnsnull
if it could not be found.- Parameters:
CPDefinitionOptionRelId
- the primary key of the cp definition option rel- Returns:
- the cp definition option rel, or
null
if a cp definition option rel with the primary key could not be found
-
findAll
Returns all the cp definition option rels.- Returns:
- the cp definition option rels
-
findAll
Returns a range of all the cp definition option rels.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
start
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)- Returns:
- the range of cp definition option rels
-
findAll
public static List<CPDefinitionOptionRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) Returns an ordered range of all the cp definition option rels.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
start
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of cp definition option rels
-
findAll
public static List<CPDefinitionOptionRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition option rels.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCPDefinitionOptionRelModelImpl
.- Parameters:
start
- the lower bound of the range of cp definition option relsend
- the upper bound of the range of cp definition option rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of cp definition option rels
-
removeAll
public static void removeAll()Removes all the cp definition option rels from the database. -
countAll
public static int countAll()Returns the number of cp definition option rels.- Returns:
- the number of cp definition option rels
-
getPersistence
-
setPersistence
-