public class CPDefinitionOptionRelUtil
extends java.lang.Object
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
CPDefinitionOptionRelPersistence
Constructor and Description |
---|
CPDefinitionOptionRelUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CPDefinitionOptionRel cpDefinitionOptionRel)
Caches the cp definition option rel in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CPDefinitionOptionRel> cpDefinitionOptionRels)
Caches the cp definition option rels in the entity cache if it is enabled.
|
static void |
clearCache() |
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,
java.lang.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 |
countByGroupId(long groupId)
Returns the number of cp definition option rels where groupId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of cp definition option rels where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of cp definition option rels where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of cp definition option rels where uuid = ?.
|
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 returns
null 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 returns
null if it could not be found, optionally using the finder cache. |
static CPDefinitionOptionRel |
fetchByC_K(long CPDefinitionId,
java.lang.String key)
Returns the cp definition option rel where CPDefinitionId = ? and key = ? or returns
null if it could not be found. |
static CPDefinitionOptionRel |
fetchByC_K(long CPDefinitionId,
java.lang.String key,
boolean useFinderCache)
Returns the cp definition option rel where CPDefinitionId = ? and key = ? or returns
null 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 |
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 returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CPDefinitionOptionRel> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CPDefinitionOptionRel |
fetchByUuid_C_First(java.lang.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(java.lang.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(java.lang.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(java.lang.String uuid,
long groupId)
Returns the cp definition option rel where uuid = ? and groupId = ? or returns
null if it could not be found. |
static CPDefinitionOptionRel |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean useFinderCache)
Returns the cp definition option rel where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CPDefinitionOptionRel |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator)
Returns the last cp definition option rel in the ordered set where uuid = ?.
|
static java.util.List<CPDefinitionOptionRel> |
findAll()
Returns all the cp definition option rels.
|
static java.util.List<CPDefinitionOptionRel> |
findAll(int start,
int end)
Returns a range of all the cp definition option rels.
|
static java.util.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 java.util.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 a
NoSuchCPDefinitionOptionRelException if it could not be found. |
static CPDefinitionOptionRel |
findByC_K(long CPDefinitionId,
java.lang.String key)
Returns the cp definition option rel where CPDefinitionId = ? and key = ? or throws a
NoSuchCPDefinitionOptionRelException if it could not be found. |
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 java.util.List<CPDefinitionOptionRel> |
findByC_SC(long CPDefinitionId,
boolean skuContributor)
Returns all the cp definition option rels where CPDefinitionId = ? and skuContributor = ?.
|
static java.util.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 java.util.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 java.util.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 |
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 java.util.List<CPDefinitionOptionRel> |
findByCompanyId(long companyId)
Returns all the cp definition option rels where companyId = ?.
|
static java.util.List<CPDefinitionOptionRel> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the cp definition option rels where companyId = ?.
|
static java.util.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 java.util.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 |
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 java.util.List<CPDefinitionOptionRel> |
findByCPDefinitionId(long CPDefinitionId)
Returns all the cp definition option rels where CPDefinitionId = ?.
|
static java.util.List<CPDefinitionOptionRel> |
findByCPDefinitionId(long CPDefinitionId,
int start,
int end)
Returns a range of all the cp definition option rels where CPDefinitionId = ?.
|
static java.util.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 java.util.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 |
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 java.util.List<CPDefinitionOptionRel> |
findByCPDI_R(long CPDefinitionId,
boolean required)
Returns all the cp definition option rels where CPDefinitionId = ? and required = ?.
|
static java.util.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 java.util.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 java.util.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 |
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 java.util.List<CPDefinitionOptionRel> |
findByGroupId(long groupId)
Returns all the cp definition option rels where groupId = ?.
|
static java.util.List<CPDefinitionOptionRel> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the cp definition option rels where groupId = ?.
|
static java.util.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 java.util.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 |
findByPrimaryKey(long CPDefinitionOptionRelId)
Returns the cp definition option rel with the primary key or throws a
NoSuchCPDefinitionOptionRelException if it could not be found. |
static CPDefinitionOptionRel |
findByUuid_C_First(java.lang.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(java.lang.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,
java.lang.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 java.util.List<CPDefinitionOptionRel> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the cp definition option rels where uuid = ? and companyId = ?.
|
static java.util.List<CPDefinitionOptionRel> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the cp definition option rels where uuid = ? and companyId = ?.
|
static java.util.List<CPDefinitionOptionRel> |
findByUuid_C(java.lang.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 java.util.List<CPDefinitionOptionRel> |
findByUuid_C(java.lang.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_First(java.lang.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(java.lang.String uuid,
long groupId)
Returns the cp definition option rel where uuid = ? and groupId = ? or throws a
NoSuchCPDefinitionOptionRelException if it could not be found. |
static CPDefinitionOptionRel |
findByUuid_Last(java.lang.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,
java.lang.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 java.util.List<CPDefinitionOptionRel> |
findByUuid(java.lang.String uuid)
Returns all the cp definition option rels where uuid = ?.
|
static java.util.List<CPDefinitionOptionRel> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the cp definition option rels where uuid = ?.
|
static java.util.List<CPDefinitionOptionRel> |
findByUuid(java.lang.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 java.util.List<CPDefinitionOptionRel> |
findByUuid(java.lang.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 java.util.List<CPDefinitionOptionRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CPDefinitionOptionRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CPDefinitionOptionRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) |
static CPDefinitionOptionRelPersistence |
getPersistence() |
static CPDefinitionOptionRel |
remove(long CPDefinitionOptionRelId)
Removes the cp definition option rel with the primary key from the database.
|
static void |
removeAll()
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,
java.lang.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 |
removeByGroupId(long groupId)
Removes all the cp definition option rels where groupId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the cp definition option rels where uuid = ? and companyId = ? from the database.
|
static CPDefinitionOptionRel |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the cp definition option rel where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the cp definition option rels where uuid = ? from the database.
|
static CPDefinitionOptionRel |
update(CPDefinitionOptionRel cpDefinitionOptionRel) |
static CPDefinitionOptionRel |
update(CPDefinitionOptionRel cpDefinitionOptionRel,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CPDefinitionOptionRel |
updateImpl(CPDefinitionOptionRel cpDefinitionOptionRel) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CPDefinitionOptionRel cpDefinitionOptionRel)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CPDefinitionOptionRel> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CPDefinitionOptionRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CPDefinitionOptionRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CPDefinitionOptionRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CPDefinitionOptionRel update(CPDefinitionOptionRel cpDefinitionOptionRel)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CPDefinitionOptionRel update(CPDefinitionOptionRel cpDefinitionOptionRel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CPDefinitionOptionRel> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CPDefinitionOptionRel> findByUuid(java.lang.String uuid, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPDefinitionOptionRelModelImpl
.
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)public static java.util.List<CPDefinitionOptionRel> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPDefinitionOptionRelModelImpl
.
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 (optionally null
)public static java.util.List<CPDefinitionOptionRel> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPDefinitionOptionRelModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinitionOptionRel findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel[] findByUuid_PrevAndNext(long CPDefinitionOptionRelId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException
CPDefinitionOptionRelId
- the primary key of the current cp definition option reluuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionOptionRelException
- if a cp definition option rel with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static CPDefinitionOptionRel findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCPDefinitionOptionRelException
NoSuchCPDefinitionOptionRelException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel fetchByUUID_G(java.lang.String uuid, long groupId)
null
if it could not be found. Uses the finder cache.uuid
- the uuidgroupId
- the group IDnull
if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel fetchByUUID_G(java.lang.String uuid, long groupId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cachenull
if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCPDefinitionOptionRelException
uuid
- the uuidgroupId
- the group IDNoSuchCPDefinitionOptionRelException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<CPDefinitionOptionRel> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CPDefinitionOptionRel> findByUuid_C(java.lang.String uuid, long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPDefinitionOptionRelModelImpl
.
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)public static java.util.List<CPDefinitionOptionRel> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPDefinitionOptionRelModelImpl
.
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 (optionally null
)public static java.util.List<CPDefinitionOptionRel> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPDefinitionOptionRelModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinitionOptionRel findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel[] findByUuid_C_PrevAndNext(long CPDefinitionOptionRelId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException
CPDefinitionOptionRelId
- the primary key of the current cp definition option reluuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionOptionRelException
- if a cp definition option rel with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CPDefinitionOptionRel> findByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<CPDefinitionOptionRel> findByGroupId(long groupId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPDefinitionOptionRelModelImpl
.
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)public static java.util.List<CPDefinitionOptionRel> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPDefinitionOptionRelModelImpl
.
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 (optionally null
)public static java.util.List<CPDefinitionOptionRel> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPDefinitionOptionRelModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinitionOptionRel findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel[] findByGroupId_PrevAndNext(long CPDefinitionOptionRelId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException
CPDefinitionOptionRelId
- the primary key of the current cp definition option relgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionOptionRelException
- if a cp definition option rel with the primary key could not be foundpublic static void removeByGroupId(long groupId)
groupId
- the group IDpublic static int countByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<CPDefinitionOptionRel> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CPDefinitionOptionRel> findByCompanyId(long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPDefinitionOptionRelModelImpl
.
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)public static java.util.List<CPDefinitionOptionRel> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPDefinitionOptionRelModelImpl
.
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 (optionally null
)public static java.util.List<CPDefinitionOptionRel> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPDefinitionOptionRelModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinitionOptionRel findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel[] findByCompanyId_PrevAndNext(long CPDefinitionOptionRelId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException
CPDefinitionOptionRelId
- the primary key of the current cp definition option relcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionOptionRelException
- if a cp definition option rel with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CPDefinitionOptionRel> findByCPDefinitionId(long CPDefinitionId)
CPDefinitionId
- the cp definition IDpublic static java.util.List<CPDefinitionOptionRel> findByCPDefinitionId(long CPDefinitionId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPDefinitionOptionRelModelImpl
.
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)public static java.util.List<CPDefinitionOptionRel> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPDefinitionOptionRelModelImpl
.
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 (optionally null
)public static java.util.List<CPDefinitionOptionRel> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPDefinitionOptionRelModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinitionOptionRel findByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel fetchByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator)
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel findByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel fetchByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator)
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel[] findByCPDefinitionId_PrevAndNext(long CPDefinitionOptionRelId, long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException
CPDefinitionOptionRelId
- the primary key of the current cp definition option relCPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionOptionRelException
- if a cp definition option rel with the primary key could not be foundpublic static void removeByCPDefinitionId(long CPDefinitionId)
CPDefinitionId
- the cp definition IDpublic static int countByCPDefinitionId(long CPDefinitionId)
CPDefinitionId
- the cp definition IDpublic static CPDefinitionOptionRel findByC_C(long CPDefinitionId, long CPOptionId) throws NoSuchCPDefinitionOptionRelException
NoSuchCPDefinitionOptionRelException
if it could not be found.CPDefinitionId
- the cp definition IDCPOptionId
- the cp option IDNoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel fetchByC_C(long CPDefinitionId, long CPOptionId)
null
if it could not be found. Uses the finder cache.CPDefinitionId
- the cp definition IDCPOptionId
- the cp option IDnull
if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel fetchByC_C(long CPDefinitionId, long CPOptionId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.CPDefinitionId
- the cp definition IDCPOptionId
- the cp option IDuseFinderCache
- whether to use the finder cachenull
if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel removeByC_C(long CPDefinitionId, long CPOptionId) throws NoSuchCPDefinitionOptionRelException
CPDefinitionId
- the cp definition IDCPOptionId
- the cp option IDNoSuchCPDefinitionOptionRelException
public static int countByC_C(long CPDefinitionId, long CPOptionId)
CPDefinitionId
- the cp definition IDCPOptionId
- the cp option IDpublic static java.util.List<CPDefinitionOptionRel> findByCPDI_R(long CPDefinitionId, boolean required)
CPDefinitionId
- the cp definition IDrequired
- the requiredpublic static java.util.List<CPDefinitionOptionRel> findByCPDI_R(long CPDefinitionId, boolean required, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPDefinitionOptionRelModelImpl
.
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)public static java.util.List<CPDefinitionOptionRel> findByCPDI_R(long CPDefinitionId, boolean required, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPDefinitionOptionRelModelImpl
.
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 (optionally null
)public static java.util.List<CPDefinitionOptionRel> findByCPDI_R(long CPDefinitionId, boolean required, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPDefinitionOptionRelModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinitionOptionRel findByCPDI_R_First(long CPDefinitionId, boolean required, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException
CPDefinitionId
- the cp definition IDrequired
- the requiredorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel fetchByCPDI_R_First(long CPDefinitionId, boolean required, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator)
CPDefinitionId
- the cp definition IDrequired
- the requiredorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel findByCPDI_R_Last(long CPDefinitionId, boolean required, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException
CPDefinitionId
- the cp definition IDrequired
- the requiredorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel fetchByCPDI_R_Last(long CPDefinitionId, boolean required, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator)
CPDefinitionId
- the cp definition IDrequired
- the requiredorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel[] findByCPDI_R_PrevAndNext(long CPDefinitionOptionRelId, long CPDefinitionId, boolean required, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException
CPDefinitionOptionRelId
- the primary key of the current cp definition option relCPDefinitionId
- the cp definition IDrequired
- the requiredorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionOptionRelException
- if a cp definition option rel with the primary key could not be foundpublic static void removeByCPDI_R(long CPDefinitionId, boolean required)
CPDefinitionId
- the cp definition IDrequired
- the requiredpublic static int countByCPDI_R(long CPDefinitionId, boolean required)
CPDefinitionId
- the cp definition IDrequired
- the requiredpublic static java.util.List<CPDefinitionOptionRel> findByC_SC(long CPDefinitionId, boolean skuContributor)
CPDefinitionId
- the cp definition IDskuContributor
- the sku contributorpublic static java.util.List<CPDefinitionOptionRel> findByC_SC(long CPDefinitionId, boolean skuContributor, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPDefinitionOptionRelModelImpl
.
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)public static java.util.List<CPDefinitionOptionRel> findByC_SC(long CPDefinitionId, boolean skuContributor, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPDefinitionOptionRelModelImpl
.
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 (optionally null
)public static java.util.List<CPDefinitionOptionRel> findByC_SC(long CPDefinitionId, boolean skuContributor, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPDefinitionOptionRelModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinitionOptionRel findByC_SC_First(long CPDefinitionId, boolean skuContributor, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException
CPDefinitionId
- the cp definition IDskuContributor
- the sku contributororderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel fetchByC_SC_First(long CPDefinitionId, boolean skuContributor, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator)
CPDefinitionId
- the cp definition IDskuContributor
- the sku contributororderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel findByC_SC_Last(long CPDefinitionId, boolean skuContributor, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException
CPDefinitionId
- the cp definition IDskuContributor
- the sku contributororderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel fetchByC_SC_Last(long CPDefinitionId, boolean skuContributor, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator)
CPDefinitionId
- the cp definition IDskuContributor
- the sku contributororderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel[] findByC_SC_PrevAndNext(long CPDefinitionOptionRelId, long CPDefinitionId, boolean skuContributor, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator) throws NoSuchCPDefinitionOptionRelException
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 (optionally null
)NoSuchCPDefinitionOptionRelException
- if a cp definition option rel with the primary key could not be foundpublic static void removeByC_SC(long CPDefinitionId, boolean skuContributor)
CPDefinitionId
- the cp definition IDskuContributor
- the sku contributorpublic static int countByC_SC(long CPDefinitionId, boolean skuContributor)
CPDefinitionId
- the cp definition IDskuContributor
- the sku contributorpublic static CPDefinitionOptionRel findByC_K(long CPDefinitionId, java.lang.String key) throws NoSuchCPDefinitionOptionRelException
NoSuchCPDefinitionOptionRelException
if it could not be found.CPDefinitionId
- the cp definition IDkey
- the keyNoSuchCPDefinitionOptionRelException
- if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel fetchByC_K(long CPDefinitionId, java.lang.String key)
null
if it could not be found. Uses the finder cache.CPDefinitionId
- the cp definition IDkey
- the keynull
if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel fetchByC_K(long CPDefinitionId, java.lang.String key, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.CPDefinitionId
- the cp definition IDkey
- the keyuseFinderCache
- whether to use the finder cachenull
if a matching cp definition option rel could not be foundpublic static CPDefinitionOptionRel removeByC_K(long CPDefinitionId, java.lang.String key) throws NoSuchCPDefinitionOptionRelException
CPDefinitionId
- the cp definition IDkey
- the keyNoSuchCPDefinitionOptionRelException
public static int countByC_K(long CPDefinitionId, java.lang.String key)
CPDefinitionId
- the cp definition IDkey
- the keypublic static void cacheResult(CPDefinitionOptionRel cpDefinitionOptionRel)
cpDefinitionOptionRel
- the cp definition option relpublic static void cacheResult(java.util.List<CPDefinitionOptionRel> cpDefinitionOptionRels)
cpDefinitionOptionRels
- the cp definition option relspublic static CPDefinitionOptionRel create(long CPDefinitionOptionRelId)
CPDefinitionOptionRelId
- the primary key for the new cp definition option relpublic static CPDefinitionOptionRel remove(long CPDefinitionOptionRelId) throws NoSuchCPDefinitionOptionRelException
CPDefinitionOptionRelId
- the primary key of the cp definition option relNoSuchCPDefinitionOptionRelException
- if a cp definition option rel with the primary key could not be foundpublic static CPDefinitionOptionRel updateImpl(CPDefinitionOptionRel cpDefinitionOptionRel)
public static CPDefinitionOptionRel findByPrimaryKey(long CPDefinitionOptionRelId) throws NoSuchCPDefinitionOptionRelException
NoSuchCPDefinitionOptionRelException
if it could not be found.CPDefinitionOptionRelId
- the primary key of the cp definition option relNoSuchCPDefinitionOptionRelException
- if a cp definition option rel with the primary key could not be foundpublic static CPDefinitionOptionRel fetchByPrimaryKey(long CPDefinitionOptionRelId)
null
if it could not be found.CPDefinitionOptionRelId
- the primary key of the cp definition option relnull
if a cp definition option rel with the primary key could not be foundpublic static java.util.List<CPDefinitionOptionRel> findAll()
public static java.util.List<CPDefinitionOptionRel> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPDefinitionOptionRelModelImpl
.
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)public static java.util.List<CPDefinitionOptionRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPDefinitionOptionRelModelImpl
.
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 (optionally null
)public static java.util.List<CPDefinitionOptionRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionOptionRel> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CPDefinitionOptionRelModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CPDefinitionOptionRelPersistence getPersistence()