Class CommercePriceModifierRelUtil
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CommercePriceModifierRel commercePriceModifierRel) Caches the commerce price modifier rel in the entity cache if it is enabled.static void
cacheResult
(List<CommercePriceModifierRel> commercePriceModifierRels) Caches the commerce price modifier rels in the entity cache if it is enabled.static void
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
(long commercePriceModifierId, long classNameId) Returns the number of commerce price modifier rels where commercePriceModifierId = ? and classNameId = ?.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 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 returnsnull
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 returnsnull
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 returnsnull
if it could not be found.static Map<Serializable,
CommercePriceModifierRel> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static List<CommercePriceModifierRel>
findAll()
Returns all the commerce price modifier rels.static List<CommercePriceModifierRel>
findAll
(int start, int end) Returns a range of all the commerce price modifier rels.static 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 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 List<CommercePriceModifierRel>
findByCN_CPK
(long classNameId, long classPK) Returns all the commerce price modifier rels where classNameId = ? and classPK = ?.static 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 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 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
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 List<CommercePriceModifierRel>
findByCommercePriceModifierId
(long commercePriceModifierId) Returns all the commerce price modifier rels where commercePriceModifierId = ?.static List<CommercePriceModifierRel>
findByCommercePriceModifierId
(long commercePriceModifierId, int start, int end) Returns a range of all the commerce price modifier rels where commercePriceModifierId = ?.static 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 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
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 List<CommercePriceModifierRel>
findByCPM_CN
(long commercePriceModifierId, long classNameId) Returns all the commerce price modifier rels where commercePriceModifierId = ? and classNameId = ?.static 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 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 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
findByCPM_CN_CPK
(long commercePriceModifierId, long classNameId, long classPK) Returns the commerce price modifier rel where commercePriceModifierId = ? and classNameId = ? and classPK = ? or throws aNoSuchPriceModifierRelException
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 CommercePriceModifierRel
findByPrimaryKey
(long commercePriceModifierRelId) Returns the commerce price modifier rel with the primary key or throws aNoSuchPriceModifierRelException
if it could not be found.static List<CommercePriceModifierRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommercePriceModifierRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommercePriceModifierRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator) static CommercePriceModifierRel
remove
(long commercePriceModifierRelId) Removes the commerce price modifier rel with the primary key from the database.static void
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 void
removeByCPM_CN
(long commercePriceModifierId, long classNameId) Removes all the commerce price modifier rels where commercePriceModifierId = ? and classNameId = ? 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
setPersistence
(CommercePriceModifierRelPersistence persistence) static CommercePriceModifierRel
update
(CommercePriceModifierRel commercePriceModifierRel) static CommercePriceModifierRel
update
(CommercePriceModifierRel commercePriceModifierRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommercePriceModifierRel
updateImpl
(CommercePriceModifierRel commercePriceModifierRel)
-
Constructor Details
-
CommercePriceModifierRelUtil
public CommercePriceModifierRelUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
public static Map<Serializable,CommercePriceModifierRel> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommercePriceModifierRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommercePriceModifierRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommercePriceModifierRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommercePriceModifierRel update(CommercePriceModifierRel commercePriceModifierRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByCommercePriceModifierId
public static List<CommercePriceModifierRel> findByCommercePriceModifierId(long commercePriceModifierId) Returns all the commerce price modifier rels where commercePriceModifierId = ?.- Parameters:
commercePriceModifierId
- the commerce price modifier ID- Returns:
- the matching commerce price modifier rels
-
findByCommercePriceModifierId
public static List<CommercePriceModifierRel> findByCommercePriceModifierId(long commercePriceModifierId, int start, int end) Returns a range of all the commerce price modifier rels where commercePriceModifierId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommercePriceModifierRelModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce price modifier rels
-
findByCommercePriceModifierId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommercePriceModifierRelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce price modifier rels
-
findByCommercePriceModifierId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommercePriceModifierRelModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce price modifier rels
-
findByCommercePriceModifierId_First
public static CommercePriceModifierRel findByCommercePriceModifierId_First(long commercePriceModifierId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator) throws NoSuchPriceModifierRelException Returns the first commerce price modifier rel in the ordered set where commercePriceModifierId = ?.- Parameters:
commercePriceModifierId
- the commerce price modifier IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce price modifier rel
- Throws:
NoSuchPriceModifierRelException
- if a matching commerce price modifier rel could not be foundNoSuchPriceModifierRelException
-
fetchByCommercePriceModifierId_First
public 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 = ?.- Parameters:
commercePriceModifierId
- the commerce price modifier IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce price modifier rel, or
null
if a matching commerce price modifier rel could not be found
-
findByCommercePriceModifierId_Last
public static CommercePriceModifierRel findByCommercePriceModifierId_Last(long commercePriceModifierId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator) throws NoSuchPriceModifierRelException Returns the last commerce price modifier rel in the ordered set where commercePriceModifierId = ?.- Parameters:
commercePriceModifierId
- the commerce price modifier IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce price modifier rel
- Throws:
NoSuchPriceModifierRelException
- if a matching commerce price modifier rel could not be foundNoSuchPriceModifierRelException
-
fetchByCommercePriceModifierId_Last
public 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 = ?.- Parameters:
commercePriceModifierId
- the commerce price modifier IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce price modifier rel, or
null
if a matching commerce price modifier rel could not be found
-
findByCommercePriceModifierId_PrevAndNext
public static CommercePriceModifierRel[] findByCommercePriceModifierId_PrevAndNext(long commercePriceModifierRelId, long commercePriceModifierId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator) throws NoSuchPriceModifierRelException Returns the commerce price modifier rels before and after the current commerce price modifier rel in the ordered set where commercePriceModifierId = ?.- Parameters:
commercePriceModifierRelId
- the primary key of the current commerce price modifier relcommercePriceModifierId
- the commerce price modifier IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce price modifier rel
- Throws:
NoSuchPriceModifierRelException
- if a commerce price modifier rel with the primary key could not be foundNoSuchPriceModifierRelException
-
removeByCommercePriceModifierId
public static void removeByCommercePriceModifierId(long commercePriceModifierId) Removes all the commerce price modifier rels where commercePriceModifierId = ? from the database.- Parameters:
commercePriceModifierId
- the commerce price modifier ID
-
countByCommercePriceModifierId
public static int countByCommercePriceModifierId(long commercePriceModifierId) Returns the number of commerce price modifier rels where commercePriceModifierId = ?.- Parameters:
commercePriceModifierId
- the commerce price modifier ID- Returns:
- the number of matching commerce price modifier rels
-
findByCPM_CN
public static List<CommercePriceModifierRel> findByCPM_CN(long commercePriceModifierId, long classNameId) Returns all the commerce price modifier rels where commercePriceModifierId = ? and classNameId = ?.- Parameters:
commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name ID- Returns:
- the matching commerce price modifier rels
-
findByCPM_CN
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommercePriceModifierRelModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce price modifier rels
-
findByCPM_CN
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommercePriceModifierRelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce price modifier rels
-
findByCPM_CN
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommercePriceModifierRelModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce price modifier rels
-
findByCPM_CN_First
public static CommercePriceModifierRel findByCPM_CN_First(long commercePriceModifierId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator) throws NoSuchPriceModifierRelException Returns the first commerce price modifier rel in the ordered set where commercePriceModifierId = ? and classNameId = ?.- Parameters:
commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce price modifier rel
- Throws:
NoSuchPriceModifierRelException
- if a matching commerce price modifier rel could not be foundNoSuchPriceModifierRelException
-
fetchByCPM_CN_First
public 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 = ?.- Parameters:
commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce price modifier rel, or
null
if a matching commerce price modifier rel could not be found
-
findByCPM_CN_Last
public static CommercePriceModifierRel findByCPM_CN_Last(long commercePriceModifierId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator) throws NoSuchPriceModifierRelException Returns the last commerce price modifier rel in the ordered set where commercePriceModifierId = ? and classNameId = ?.- Parameters:
commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce price modifier rel
- Throws:
NoSuchPriceModifierRelException
- if a matching commerce price modifier rel could not be foundNoSuchPriceModifierRelException
-
fetchByCPM_CN_Last
public 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 = ?.- Parameters:
commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce price modifier rel, or
null
if a matching commerce price modifier rel could not be found
-
findByCPM_CN_PrevAndNext
public static CommercePriceModifierRel[] findByCPM_CN_PrevAndNext(long commercePriceModifierRelId, long commercePriceModifierId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator) throws NoSuchPriceModifierRelException Returns the commerce price modifier rels before and after the current commerce price modifier rel in the ordered set where commercePriceModifierId = ? and classNameId = ?.- Parameters:
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 (optionallynull
)- Returns:
- the previous, current, and next commerce price modifier rel
- Throws:
NoSuchPriceModifierRelException
- if a commerce price modifier rel with the primary key could not be foundNoSuchPriceModifierRelException
-
removeByCPM_CN
public static void removeByCPM_CN(long commercePriceModifierId, long classNameId) Removes all the commerce price modifier rels where commercePriceModifierId = ? and classNameId = ? from the database.- Parameters:
commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name ID
-
countByCPM_CN
public static int countByCPM_CN(long commercePriceModifierId, long classNameId) Returns the number of commerce price modifier rels where commercePriceModifierId = ? and classNameId = ?.- Parameters:
commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name ID- Returns:
- the number of matching commerce price modifier rels
-
findByCN_CPK
Returns all the commerce price modifier rels where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching commerce price modifier rels
-
findByCN_CPK
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommercePriceModifierRelModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce price modifier rels
-
findByCN_CPK
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommercePriceModifierRelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce price modifier rels
-
findByCN_CPK
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommercePriceModifierRelModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce price modifier rels
-
findByCN_CPK_First
public static CommercePriceModifierRel findByCN_CPK_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator) throws NoSuchPriceModifierRelException Returns the first commerce price modifier rel in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce price modifier rel
- Throws:
NoSuchPriceModifierRelException
- if a matching commerce price modifier rel could not be foundNoSuchPriceModifierRelException
-
fetchByCN_CPK_First
public 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 = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce price modifier rel, or
null
if a matching commerce price modifier rel could not be found
-
findByCN_CPK_Last
public static CommercePriceModifierRel findByCN_CPK_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator) throws NoSuchPriceModifierRelException Returns the last commerce price modifier rel in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce price modifier rel
- Throws:
NoSuchPriceModifierRelException
- if a matching commerce price modifier rel could not be foundNoSuchPriceModifierRelException
-
fetchByCN_CPK_Last
public 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 = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce price modifier rel, or
null
if a matching commerce price modifier rel could not be found
-
findByCN_CPK_PrevAndNext
public static CommercePriceModifierRel[] findByCN_CPK_PrevAndNext(long commercePriceModifierRelId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceModifierRel> orderByComparator) throws NoSuchPriceModifierRelException Returns the commerce price modifier rels before and after the current commerce price modifier rel in the ordered set where classNameId = ? and classPK = ?.- Parameters:
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 (optionallynull
)- Returns:
- the previous, current, and next commerce price modifier rel
- Throws:
NoSuchPriceModifierRelException
- if a commerce price modifier rel with the primary key could not be foundNoSuchPriceModifierRelException
-
removeByCN_CPK
public static void removeByCN_CPK(long classNameId, long classPK) Removes all the commerce price modifier rels where classNameId = ? and classPK = ? from the database.- Parameters:
classNameId
- the class name IDclassPK
- the class pk
-
countByCN_CPK
public static int countByCN_CPK(long classNameId, long classPK) Returns the number of commerce price modifier rels where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the number of matching commerce price modifier rels
-
findByCPM_CN_CPK
public static CommercePriceModifierRel findByCPM_CN_CPK(long commercePriceModifierId, long classNameId, long classPK) throws NoSuchPriceModifierRelException Returns the commerce price modifier rel where commercePriceModifierId = ? and classNameId = ? and classPK = ? or throws aNoSuchPriceModifierRelException
if it could not be found.- Parameters:
commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching commerce price modifier rel
- Throws:
NoSuchPriceModifierRelException
- if a matching commerce price modifier rel could not be foundNoSuchPriceModifierRelException
-
fetchByCPM_CN_CPK
public static CommercePriceModifierRel fetchByCPM_CN_CPK(long commercePriceModifierId, long classNameId, long classPK) Returns the commerce price modifier rel where commercePriceModifierId = ? and classNameId = ? and classPK = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching commerce price modifier rel, or
null
if a matching commerce price modifier rel could not be found
-
fetchByCPM_CN_CPK
public 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 returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name IDclassPK
- the class pkuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce price modifier rel, or
null
if a matching commerce price modifier rel could not be found
-
removeByCPM_CN_CPK
public static CommercePriceModifierRel removeByCPM_CN_CPK(long commercePriceModifierId, long classNameId, long classPK) throws NoSuchPriceModifierRelException Removes the commerce price modifier rel where commercePriceModifierId = ? and classNameId = ? and classPK = ? from the database.- Parameters:
commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name IDclassPK
- the class pk- Returns:
- the commerce price modifier rel that was removed
- Throws:
NoSuchPriceModifierRelException
-
countByCPM_CN_CPK
public 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 = ?.- Parameters:
commercePriceModifierId
- the commerce price modifier IDclassNameId
- the class name IDclassPK
- the class pk- Returns:
- the number of matching commerce price modifier rels
-
cacheResult
Caches the commerce price modifier rel in the entity cache if it is enabled.- Parameters:
commercePriceModifierRel
- the commerce price modifier rel
-
cacheResult
Caches the commerce price modifier rels in the entity cache if it is enabled.- Parameters:
commercePriceModifierRels
- the commerce price modifier rels
-
create
Creates a new commerce price modifier rel with the primary key. Does not add the commerce price modifier rel to the database.- Parameters:
commercePriceModifierRelId
- the primary key for the new commerce price modifier rel- Returns:
- the new commerce price modifier rel
-
remove
public static CommercePriceModifierRel remove(long commercePriceModifierRelId) throws NoSuchPriceModifierRelException Removes the commerce price modifier rel with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commercePriceModifierRelId
- the primary key of the commerce price modifier rel- Returns:
- the commerce price modifier rel that was removed
- Throws:
NoSuchPriceModifierRelException
- if a commerce price modifier rel with the primary key could not be foundNoSuchPriceModifierRelException
-
updateImpl
public static CommercePriceModifierRel updateImpl(CommercePriceModifierRel commercePriceModifierRel) -
findByPrimaryKey
public static CommercePriceModifierRel findByPrimaryKey(long commercePriceModifierRelId) throws NoSuchPriceModifierRelException Returns the commerce price modifier rel with the primary key or throws aNoSuchPriceModifierRelException
if it could not be found.- Parameters:
commercePriceModifierRelId
- the primary key of the commerce price modifier rel- Returns:
- the commerce price modifier rel
- Throws:
NoSuchPriceModifierRelException
- if a commerce price modifier rel with the primary key could not be foundNoSuchPriceModifierRelException
-
fetchByPrimaryKey
Returns the commerce price modifier rel with the primary key or returnsnull
if it could not be found.- Parameters:
commercePriceModifierRelId
- the primary key of the commerce price modifier rel- Returns:
- the commerce price modifier rel, or
null
if a commerce price modifier rel with the primary key could not be found
-
findAll
Returns all the commerce price modifier rels.- Returns:
- the commerce price modifier rels
-
findAll
Returns a range of all the commerce price modifier rels.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommercePriceModifierRelModelImpl
.- Parameters:
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)- Returns:
- the range of commerce price modifier rels
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommercePriceModifierRelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of commerce price modifier rels
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommercePriceModifierRelModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of commerce price modifier rels
-
removeAll
public static void removeAll()Removes all the commerce price modifier rels from the database. -
countAll
public static int countAll()Returns the number of commerce price modifier rels.- Returns:
- the number of commerce price modifier rels
-
getPersistence
-
setPersistence
-