public class CPDefinitionLinkUtil
extends java.lang.Object
com.liferay.commerce.product.service.persistence.impl.CPDefinitionLinkPersistenceImpl
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
CPDefinitionLinkPersistence
Constructor and Description |
---|
CPDefinitionLinkUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CPDefinitionLink cpDefinitionLink)
Caches the cp definition link in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CPDefinitionLink> cpDefinitionLinks)
Caches the cp definition links in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CPDefinitionLink cpDefinitionLink) |
static int |
countAll()
Returns the number of cp definition links.
|
static int |
countByC_C_T(long CPDefinitionId,
long CProductId,
java.lang.String type)
Returns the number of cp definition links where CPDefinitionId = ? and CProductId = ? and type = ?.
|
static int |
countByCP_T(long CProductId,
java.lang.String type)
Returns the number of cp definition links where CProductId = ? and type = ?.
|
static int |
countByCPD_T(long CPDefinitionId,
java.lang.String type)
Returns the number of cp definition links where CPDefinitionId = ? and type = ?.
|
static int |
countByCPDefinitionId(long CPDefinitionId)
Returns the number of cp definition links where CPDefinitionId = ?.
|
static int |
countByCProductId(long CProductId)
Returns the number of cp definition links where CProductId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of cp definition links where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of cp definition links where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of cp definition links where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CPDefinitionLink |
create(long CPDefinitionLinkId)
Creates a new cp definition link with the primary key.
|
static CPDefinitionLink |
fetchByC_C_T(long CPDefinitionId,
long CProductId,
java.lang.String type)
Returns the cp definition link where CPDefinitionId = ? and CProductId = ? and type = ? or returns
null if it could not be found. |
static CPDefinitionLink |
fetchByC_C_T(long CPDefinitionId,
long CProductId,
java.lang.String type,
boolean useFinderCache)
Returns the cp definition link where CPDefinitionId = ? and CProductId = ? and type = ? or returns
null if it could not be found, optionally using the finder cache. |
static CPDefinitionLink |
fetchByCP_T_First(long CProductId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the first cp definition link in the ordered set where CProductId = ? and type = ?.
|
static CPDefinitionLink |
fetchByCP_T_Last(long CProductId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the last cp definition link in the ordered set where CProductId = ? and type = ?.
|
static CPDefinitionLink |
fetchByCPD_T_First(long CPDefinitionId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the first cp definition link in the ordered set where CPDefinitionId = ? and type = ?.
|
static CPDefinitionLink |
fetchByCPD_T_Last(long CPDefinitionId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the last cp definition link in the ordered set where CPDefinitionId = ? and type = ?.
|
static CPDefinitionLink |
fetchByCPDefinitionId_First(long CPDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the first cp definition link in the ordered set where CPDefinitionId = ?.
|
static CPDefinitionLink |
fetchByCPDefinitionId_Last(long CPDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the last cp definition link in the ordered set where CPDefinitionId = ?.
|
static CPDefinitionLink |
fetchByCProductId_First(long CProductId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the first cp definition link in the ordered set where CProductId = ?.
|
static CPDefinitionLink |
fetchByCProductId_Last(long CProductId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the last cp definition link in the ordered set where CProductId = ?.
|
static CPDefinitionLink |
fetchByPrimaryKey(long CPDefinitionLinkId)
Returns the cp definition link with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CPDefinitionLink> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CPDefinitionLink |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the first cp definition link in the ordered set where uuid = ? and companyId = ?.
|
static CPDefinitionLink |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the last cp definition link in the ordered set where uuid = ? and companyId = ?.
|
static CPDefinitionLink |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the first cp definition link in the ordered set where uuid = ?.
|
static CPDefinitionLink |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the cp definition link where uuid = ? and groupId = ? or returns
null if it could not be found. |
static CPDefinitionLink |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean useFinderCache)
Returns the cp definition link where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CPDefinitionLink |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the last cp definition link in the ordered set where uuid = ?.
|
static java.util.List<CPDefinitionLink> |
findAll()
Returns all the cp definition links.
|
static java.util.List<CPDefinitionLink> |
findAll(int start,
int end)
Returns a range of all the cp definition links.
|
static java.util.List<CPDefinitionLink> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns an ordered range of all the cp definition links.
|
static java.util.List<CPDefinitionLink> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definition links.
|
static CPDefinitionLink |
findByC_C_T(long CPDefinitionId,
long CProductId,
java.lang.String type)
Returns the cp definition link where CPDefinitionId = ? and CProductId = ? and type = ? or throws a
NoSuchCPDefinitionLinkException if it could not be found. |
static CPDefinitionLink |
findByCP_T_First(long CProductId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the first cp definition link in the ordered set where CProductId = ? and type = ?.
|
static CPDefinitionLink |
findByCP_T_Last(long CProductId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the last cp definition link in the ordered set where CProductId = ? and type = ?.
|
static CPDefinitionLink[] |
findByCP_T_PrevAndNext(long CPDefinitionLinkId,
long CProductId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the cp definition links before and after the current cp definition link in the ordered set where CProductId = ? and type = ?.
|
static java.util.List<CPDefinitionLink> |
findByCP_T(long CProductId,
java.lang.String type)
Returns all the cp definition links where CProductId = ? and type = ?.
|
static java.util.List<CPDefinitionLink> |
findByCP_T(long CProductId,
java.lang.String type,
int start,
int end)
Returns a range of all the cp definition links where CProductId = ? and type = ?.
|
static java.util.List<CPDefinitionLink> |
findByCP_T(long CProductId,
java.lang.String type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns an ordered range of all the cp definition links where CProductId = ? and type = ?.
|
static java.util.List<CPDefinitionLink> |
findByCP_T(long CProductId,
java.lang.String type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definition links where CProductId = ? and type = ?.
|
static CPDefinitionLink |
findByCPD_T_First(long CPDefinitionId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the first cp definition link in the ordered set where CPDefinitionId = ? and type = ?.
|
static CPDefinitionLink |
findByCPD_T_Last(long CPDefinitionId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the last cp definition link in the ordered set where CPDefinitionId = ? and type = ?.
|
static CPDefinitionLink[] |
findByCPD_T_PrevAndNext(long CPDefinitionLinkId,
long CPDefinitionId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the cp definition links before and after the current cp definition link in the ordered set where CPDefinitionId = ? and type = ?.
|
static java.util.List<CPDefinitionLink> |
findByCPD_T(long CPDefinitionId,
java.lang.String type)
Returns all the cp definition links where CPDefinitionId = ? and type = ?.
|
static java.util.List<CPDefinitionLink> |
findByCPD_T(long CPDefinitionId,
java.lang.String type,
int start,
int end)
Returns a range of all the cp definition links where CPDefinitionId = ? and type = ?.
|
static java.util.List<CPDefinitionLink> |
findByCPD_T(long CPDefinitionId,
java.lang.String type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns an ordered range of all the cp definition links where CPDefinitionId = ? and type = ?.
|
static java.util.List<CPDefinitionLink> |
findByCPD_T(long CPDefinitionId,
java.lang.String type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definition links where CPDefinitionId = ? and type = ?.
|
static CPDefinitionLink |
findByCPDefinitionId_First(long CPDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the first cp definition link in the ordered set where CPDefinitionId = ?.
|
static CPDefinitionLink |
findByCPDefinitionId_Last(long CPDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the last cp definition link in the ordered set where CPDefinitionId = ?.
|
static CPDefinitionLink[] |
findByCPDefinitionId_PrevAndNext(long CPDefinitionLinkId,
long CPDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the cp definition links before and after the current cp definition link in the ordered set where CPDefinitionId = ?.
|
static java.util.List<CPDefinitionLink> |
findByCPDefinitionId(long CPDefinitionId)
Returns all the cp definition links where CPDefinitionId = ?.
|
static java.util.List<CPDefinitionLink> |
findByCPDefinitionId(long CPDefinitionId,
int start,
int end)
Returns a range of all the cp definition links where CPDefinitionId = ?.
|
static java.util.List<CPDefinitionLink> |
findByCPDefinitionId(long CPDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns an ordered range of all the cp definition links where CPDefinitionId = ?.
|
static java.util.List<CPDefinitionLink> |
findByCPDefinitionId(long CPDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definition links where CPDefinitionId = ?.
|
static CPDefinitionLink |
findByCProductId_First(long CProductId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the first cp definition link in the ordered set where CProductId = ?.
|
static CPDefinitionLink |
findByCProductId_Last(long CProductId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the last cp definition link in the ordered set where CProductId = ?.
|
static CPDefinitionLink[] |
findByCProductId_PrevAndNext(long CPDefinitionLinkId,
long CProductId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the cp definition links before and after the current cp definition link in the ordered set where CProductId = ?.
|
static java.util.List<CPDefinitionLink> |
findByCProductId(long CProductId)
Returns all the cp definition links where CProductId = ?.
|
static java.util.List<CPDefinitionLink> |
findByCProductId(long CProductId,
int start,
int end)
Returns a range of all the cp definition links where CProductId = ?.
|
static java.util.List<CPDefinitionLink> |
findByCProductId(long CProductId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns an ordered range of all the cp definition links where CProductId = ?.
|
static java.util.List<CPDefinitionLink> |
findByCProductId(long CProductId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definition links where CProductId = ?.
|
static CPDefinitionLink |
findByPrimaryKey(long CPDefinitionLinkId)
Returns the cp definition link with the primary key or throws a
NoSuchCPDefinitionLinkException if it could not be found. |
static CPDefinitionLink |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the first cp definition link in the ordered set where uuid = ? and companyId = ?.
|
static CPDefinitionLink |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the last cp definition link in the ordered set where uuid = ? and companyId = ?.
|
static CPDefinitionLink[] |
findByUuid_C_PrevAndNext(long CPDefinitionLinkId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the cp definition links before and after the current cp definition link in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<CPDefinitionLink> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the cp definition links where uuid = ? and companyId = ?.
|
static java.util.List<CPDefinitionLink> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the cp definition links where uuid = ? and companyId = ?.
|
static java.util.List<CPDefinitionLink> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns an ordered range of all the cp definition links where uuid = ? and companyId = ?.
|
static java.util.List<CPDefinitionLink> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definition links where uuid = ? and companyId = ?.
|
static CPDefinitionLink |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the first cp definition link in the ordered set where uuid = ?.
|
static CPDefinitionLink |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the cp definition link where uuid = ? and groupId = ? or throws a
NoSuchCPDefinitionLinkException if it could not be found. |
static CPDefinitionLink |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the last cp definition link in the ordered set where uuid = ?.
|
static CPDefinitionLink[] |
findByUuid_PrevAndNext(long CPDefinitionLinkId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns the cp definition links before and after the current cp definition link in the ordered set where uuid = ?.
|
static java.util.List<CPDefinitionLink> |
findByUuid(java.lang.String uuid)
Returns all the cp definition links where uuid = ?.
|
static java.util.List<CPDefinitionLink> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the cp definition links where uuid = ?.
|
static java.util.List<CPDefinitionLink> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
Returns an ordered range of all the cp definition links where uuid = ?.
|
static java.util.List<CPDefinitionLink> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cp definition links where uuid = ?.
|
static java.util.List<CPDefinitionLink> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CPDefinitionLink> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CPDefinitionLink> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator) |
static CPDefinitionLinkPersistence |
getPersistence() |
static CPDefinitionLink |
remove(long CPDefinitionLinkId)
Removes the cp definition link with the primary key from the database.
|
static void |
removeAll()
Removes all the cp definition links from the database.
|
static CPDefinitionLink |
removeByC_C_T(long CPDefinitionId,
long CProductId,
java.lang.String type)
Removes the cp definition link where CPDefinitionId = ? and CProductId = ? and type = ? from the database.
|
static void |
removeByCP_T(long CProductId,
java.lang.String type)
Removes all the cp definition links where CProductId = ? and type = ? from the database.
|
static void |
removeByCPD_T(long CPDefinitionId,
java.lang.String type)
Removes all the cp definition links where CPDefinitionId = ? and type = ? from the database.
|
static void |
removeByCPDefinitionId(long CPDefinitionId)
Removes all the cp definition links where CPDefinitionId = ? from the database.
|
static void |
removeByCProductId(long CProductId)
Removes all the cp definition links where CProductId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the cp definition links where uuid = ? and companyId = ? from the database.
|
static CPDefinitionLink |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the cp definition link where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the cp definition links where uuid = ? from the database.
|
static CPDefinitionLink |
update(CPDefinitionLink cpDefinitionLink) |
static CPDefinitionLink |
update(CPDefinitionLink cpDefinitionLink,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CPDefinitionLink |
updateImpl(CPDefinitionLink cpDefinitionLink) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CPDefinitionLink cpDefinitionLink)
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,CPDefinitionLink> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CPDefinitionLink> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CPDefinitionLink> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CPDefinitionLink> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CPDefinitionLink update(CPDefinitionLink cpDefinitionLink)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CPDefinitionLink update(CPDefinitionLink cpDefinitionLink, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CPDefinitionLink> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CPDefinitionLink> 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 CPDefinitionLinkModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp definition linksend
- the upper bound of the range of cp definition links (not inclusive)public static java.util.List<CPDefinitionLink> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> 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 CPDefinitionLinkModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp definition linksend
- the upper bound of the range of cp definition links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinitionLink> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> 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 CPDefinitionLinkModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cp definition linksend
- the upper bound of the range of cp definition links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinitionLink findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator) throws NoSuchCPDefinitionLinkException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionLinkException
- if a matching cp definition link could not be foundpublic static CPDefinitionLink fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition link could not be foundpublic static CPDefinitionLink findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator) throws NoSuchCPDefinitionLinkException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionLinkException
- if a matching cp definition link could not be foundpublic static CPDefinitionLink fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition link could not be foundpublic static CPDefinitionLink[] findByUuid_PrevAndNext(long CPDefinitionLinkId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator) throws NoSuchCPDefinitionLinkException
CPDefinitionLinkId
- the primary key of the current cp definition linkuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionLinkException
- if a cp definition link 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 CPDefinitionLink findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCPDefinitionLinkException
NoSuchCPDefinitionLinkException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchCPDefinitionLinkException
- if a matching cp definition link could not be foundpublic static CPDefinitionLink 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 link could not be foundpublic static CPDefinitionLink 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 link could not be foundpublic static CPDefinitionLink removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCPDefinitionLinkException
uuid
- the uuidgroupId
- the group IDNoSuchCPDefinitionLinkException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<CPDefinitionLink> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CPDefinitionLink> 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 CPDefinitionLinkModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp definition linksend
- the upper bound of the range of cp definition links (not inclusive)public static java.util.List<CPDefinitionLink> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> 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 CPDefinitionLinkModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp definition linksend
- the upper bound of the range of cp definition links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinitionLink> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> 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 CPDefinitionLinkModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cp definition linksend
- the upper bound of the range of cp definition links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinitionLink findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator) throws NoSuchCPDefinitionLinkException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionLinkException
- if a matching cp definition link could not be foundpublic static CPDefinitionLink fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition link could not be foundpublic static CPDefinitionLink findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator) throws NoSuchCPDefinitionLinkException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionLinkException
- if a matching cp definition link could not be foundpublic static CPDefinitionLink fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition link could not be foundpublic static CPDefinitionLink[] findByUuid_C_PrevAndNext(long CPDefinitionLinkId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator) throws NoSuchCPDefinitionLinkException
CPDefinitionLinkId
- the primary key of the current cp definition linkuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionLinkException
- if a cp definition link 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<CPDefinitionLink> findByCPDefinitionId(long CPDefinitionId)
CPDefinitionId
- the cp definition IDpublic static java.util.List<CPDefinitionLink> 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 CPDefinitionLinkModelImpl
.
CPDefinitionId
- the cp definition IDstart
- the lower bound of the range of cp definition linksend
- the upper bound of the range of cp definition links (not inclusive)public static java.util.List<CPDefinitionLink> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> 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 CPDefinitionLinkModelImpl
.
CPDefinitionId
- the cp definition IDstart
- the lower bound of the range of cp definition linksend
- the upper bound of the range of cp definition links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinitionLink> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> 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 CPDefinitionLinkModelImpl
.
CPDefinitionId
- the cp definition IDstart
- the lower bound of the range of cp definition linksend
- the upper bound of the range of cp definition links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinitionLink findByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator) throws NoSuchCPDefinitionLinkException
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionLinkException
- if a matching cp definition link could not be foundpublic static CPDefinitionLink fetchByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition link could not be foundpublic static CPDefinitionLink findByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator) throws NoSuchCPDefinitionLinkException
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionLinkException
- if a matching cp definition link could not be foundpublic static CPDefinitionLink fetchByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition link could not be foundpublic static CPDefinitionLink[] findByCPDefinitionId_PrevAndNext(long CPDefinitionLinkId, long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator) throws NoSuchCPDefinitionLinkException
CPDefinitionLinkId
- the primary key of the current cp definition linkCPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionLinkException
- if a cp definition link 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 java.util.List<CPDefinitionLink> findByCProductId(long CProductId)
CProductId
- the c product IDpublic static java.util.List<CPDefinitionLink> findByCProductId(long CProductId, 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 CPDefinitionLinkModelImpl
.
CProductId
- the c product IDstart
- the lower bound of the range of cp definition linksend
- the upper bound of the range of cp definition links (not inclusive)public static java.util.List<CPDefinitionLink> findByCProductId(long CProductId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> 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 CPDefinitionLinkModelImpl
.
CProductId
- the c product IDstart
- the lower bound of the range of cp definition linksend
- the upper bound of the range of cp definition links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinitionLink> findByCProductId(long CProductId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> 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 CPDefinitionLinkModelImpl
.
CProductId
- the c product IDstart
- the lower bound of the range of cp definition linksend
- the upper bound of the range of cp definition links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinitionLink findByCProductId_First(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator) throws NoSuchCPDefinitionLinkException
CProductId
- the c product IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionLinkException
- if a matching cp definition link could not be foundpublic static CPDefinitionLink fetchByCProductId_First(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
CProductId
- the c product IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition link could not be foundpublic static CPDefinitionLink findByCProductId_Last(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator) throws NoSuchCPDefinitionLinkException
CProductId
- the c product IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionLinkException
- if a matching cp definition link could not be foundpublic static CPDefinitionLink fetchByCProductId_Last(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
CProductId
- the c product IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition link could not be foundpublic static CPDefinitionLink[] findByCProductId_PrevAndNext(long CPDefinitionLinkId, long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator) throws NoSuchCPDefinitionLinkException
CPDefinitionLinkId
- the primary key of the current cp definition linkCProductId
- the c product IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionLinkException
- if a cp definition link with the primary key could not be foundpublic static void removeByCProductId(long CProductId)
CProductId
- the c product IDpublic static int countByCProductId(long CProductId)
CProductId
- the c product IDpublic static java.util.List<CPDefinitionLink> findByCPD_T(long CPDefinitionId, java.lang.String type)
CPDefinitionId
- the cp definition IDtype
- the typepublic static java.util.List<CPDefinitionLink> findByCPD_T(long CPDefinitionId, java.lang.String type, 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 CPDefinitionLinkModelImpl
.
CPDefinitionId
- the cp definition IDtype
- the typestart
- the lower bound of the range of cp definition linksend
- the upper bound of the range of cp definition links (not inclusive)public static java.util.List<CPDefinitionLink> findByCPD_T(long CPDefinitionId, java.lang.String type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> 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 CPDefinitionLinkModelImpl
.
CPDefinitionId
- the cp definition IDtype
- the typestart
- the lower bound of the range of cp definition linksend
- the upper bound of the range of cp definition links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinitionLink> findByCPD_T(long CPDefinitionId, java.lang.String type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> 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 CPDefinitionLinkModelImpl
.
CPDefinitionId
- the cp definition IDtype
- the typestart
- the lower bound of the range of cp definition linksend
- the upper bound of the range of cp definition links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinitionLink findByCPD_T_First(long CPDefinitionId, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator) throws NoSuchCPDefinitionLinkException
CPDefinitionId
- the cp definition IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionLinkException
- if a matching cp definition link could not be foundpublic static CPDefinitionLink fetchByCPD_T_First(long CPDefinitionId, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
CPDefinitionId
- the cp definition IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition link could not be foundpublic static CPDefinitionLink findByCPD_T_Last(long CPDefinitionId, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator) throws NoSuchCPDefinitionLinkException
CPDefinitionId
- the cp definition IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionLinkException
- if a matching cp definition link could not be foundpublic static CPDefinitionLink fetchByCPD_T_Last(long CPDefinitionId, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
CPDefinitionId
- the cp definition IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition link could not be foundpublic static CPDefinitionLink[] findByCPD_T_PrevAndNext(long CPDefinitionLinkId, long CPDefinitionId, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator) throws NoSuchCPDefinitionLinkException
CPDefinitionLinkId
- the primary key of the current cp definition linkCPDefinitionId
- the cp definition IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionLinkException
- if a cp definition link with the primary key could not be foundpublic static void removeByCPD_T(long CPDefinitionId, java.lang.String type)
CPDefinitionId
- the cp definition IDtype
- the typepublic static int countByCPD_T(long CPDefinitionId, java.lang.String type)
CPDefinitionId
- the cp definition IDtype
- the typepublic static java.util.List<CPDefinitionLink> findByCP_T(long CProductId, java.lang.String type)
CProductId
- the c product IDtype
- the typepublic static java.util.List<CPDefinitionLink> findByCP_T(long CProductId, java.lang.String type, 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 CPDefinitionLinkModelImpl
.
CProductId
- the c product IDtype
- the typestart
- the lower bound of the range of cp definition linksend
- the upper bound of the range of cp definition links (not inclusive)public static java.util.List<CPDefinitionLink> findByCP_T(long CProductId, java.lang.String type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> 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 CPDefinitionLinkModelImpl
.
CProductId
- the c product IDtype
- the typestart
- the lower bound of the range of cp definition linksend
- the upper bound of the range of cp definition links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinitionLink> findByCP_T(long CProductId, java.lang.String type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> 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 CPDefinitionLinkModelImpl
.
CProductId
- the c product IDtype
- the typestart
- the lower bound of the range of cp definition linksend
- the upper bound of the range of cp definition links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDefinitionLink findByCP_T_First(long CProductId, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator) throws NoSuchCPDefinitionLinkException
CProductId
- the c product IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionLinkException
- if a matching cp definition link could not be foundpublic static CPDefinitionLink fetchByCP_T_First(long CProductId, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
CProductId
- the c product IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition link could not be foundpublic static CPDefinitionLink findByCP_T_Last(long CProductId, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator) throws NoSuchCPDefinitionLinkException
CProductId
- the c product IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionLinkException
- if a matching cp definition link could not be foundpublic static CPDefinitionLink fetchByCP_T_Last(long CProductId, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator)
CProductId
- the c product IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition link could not be foundpublic static CPDefinitionLink[] findByCP_T_PrevAndNext(long CPDefinitionLinkId, long CProductId, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> orderByComparator) throws NoSuchCPDefinitionLinkException
CPDefinitionLinkId
- the primary key of the current cp definition linkCProductId
- the c product IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionLinkException
- if a cp definition link with the primary key could not be foundpublic static void removeByCP_T(long CProductId, java.lang.String type)
CProductId
- the c product IDtype
- the typepublic static int countByCP_T(long CProductId, java.lang.String type)
CProductId
- the c product IDtype
- the typepublic static CPDefinitionLink findByC_C_T(long CPDefinitionId, long CProductId, java.lang.String type) throws NoSuchCPDefinitionLinkException
NoSuchCPDefinitionLinkException
if it could not be found.CPDefinitionId
- the cp definition IDCProductId
- the c product IDtype
- the typeNoSuchCPDefinitionLinkException
- if a matching cp definition link could not be foundpublic static CPDefinitionLink fetchByC_C_T(long CPDefinitionId, long CProductId, java.lang.String type)
null
if it could not be found. Uses the finder cache.CPDefinitionId
- the cp definition IDCProductId
- the c product IDtype
- the typenull
if a matching cp definition link could not be foundpublic static CPDefinitionLink fetchByC_C_T(long CPDefinitionId, long CProductId, java.lang.String type, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.CPDefinitionId
- the cp definition IDCProductId
- the c product IDtype
- the typeuseFinderCache
- whether to use the finder cachenull
if a matching cp definition link could not be foundpublic static CPDefinitionLink removeByC_C_T(long CPDefinitionId, long CProductId, java.lang.String type) throws NoSuchCPDefinitionLinkException
CPDefinitionId
- the cp definition IDCProductId
- the c product IDtype
- the typeNoSuchCPDefinitionLinkException
public static int countByC_C_T(long CPDefinitionId, long CProductId, java.lang.String type)
CPDefinitionId
- the cp definition IDCProductId
- the c product IDtype
- the typepublic static void cacheResult(CPDefinitionLink cpDefinitionLink)
cpDefinitionLink
- the cp definition linkpublic static void cacheResult(java.util.List<CPDefinitionLink> cpDefinitionLinks)
cpDefinitionLinks
- the cp definition linkspublic static CPDefinitionLink create(long CPDefinitionLinkId)
CPDefinitionLinkId
- the primary key for the new cp definition linkpublic static CPDefinitionLink remove(long CPDefinitionLinkId) throws NoSuchCPDefinitionLinkException
CPDefinitionLinkId
- the primary key of the cp definition linkNoSuchCPDefinitionLinkException
- if a cp definition link with the primary key could not be foundpublic static CPDefinitionLink updateImpl(CPDefinitionLink cpDefinitionLink)
public static CPDefinitionLink findByPrimaryKey(long CPDefinitionLinkId) throws NoSuchCPDefinitionLinkException
NoSuchCPDefinitionLinkException
if it could not be found.CPDefinitionLinkId
- the primary key of the cp definition linkNoSuchCPDefinitionLinkException
- if a cp definition link with the primary key could not be foundpublic static CPDefinitionLink fetchByPrimaryKey(long CPDefinitionLinkId)
null
if it could not be found.CPDefinitionLinkId
- the primary key of the cp definition linknull
if a cp definition link with the primary key could not be foundpublic static java.util.List<CPDefinitionLink> findAll()
public static java.util.List<CPDefinitionLink> 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 CPDefinitionLinkModelImpl
.
start
- the lower bound of the range of cp definition linksend
- the upper bound of the range of cp definition links (not inclusive)public static java.util.List<CPDefinitionLink> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> 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 CPDefinitionLinkModelImpl
.
start
- the lower bound of the range of cp definition linksend
- the upper bound of the range of cp definition links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDefinitionLink> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLink> 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 CPDefinitionLinkModelImpl
.
start
- the lower bound of the range of cp definition linksend
- the upper bound of the range of cp definition links (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 CPDefinitionLinkPersistence getPersistence()