public class CommercePriceModifierRelUtil
extends java.lang.Object
com.liferay.commerce.pricing.service.persistence.impl.CommercePriceModifierRelPersistenceImpl
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
CommercePriceModifierRelPersistence
Constructor and Description |
---|
CommercePriceModifierRelUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommercePriceModifierRel commercePriceModifierRel)
Caches the commerce price modifier rel in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommercePriceModifierRel> commercePriceModifierRels)
Caches the commerce price modifier rels in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommercePriceModifierRel commercePriceModifierRel) |
static int |
countAll()
Returns the number of commerce price modifier rels.
|
static int |
countByCN_CPK(long classNameId,
long classPK)
Returns the number of commerce price modifier rels where classNameId = ? and classPK = ?.
|
static int |
countByCommercePriceModifierId(long commercePriceModifierId)
Returns the number of commerce price modifier rels where commercePriceModifierId = ?.
|
static int |
countByCPM_CN_CPK(long commercePriceModifierId,
long classNameId,
long classPK)
Returns the number of commerce price modifier rels where commercePriceModifierId = ? and classNameId = ? and classPK = ?.
|
static int |
countByCPM_CN(long commercePriceModifierId,
long classNameId)
Returns the number of commerce price modifier rels where commercePriceModifierId = ? and classNameId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommercePriceModifierRel |
create(long commercePriceModifierRelId)
Creates a new commerce price modifier rel with the primary key.
|
static CommercePriceModifierRel |
fetchByCN_CPK_First(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator)
Returns the first commerce price modifier rel in the ordered set where classNameId = ? and classPK = ?.
|
static CommercePriceModifierRel |
fetchByCN_CPK_Last(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator)
Returns the last commerce price modifier rel in the ordered set where classNameId = ? and classPK = ?.
|
static CommercePriceModifierRel |
fetchByCommercePriceModifierId_First(long commercePriceModifierId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator)
Returns the first commerce price modifier rel in the ordered set where commercePriceModifierId = ?.
|
static CommercePriceModifierRel |
fetchByCommercePriceModifierId_Last(long commercePriceModifierId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator)
Returns the last commerce price modifier rel in the ordered set where commercePriceModifierId = ?.
|
static CommercePriceModifierRel |
fetchByCPM_CN_CPK(long commercePriceModifierId,
long classNameId,
long classPK)
Returns the commerce price modifier rel where commercePriceModifierId = ? and classNameId = ? and classPK = ? or returns
null if it could not be found. |
static CommercePriceModifierRel |
fetchByCPM_CN_CPK(long commercePriceModifierId,
long classNameId,
long classPK,
boolean useFinderCache)
Returns the commerce price modifier rel where commercePriceModifierId = ? and classNameId = ? and classPK = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommercePriceModifierRel |
fetchByCPM_CN_First(long commercePriceModifierId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator)
Returns the first commerce price modifier rel in the ordered set where commercePriceModifierId = ? and classNameId = ?.
|
static CommercePriceModifierRel |
fetchByCPM_CN_Last(long commercePriceModifierId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator)
Returns the last commerce price modifier rel in the ordered set where commercePriceModifierId = ? and classNameId = ?.
|
static CommercePriceModifierRel |
fetchByPrimaryKey(long commercePriceModifierRelId)
Returns the commerce price modifier rel with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommercePriceModifierRel> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CommercePriceModifierRel> |
findAll()
Returns all the commerce price modifier rels.
|
static java.util.List<CommercePriceModifierRel> |
findAll(int start,
int end)
Returns a range of all the commerce price modifier rels.
|
static java.util.List<CommercePriceModifierRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator)
Returns an ordered range of all the commerce price modifier rels.
|
static java.util.List<CommercePriceModifierRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce price modifier rels.
|
static CommercePriceModifierRel |
findByCN_CPK_First(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator)
Returns the first commerce price modifier rel in the ordered set where classNameId = ? and classPK = ?.
|
static CommercePriceModifierRel |
findByCN_CPK_Last(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator)
Returns the last commerce price modifier rel in the ordered set where classNameId = ? and classPK = ?.
|
static CommercePriceModifierRel[] |
findByCN_CPK_PrevAndNext(long commercePriceModifierRelId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator)
Returns the commerce price modifier rels before and after the current commerce price modifier rel in the ordered set where classNameId = ? and classPK = ?.
|
static java.util.List<CommercePriceModifierRel> |
findByCN_CPK(long classNameId,
long classPK)
Returns all the commerce price modifier rels where classNameId = ? and classPK = ?.
|
static java.util.List<CommercePriceModifierRel> |
findByCN_CPK(long classNameId,
long classPK,
int start,
int end)
Returns a range of all the commerce price modifier rels where classNameId = ? and classPK = ?.
|
static java.util.List<CommercePriceModifierRel> |
findByCN_CPK(long classNameId,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator)
Returns an ordered range of all the commerce price modifier rels where classNameId = ? and classPK = ?.
|
static java.util.List<CommercePriceModifierRel> |
findByCN_CPK(long classNameId,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce price modifier rels where classNameId = ? and classPK = ?.
|
static CommercePriceModifierRel |
findByCommercePriceModifierId_First(long commercePriceModifierId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator)
Returns the first commerce price modifier rel in the ordered set where commercePriceModifierId = ?.
|
static CommercePriceModifierRel |
findByCommercePriceModifierId_Last(long commercePriceModifierId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator)
Returns the last commerce price modifier rel in the ordered set where commercePriceModifierId = ?.
|
static CommercePriceModifierRel[] |
findByCommercePriceModifierId_PrevAndNext(long commercePriceModifierRelId,
long commercePriceModifierId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator)
Returns the commerce price modifier rels before and after the current commerce price modifier rel in the ordered set where commercePriceModifierId = ?.
|
static java.util.List<CommercePriceModifierRel> |
findByCommercePriceModifierId(long commercePriceModifierId)
Returns all the commerce price modifier rels where commercePriceModifierId = ?.
|
static java.util.List<CommercePriceModifierRel> |
findByCommercePriceModifierId(long commercePriceModifierId,
int start,
int end)
Returns a range of all the commerce price modifier rels where commercePriceModifierId = ?.
|
static java.util.List<CommercePriceModifierRel> |
findByCommercePriceModifierId(long commercePriceModifierId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator)
Returns an ordered range of all the commerce price modifier rels where commercePriceModifierId = ?.
|
static java.util.List<CommercePriceModifierRel> |
findByCommercePriceModifierId(long commercePriceModifierId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce price modifier rels where commercePriceModifierId = ?.
|
static CommercePriceModifierRel |
findByCPM_CN_CPK(long commercePriceModifierId,
long classNameId,
long classPK)
Returns the commerce price modifier rel where commercePriceModifierId = ? and classNameId = ? and classPK = ? or throws a
NoSuchPriceModifierRelException if it could not be found. |
static CommercePriceModifierRel |
findByCPM_CN_First(long commercePriceModifierId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator)
Returns the first commerce price modifier rel in the ordered set where commercePriceModifierId = ? and classNameId = ?.
|
static CommercePriceModifierRel |
findByCPM_CN_Last(long commercePriceModifierId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator)
Returns the last commerce price modifier rel in the ordered set where commercePriceModifierId = ? and classNameId = ?.
|
static CommercePriceModifierRel[] |
findByCPM_CN_PrevAndNext(long commercePriceModifierRelId,
long commercePriceModifierId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator)
Returns the commerce price modifier rels before and after the current commerce price modifier rel in the ordered set where commercePriceModifierId = ? and classNameId = ?.
|
static java.util.List<CommercePriceModifierRel> |
findByCPM_CN(long commercePriceModifierId,
long classNameId)
Returns all the commerce price modifier rels where commercePriceModifierId = ? and classNameId = ?.
|
static java.util.List<CommercePriceModifierRel> |
findByCPM_CN(long commercePriceModifierId,
long classNameId,
int start,
int end)
Returns a range of all the commerce price modifier rels where commercePriceModifierId = ? and classNameId = ?.
|
static java.util.List<CommercePriceModifierRel> |
findByCPM_CN(long commercePriceModifierId,
long classNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator)
Returns an ordered range of all the commerce price modifier rels where commercePriceModifierId = ? and classNameId = ?.
|
static java.util.List<CommercePriceModifierRel> |
findByCPM_CN(long commercePriceModifierId,
long classNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce price modifier rels where commercePriceModifierId = ? and classNameId = ?.
|
static CommercePriceModifierRel |
findByPrimaryKey(long commercePriceModifierRelId)
Returns the commerce price modifier rel with the primary key or throws a
NoSuchPriceModifierRelException if it could not be found. |
static java.util.List<CommercePriceModifierRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommercePriceModifierRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommercePriceModifierRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator) |
static CommercePriceModifierRelPersistence |
getPersistence() |
static CommercePriceModifierRel |
remove(long commercePriceModifierRelId)
Removes the commerce price modifier rel with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce price modifier rels from the database.
|
static void |
removeByCN_CPK(long classNameId,
long classPK)
Removes all the commerce price modifier rels where classNameId = ? and classPK = ? from the database.
|
static void |
removeByCommercePriceModifierId(long commercePriceModifierId)
Removes all the commerce price modifier rels where commercePriceModifierId = ? from the database.
|
static CommercePriceModifierRel |
removeByCPM_CN_CPK(long commercePriceModifierId,
long classNameId,
long classPK)
Removes the commerce price modifier rel where commercePriceModifierId = ? and classNameId = ? and classPK = ? from the database.
|
static void |
removeByCPM_CN(long commercePriceModifierId,
long classNameId)
Removes all the commerce price modifier rels where commercePriceModifierId = ? and classNameId = ? from the database.
|
static CommercePriceModifierRel |
update(CommercePriceModifierRel commercePriceModifierRel) |
static CommercePriceModifierRel |
update(CommercePriceModifierRel commercePriceModifierRel,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommercePriceModifierRel |
updateImpl(CommercePriceModifierRel commercePriceModifierRel) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommercePriceModifierRel commercePriceModifierRel)
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,CommercePriceModifierRel> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommercePriceModifierRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommercePriceModifierRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommercePriceModifierRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommercePriceModifierRel update(CommercePriceModifierRel commercePriceModifierRel)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommercePriceModifierRel update(CommercePriceModifierRel commercePriceModifierRel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommercePriceModifierRel> findByCommercePriceModifierId(long commercePriceModifierId)
commercePriceModifierId
- the commerce price modifier IDpublic static java.util.List<CommercePriceModifierRel> findByCommercePriceModifierId(long commercePriceModifierId, 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 CommercePriceModifierRelModelImpl
.
commercePriceModifierId
- the commerce price modifier IDstart
- the lower bound of the range of commerce price modifier relsend
- the upper bound of the range of commerce price modifier rels (not inclusive)public static java.util.List<CommercePriceModifierRel> findByCommercePriceModifierId(long commercePriceModifierId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> 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 CommercePriceModifierRelModelImpl
.
commercePriceModifierId
- the commerce price modifier IDstart
- the lower bound of the range of commerce price modifier relsend
- the upper bound of the range of commerce price modifier rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommercePriceModifierRel> findByCommercePriceModifierId(long commercePriceModifierId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> 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 CommercePriceModifierRelModelImpl
.
commercePriceModifierId
- the commerce price modifier IDstart
- the lower bound of the range of commerce price modifier relsend
- the upper bound of the range of commerce price modifier rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommercePriceModifierRel findByCommercePriceModifierId_First(long commercePriceModifierId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator) throws NoSuchPriceModifierRelException
commercePriceModifierId
- the commerce price modifier IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceModifierRelException
- if a matching commerce price modifier rel could not be foundpublic static CommercePriceModifierRel fetchByCommercePriceModifierId_First(long commercePriceModifierId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator)
commercePriceModifierId
- the commerce price modifier IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price modifier rel could not be foundpublic static CommercePriceModifierRel findByCommercePriceModifierId_Last(long commercePriceModifierId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator) throws NoSuchPriceModifierRelException
commercePriceModifierId
- the commerce price modifier IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceModifierRelException
- if a matching commerce price modifier rel could not be foundpublic static CommercePriceModifierRel fetchByCommercePriceModifierId_Last(long commercePriceModifierId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator)
commercePriceModifierId
- the commerce price modifier IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price modifier rel could not be foundpublic static CommercePriceModifierRel[] findByCommercePriceModifierId_PrevAndNext(long commercePriceModifierRelId, long commercePriceModifierId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator) throws NoSuchPriceModifierRelException
commercePriceModifierRelId
- the primary key of the current commerce price modifier relcommercePriceModifierId
- the commerce price modifier IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceModifierRelException
- if a commerce price modifier rel with the primary key could not be foundpublic static void removeByCommercePriceModifierId(long commercePriceModifierId)
commercePriceModifierId
- the commerce price modifier IDpublic static int countByCommercePriceModifierId(long commercePriceModifierId)
commercePriceModifierId
- the commerce price modifier IDpublic static java.util.List<CommercePriceModifierRel> findByCPM_CN(long commercePriceModifierId, long classNameId)
commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name IDpublic static java.util.List<CommercePriceModifierRel> findByCPM_CN(long commercePriceModifierId, long classNameId, 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 CommercePriceModifierRelModelImpl
.
commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name IDstart
- the lower bound of the range of commerce price modifier relsend
- the upper bound of the range of commerce price modifier rels (not inclusive)public static java.util.List<CommercePriceModifierRel> findByCPM_CN(long commercePriceModifierId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> 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 CommercePriceModifierRelModelImpl
.
commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name IDstart
- the lower bound of the range of commerce price modifier relsend
- the upper bound of the range of commerce price modifier rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommercePriceModifierRel> findByCPM_CN(long commercePriceModifierId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> 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 CommercePriceModifierRelModelImpl
.
commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name IDstart
- the lower bound of the range of commerce price modifier relsend
- the upper bound of the range of commerce price modifier rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommercePriceModifierRel findByCPM_CN_First(long commercePriceModifierId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator) throws NoSuchPriceModifierRelException
commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceModifierRelException
- if a matching commerce price modifier rel could not be foundpublic static CommercePriceModifierRel fetchByCPM_CN_First(long commercePriceModifierId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator)
commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price modifier rel could not be foundpublic static CommercePriceModifierRel findByCPM_CN_Last(long commercePriceModifierId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator) throws NoSuchPriceModifierRelException
commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceModifierRelException
- if a matching commerce price modifier rel could not be foundpublic static CommercePriceModifierRel fetchByCPM_CN_Last(long commercePriceModifierId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator)
commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price modifier rel could not be foundpublic static CommercePriceModifierRel[] findByCPM_CN_PrevAndNext(long commercePriceModifierRelId, long commercePriceModifierId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator) throws NoSuchPriceModifierRelException
commercePriceModifierRelId
- the primary key of the current commerce price modifier relcommercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceModifierRelException
- if a commerce price modifier rel with the primary key could not be foundpublic static void removeByCPM_CN(long commercePriceModifierId, long classNameId)
commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name IDpublic static int countByCPM_CN(long commercePriceModifierId, long classNameId)
commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name IDpublic static java.util.List<CommercePriceModifierRel> findByCN_CPK(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkpublic static java.util.List<CommercePriceModifierRel> findByCN_CPK(long classNameId, long classPK, 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 CommercePriceModifierRelModelImpl
.
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of commerce price modifier relsend
- the upper bound of the range of commerce price modifier rels (not inclusive)public static java.util.List<CommercePriceModifierRel> findByCN_CPK(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> 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 CommercePriceModifierRelModelImpl
.
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of commerce price modifier relsend
- the upper bound of the range of commerce price modifier rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommercePriceModifierRel> findByCN_CPK(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> 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 CommercePriceModifierRelModelImpl
.
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of commerce price modifier relsend
- the upper bound of the range of commerce price modifier rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommercePriceModifierRel findByCN_CPK_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator) throws NoSuchPriceModifierRelException
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceModifierRelException
- if a matching commerce price modifier rel could not be foundpublic static CommercePriceModifierRel fetchByCN_CPK_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator)
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price modifier rel could not be foundpublic static CommercePriceModifierRel findByCN_CPK_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator) throws NoSuchPriceModifierRelException
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceModifierRelException
- if a matching commerce price modifier rel could not be foundpublic static CommercePriceModifierRel fetchByCN_CPK_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator)
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price modifier rel could not be foundpublic static CommercePriceModifierRel[] findByCN_CPK_PrevAndNext(long commercePriceModifierRelId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator) throws NoSuchPriceModifierRelException
commercePriceModifierRelId
- the primary key of the current commerce price modifier relclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceModifierRelException
- if a commerce price modifier rel with the primary key could not be foundpublic static void removeByCN_CPK(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkpublic static int countByCN_CPK(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkpublic static CommercePriceModifierRel findByCPM_CN_CPK(long commercePriceModifierId, long classNameId, long classPK) throws NoSuchPriceModifierRelException
NoSuchPriceModifierRelException
if it could not be found.commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name IDclassPK
- the class pkNoSuchPriceModifierRelException
- if a matching commerce price modifier rel could not be foundpublic static CommercePriceModifierRel fetchByCPM_CN_CPK(long commercePriceModifierId, long classNameId, long classPK)
null
if it could not be found. Uses the finder cache.commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name IDclassPK
- the class pknull
if a matching commerce price modifier rel could not be foundpublic static CommercePriceModifierRel fetchByCPM_CN_CPK(long commercePriceModifierId, long classNameId, long classPK, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name IDclassPK
- the class pkuseFinderCache
- whether to use the finder cachenull
if a matching commerce price modifier rel could not be foundpublic static CommercePriceModifierRel removeByCPM_CN_CPK(long commercePriceModifierId, long classNameId, long classPK) throws NoSuchPriceModifierRelException
commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name IDclassPK
- the class pkNoSuchPriceModifierRelException
public static int countByCPM_CN_CPK(long commercePriceModifierId, long classNameId, long classPK)
commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name IDclassPK
- the class pkpublic static void cacheResult(CommercePriceModifierRel commercePriceModifierRel)
commercePriceModifierRel
- the commerce price modifier relpublic static void cacheResult(java.util.List<CommercePriceModifierRel> commercePriceModifierRels)
commercePriceModifierRels
- the commerce price modifier relspublic static CommercePriceModifierRel create(long commercePriceModifierRelId)
commercePriceModifierRelId
- the primary key for the new commerce price modifier relpublic static CommercePriceModifierRel remove(long commercePriceModifierRelId) throws NoSuchPriceModifierRelException
commercePriceModifierRelId
- the primary key of the commerce price modifier relNoSuchPriceModifierRelException
- if a commerce price modifier rel with the primary key could not be foundpublic static CommercePriceModifierRel updateImpl(CommercePriceModifierRel commercePriceModifierRel)
public static CommercePriceModifierRel findByPrimaryKey(long commercePriceModifierRelId) throws NoSuchPriceModifierRelException
NoSuchPriceModifierRelException
if it could not be found.commercePriceModifierRelId
- the primary key of the commerce price modifier relNoSuchPriceModifierRelException
- if a commerce price modifier rel with the primary key could not be foundpublic static CommercePriceModifierRel fetchByPrimaryKey(long commercePriceModifierRelId)
null
if it could not be found.commercePriceModifierRelId
- the primary key of the commerce price modifier relnull
if a commerce price modifier rel with the primary key could not be foundpublic static java.util.List<CommercePriceModifierRel> findAll()
public static java.util.List<CommercePriceModifierRel> 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 CommercePriceModifierRelModelImpl
.
start
- the lower bound of the range of commerce price modifier relsend
- the upper bound of the range of commerce price modifier rels (not inclusive)public static java.util.List<CommercePriceModifierRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> 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 CommercePriceModifierRelModelImpl
.
start
- the lower bound of the range of commerce price modifier relsend
- the upper bound of the range of commerce price modifier rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommercePriceModifierRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> 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 CommercePriceModifierRelModelImpl
.
start
- the lower bound of the range of commerce price modifier relsend
- the upper bound of the range of commerce price modifier 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 CommercePriceModifierRelPersistence getPersistence()