public class CommercePricingClassCPDefinitionRelUtil
extends java.lang.Object
com.liferay.commerce.pricing.service.persistence.impl.CommercePricingClassCPDefinitionRelPersistenceImpl
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
CommercePricingClassCPDefinitionRelPersistence
Constructor and Description |
---|
CommercePricingClassCPDefinitionRelUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommercePricingClassCPDefinitionRel commercePricingClassCPDefinitionRel)
Caches the commerce pricing class cp definition rel in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommercePricingClassCPDefinitionRel> commercePricingClassCPDefinitionRels)
Caches the commerce pricing class cp definition rels in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommercePricingClassCPDefinitionRel commercePricingClassCPDefinitionRel) |
static int |
countAll()
Returns the number of commerce pricing class cp definition rels.
|
static int |
countByC_C(long commercePricingClassId,
long CPDefinitionId)
Returns the number of commerce pricing class cp definition rels where commercePricingClassId = ? and CPDefinitionId = ?.
|
static int |
countByCommercePricingClassId(long commercePricingClassId)
Returns the number of commerce pricing class cp definition rels where commercePricingClassId = ?.
|
static int |
countByCPDefinitionId(long CPDefinitionId)
Returns the number of commerce pricing class cp definition rels where CPDefinitionId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommercePricingClassCPDefinitionRel |
create(long CommercePricingClassCPDefinitionRelId)
Creates a new commerce pricing class cp definition rel with the primary key.
|
static CommercePricingClassCPDefinitionRel |
fetchByC_C(long commercePricingClassId,
long CPDefinitionId)
Returns the commerce pricing class cp definition rel where commercePricingClassId = ? and CPDefinitionId = ? or returns
null if it could not be found. |
static CommercePricingClassCPDefinitionRel |
fetchByC_C(long commercePricingClassId,
long CPDefinitionId,
boolean useFinderCache)
Returns the commerce pricing class cp definition rel where commercePricingClassId = ? and CPDefinitionId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommercePricingClassCPDefinitionRel |
fetchByCommercePricingClassId_First(long commercePricingClassId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator)
Returns the first commerce pricing class cp definition rel in the ordered set where commercePricingClassId = ?.
|
static CommercePricingClassCPDefinitionRel |
fetchByCommercePricingClassId_Last(long commercePricingClassId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator)
Returns the last commerce pricing class cp definition rel in the ordered set where commercePricingClassId = ?.
|
static CommercePricingClassCPDefinitionRel |
fetchByCPDefinitionId_First(long CPDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator)
Returns the first commerce pricing class cp definition rel in the ordered set where CPDefinitionId = ?.
|
static CommercePricingClassCPDefinitionRel |
fetchByCPDefinitionId_Last(long CPDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator)
Returns the last commerce pricing class cp definition rel in the ordered set where CPDefinitionId = ?.
|
static CommercePricingClassCPDefinitionRel |
fetchByPrimaryKey(long CommercePricingClassCPDefinitionRelId)
Returns the commerce pricing class cp definition rel with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommercePricingClassCPDefinitionRel> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CommercePricingClassCPDefinitionRel> |
findAll()
Returns all the commerce pricing class cp definition rels.
|
static java.util.List<CommercePricingClassCPDefinitionRel> |
findAll(int start,
int end)
Returns a range of all the commerce pricing class cp definition rels.
|
static java.util.List<CommercePricingClassCPDefinitionRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator)
Returns an ordered range of all the commerce pricing class cp definition rels.
|
static java.util.List<CommercePricingClassCPDefinitionRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce pricing class cp definition rels.
|
static CommercePricingClassCPDefinitionRel |
findByC_C(long commercePricingClassId,
long CPDefinitionId)
Returns the commerce pricing class cp definition rel where commercePricingClassId = ? and CPDefinitionId = ? or throws a
NoSuchPricingClassCPDefinitionRelException if it could not be found. |
static CommercePricingClassCPDefinitionRel |
findByCommercePricingClassId_First(long commercePricingClassId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator)
Returns the first commerce pricing class cp definition rel in the ordered set where commercePricingClassId = ?.
|
static CommercePricingClassCPDefinitionRel |
findByCommercePricingClassId_Last(long commercePricingClassId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator)
Returns the last commerce pricing class cp definition rel in the ordered set where commercePricingClassId = ?.
|
static CommercePricingClassCPDefinitionRel[] |
findByCommercePricingClassId_PrevAndNext(long CommercePricingClassCPDefinitionRelId,
long commercePricingClassId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator)
Returns the commerce pricing class cp definition rels before and after the current commerce pricing class cp definition rel in the ordered set where commercePricingClassId = ?.
|
static java.util.List<CommercePricingClassCPDefinitionRel> |
findByCommercePricingClassId(long commercePricingClassId)
Returns all the commerce pricing class cp definition rels where commercePricingClassId = ?.
|
static java.util.List<CommercePricingClassCPDefinitionRel> |
findByCommercePricingClassId(long commercePricingClassId,
int start,
int end)
Returns a range of all the commerce pricing class cp definition rels where commercePricingClassId = ?.
|
static java.util.List<CommercePricingClassCPDefinitionRel> |
findByCommercePricingClassId(long commercePricingClassId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator)
Returns an ordered range of all the commerce pricing class cp definition rels where commercePricingClassId = ?.
|
static java.util.List<CommercePricingClassCPDefinitionRel> |
findByCommercePricingClassId(long commercePricingClassId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce pricing class cp definition rels where commercePricingClassId = ?.
|
static CommercePricingClassCPDefinitionRel |
findByCPDefinitionId_First(long CPDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator)
Returns the first commerce pricing class cp definition rel in the ordered set where CPDefinitionId = ?.
|
static CommercePricingClassCPDefinitionRel |
findByCPDefinitionId_Last(long CPDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator)
Returns the last commerce pricing class cp definition rel in the ordered set where CPDefinitionId = ?.
|
static CommercePricingClassCPDefinitionRel[] |
findByCPDefinitionId_PrevAndNext(long CommercePricingClassCPDefinitionRelId,
long CPDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator)
Returns the commerce pricing class cp definition rels before and after the current commerce pricing class cp definition rel in the ordered set where CPDefinitionId = ?.
|
static java.util.List<CommercePricingClassCPDefinitionRel> |
findByCPDefinitionId(long CPDefinitionId)
Returns all the commerce pricing class cp definition rels where CPDefinitionId = ?.
|
static java.util.List<CommercePricingClassCPDefinitionRel> |
findByCPDefinitionId(long CPDefinitionId,
int start,
int end)
Returns a range of all the commerce pricing class cp definition rels where CPDefinitionId = ?.
|
static java.util.List<CommercePricingClassCPDefinitionRel> |
findByCPDefinitionId(long CPDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator)
Returns an ordered range of all the commerce pricing class cp definition rels where CPDefinitionId = ?.
|
static java.util.List<CommercePricingClassCPDefinitionRel> |
findByCPDefinitionId(long CPDefinitionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce pricing class cp definition rels where CPDefinitionId = ?.
|
static CommercePricingClassCPDefinitionRel |
findByPrimaryKey(long CommercePricingClassCPDefinitionRelId)
Returns the commerce pricing class cp definition rel with the primary key or throws a
NoSuchPricingClassCPDefinitionRelException if it could not be found. |
static java.util.List<CommercePricingClassCPDefinitionRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommercePricingClassCPDefinitionRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommercePricingClassCPDefinitionRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator) |
static CommercePricingClassCPDefinitionRelPersistence |
getPersistence() |
static CommercePricingClassCPDefinitionRel |
remove(long CommercePricingClassCPDefinitionRelId)
Removes the commerce pricing class cp definition rel with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce pricing class cp definition rels from the database.
|
static CommercePricingClassCPDefinitionRel |
removeByC_C(long commercePricingClassId,
long CPDefinitionId)
Removes the commerce pricing class cp definition rel where commercePricingClassId = ? and CPDefinitionId = ? from the database.
|
static void |
removeByCommercePricingClassId(long commercePricingClassId)
Removes all the commerce pricing class cp definition rels where commercePricingClassId = ? from the database.
|
static void |
removeByCPDefinitionId(long CPDefinitionId)
Removes all the commerce pricing class cp definition rels where CPDefinitionId = ? from the database.
|
static CommercePricingClassCPDefinitionRel |
update(CommercePricingClassCPDefinitionRel commercePricingClassCPDefinitionRel) |
static CommercePricingClassCPDefinitionRel |
update(CommercePricingClassCPDefinitionRel commercePricingClassCPDefinitionRel,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommercePricingClassCPDefinitionRel |
updateImpl(CommercePricingClassCPDefinitionRel commercePricingClassCPDefinitionRel) |
public CommercePricingClassCPDefinitionRelUtil()
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommercePricingClassCPDefinitionRel commercePricingClassCPDefinitionRel)
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,CommercePricingClassCPDefinitionRel> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommercePricingClassCPDefinitionRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommercePricingClassCPDefinitionRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommercePricingClassCPDefinitionRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommercePricingClassCPDefinitionRel update(CommercePricingClassCPDefinitionRel commercePricingClassCPDefinitionRel)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommercePricingClassCPDefinitionRel update(CommercePricingClassCPDefinitionRel commercePricingClassCPDefinitionRel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommercePricingClassCPDefinitionRel> findByCommercePricingClassId(long commercePricingClassId)
commercePricingClassId
- the commerce pricing class IDpublic static java.util.List<CommercePricingClassCPDefinitionRel> findByCommercePricingClassId(long commercePricingClassId, 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 CommercePricingClassCPDefinitionRelModelImpl
.
commercePricingClassId
- the commerce pricing class IDstart
- the lower bound of the range of commerce pricing class cp definition relsend
- the upper bound of the range of commerce pricing class cp definition rels (not inclusive)public static java.util.List<CommercePricingClassCPDefinitionRel> findByCommercePricingClassId(long commercePricingClassId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> 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 CommercePricingClassCPDefinitionRelModelImpl
.
commercePricingClassId
- the commerce pricing class IDstart
- the lower bound of the range of commerce pricing class cp definition relsend
- the upper bound of the range of commerce pricing class cp definition rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommercePricingClassCPDefinitionRel> findByCommercePricingClassId(long commercePricingClassId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> 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 CommercePricingClassCPDefinitionRelModelImpl
.
commercePricingClassId
- the commerce pricing class IDstart
- the lower bound of the range of commerce pricing class cp definition relsend
- the upper bound of the range of commerce pricing class cp definition rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommercePricingClassCPDefinitionRel findByCommercePricingClassId_First(long commercePricingClassId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator) throws NoSuchPricingClassCPDefinitionRelException
commercePricingClassId
- the commerce pricing class IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPricingClassCPDefinitionRelException
- if a matching commerce pricing class cp definition rel could not be foundpublic static CommercePricingClassCPDefinitionRel fetchByCommercePricingClassId_First(long commercePricingClassId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator)
commercePricingClassId
- the commerce pricing class IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce pricing class cp definition rel could not be foundpublic static CommercePricingClassCPDefinitionRel findByCommercePricingClassId_Last(long commercePricingClassId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator) throws NoSuchPricingClassCPDefinitionRelException
commercePricingClassId
- the commerce pricing class IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPricingClassCPDefinitionRelException
- if a matching commerce pricing class cp definition rel could not be foundpublic static CommercePricingClassCPDefinitionRel fetchByCommercePricingClassId_Last(long commercePricingClassId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator)
commercePricingClassId
- the commerce pricing class IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce pricing class cp definition rel could not be foundpublic static CommercePricingClassCPDefinitionRel[] findByCommercePricingClassId_PrevAndNext(long CommercePricingClassCPDefinitionRelId, long commercePricingClassId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator) throws NoSuchPricingClassCPDefinitionRelException
CommercePricingClassCPDefinitionRelId
- the primary key of the current commerce pricing class cp definition relcommercePricingClassId
- the commerce pricing class IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPricingClassCPDefinitionRelException
- if a commerce pricing class cp definition rel with the primary key could not be foundpublic static void removeByCommercePricingClassId(long commercePricingClassId)
commercePricingClassId
- the commerce pricing class IDpublic static int countByCommercePricingClassId(long commercePricingClassId)
commercePricingClassId
- the commerce pricing class IDpublic static java.util.List<CommercePricingClassCPDefinitionRel> findByCPDefinitionId(long CPDefinitionId)
CPDefinitionId
- the cp definition IDpublic static java.util.List<CommercePricingClassCPDefinitionRel> 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 CommercePricingClassCPDefinitionRelModelImpl
.
CPDefinitionId
- the cp definition IDstart
- the lower bound of the range of commerce pricing class cp definition relsend
- the upper bound of the range of commerce pricing class cp definition rels (not inclusive)public static java.util.List<CommercePricingClassCPDefinitionRel> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> 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 CommercePricingClassCPDefinitionRelModelImpl
.
CPDefinitionId
- the cp definition IDstart
- the lower bound of the range of commerce pricing class cp definition relsend
- the upper bound of the range of commerce pricing class cp definition rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommercePricingClassCPDefinitionRel> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> 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 CommercePricingClassCPDefinitionRelModelImpl
.
CPDefinitionId
- the cp definition IDstart
- the lower bound of the range of commerce pricing class cp definition relsend
- the upper bound of the range of commerce pricing class cp definition rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommercePricingClassCPDefinitionRel findByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator) throws NoSuchPricingClassCPDefinitionRelException
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPricingClassCPDefinitionRelException
- if a matching commerce pricing class cp definition rel could not be foundpublic static CommercePricingClassCPDefinitionRel fetchByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator)
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce pricing class cp definition rel could not be foundpublic static CommercePricingClassCPDefinitionRel findByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator) throws NoSuchPricingClassCPDefinitionRelException
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPricingClassCPDefinitionRelException
- if a matching commerce pricing class cp definition rel could not be foundpublic static CommercePricingClassCPDefinitionRel fetchByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator)
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce pricing class cp definition rel could not be foundpublic static CommercePricingClassCPDefinitionRel[] findByCPDefinitionId_PrevAndNext(long CommercePricingClassCPDefinitionRelId, long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator) throws NoSuchPricingClassCPDefinitionRelException
CommercePricingClassCPDefinitionRelId
- the primary key of the current commerce pricing class cp definition relCPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPricingClassCPDefinitionRelException
- if a commerce pricing class cp definition 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 CommercePricingClassCPDefinitionRel findByC_C(long commercePricingClassId, long CPDefinitionId) throws NoSuchPricingClassCPDefinitionRelException
NoSuchPricingClassCPDefinitionRelException
if it could not be found.commercePricingClassId
- the commerce pricing class IDCPDefinitionId
- the cp definition IDNoSuchPricingClassCPDefinitionRelException
- if a matching commerce pricing class cp definition rel could not be foundpublic static CommercePricingClassCPDefinitionRel fetchByC_C(long commercePricingClassId, long CPDefinitionId)
null
if it could not be found. Uses the finder cache.commercePricingClassId
- the commerce pricing class IDCPDefinitionId
- the cp definition IDnull
if a matching commerce pricing class cp definition rel could not be foundpublic static CommercePricingClassCPDefinitionRel fetchByC_C(long commercePricingClassId, long CPDefinitionId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.commercePricingClassId
- the commerce pricing class IDCPDefinitionId
- the cp definition IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce pricing class cp definition rel could not be foundpublic static CommercePricingClassCPDefinitionRel removeByC_C(long commercePricingClassId, long CPDefinitionId) throws NoSuchPricingClassCPDefinitionRelException
commercePricingClassId
- the commerce pricing class IDCPDefinitionId
- the cp definition IDNoSuchPricingClassCPDefinitionRelException
public static int countByC_C(long commercePricingClassId, long CPDefinitionId)
commercePricingClassId
- the commerce pricing class IDCPDefinitionId
- the cp definition IDpublic static void cacheResult(CommercePricingClassCPDefinitionRel commercePricingClassCPDefinitionRel)
commercePricingClassCPDefinitionRel
- the commerce pricing class cp definition relpublic static void cacheResult(java.util.List<CommercePricingClassCPDefinitionRel> commercePricingClassCPDefinitionRels)
commercePricingClassCPDefinitionRels
- the commerce pricing class cp definition relspublic static CommercePricingClassCPDefinitionRel create(long CommercePricingClassCPDefinitionRelId)
CommercePricingClassCPDefinitionRelId
- the primary key for the new commerce pricing class cp definition relpublic static CommercePricingClassCPDefinitionRel remove(long CommercePricingClassCPDefinitionRelId) throws NoSuchPricingClassCPDefinitionRelException
CommercePricingClassCPDefinitionRelId
- the primary key of the commerce pricing class cp definition relNoSuchPricingClassCPDefinitionRelException
- if a commerce pricing class cp definition rel with the primary key could not be foundpublic static CommercePricingClassCPDefinitionRel updateImpl(CommercePricingClassCPDefinitionRel commercePricingClassCPDefinitionRel)
public static CommercePricingClassCPDefinitionRel findByPrimaryKey(long CommercePricingClassCPDefinitionRelId) throws NoSuchPricingClassCPDefinitionRelException
NoSuchPricingClassCPDefinitionRelException
if it could not be found.CommercePricingClassCPDefinitionRelId
- the primary key of the commerce pricing class cp definition relNoSuchPricingClassCPDefinitionRelException
- if a commerce pricing class cp definition rel with the primary key could not be foundpublic static CommercePricingClassCPDefinitionRel fetchByPrimaryKey(long CommercePricingClassCPDefinitionRelId)
null
if it could not be found.CommercePricingClassCPDefinitionRelId
- the primary key of the commerce pricing class cp definition relnull
if a commerce pricing class cp definition rel with the primary key could not be foundpublic static java.util.List<CommercePricingClassCPDefinitionRel> findAll()
public static java.util.List<CommercePricingClassCPDefinitionRel> 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 CommercePricingClassCPDefinitionRelModelImpl
.
start
- the lower bound of the range of commerce pricing class cp definition relsend
- the upper bound of the range of commerce pricing class cp definition rels (not inclusive)public static java.util.List<CommercePricingClassCPDefinitionRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> 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 CommercePricingClassCPDefinitionRelModelImpl
.
start
- the lower bound of the range of commerce pricing class cp definition relsend
- the upper bound of the range of commerce pricing class cp definition rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommercePricingClassCPDefinitionRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> 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 CommercePricingClassCPDefinitionRelModelImpl
.
start
- the lower bound of the range of commerce pricing class cp definition relsend
- the upper bound of the range of commerce pricing class cp definition 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 CommercePricingClassCPDefinitionRelPersistence getPersistence()