Class CommercePricingClassCPDefinitionRelUtil
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CommercePricingClassCPDefinitionRel commercePricingClassCPDefinitionRel) Caches the commerce pricing class cp definition rel in the entity cache if it is enabled.static void
cacheResult
(List<CommercePricingClassCPDefinitionRel> commercePricingClassCPDefinitionRels) Caches the commerce pricing class cp definition rels in the entity cache if it is enabled.static void
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) create
(long CommercePricingClassCPDefinitionRelId) Creates a new commerce pricing class cp definition rel with the primary key.fetchByC_C
(long commercePricingClassId, long CPDefinitionId) Returns the commerce pricing class cp definition rel where commercePricingClassId = ? and CPDefinitionId = ? or returnsnull
if it could not be found.fetchByC_C
(long commercePricingClassId, long CPDefinitionId, boolean useFinderCache) Returns the commerce pricing class cp definition rel where commercePricingClassId = ? and CPDefinitionId = ? or returnsnull
if it could not be found, optionally using the finder cache.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 = ?.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 = ?.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 = ?.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 = ?.fetchByPrimaryKey
(long CommercePricingClassCPDefinitionRelId) Returns the commerce pricing class cp definition rel with the primary key or returnsnull
if it could not be found.fetchByPrimaryKeys
(Set<Serializable> primaryKeys) findAll()
Returns all the commerce pricing class cp definition rels.findAll
(int start, int end) Returns a range of all the commerce pricing class cp definition rels.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.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.findByC_C
(long commercePricingClassId, long CPDefinitionId) Returns the commerce pricing class cp definition rel where commercePricingClassId = ? and CPDefinitionId = ? or throws aNoSuchPricingClassCPDefinitionRelException
if it could not be found.findByCommercePricingClassId
(long commercePricingClassId) Returns all the commerce pricing class cp definition rels where commercePricingClassId = ?.findByCommercePricingClassId
(long commercePricingClassId, int start, int end) Returns a range of all the commerce pricing class cp definition rels where commercePricingClassId = ?.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 = ?.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 = ?.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 = ?.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 = ?.findByCPDefinitionId
(long CPDefinitionId) Returns all the commerce pricing class cp definition rels where CPDefinitionId = ?.findByCPDefinitionId
(long CPDefinitionId, int start, int end) Returns a range of all the commerce pricing class cp definition rels where CPDefinitionId = ?.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 = ?.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 = ?.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 = ?.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 = ?.findByPrimaryKey
(long CommercePricingClassCPDefinitionRelId) Returns the commerce pricing class cp definition rel with the primary key or throws aNoSuchPricingClassCPDefinitionRelException
if it could not be found.findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator) remove
(long CommercePricingClassCPDefinitionRelId) Removes the commerce pricing class cp definition rel with the primary key from the database.static void
Removes all the commerce pricing class cp definition rels from the database.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 void
update
(CommercePricingClassCPDefinitionRel commercePricingClassCPDefinitionRel) update
(CommercePricingClassCPDefinitionRel commercePricingClassCPDefinitionRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateImpl
(CommercePricingClassCPDefinitionRel commercePricingClassCPDefinitionRel)
-
Constructor Details
-
CommercePricingClassCPDefinitionRelUtil
public CommercePricingClassCPDefinitionRelUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
public static void clearCache(CommercePricingClassCPDefinitionRel commercePricingClassCPDefinitionRel) - 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,CommercePricingClassCPDefinitionRel> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommercePricingClassCPDefinitionRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommercePricingClassCPDefinitionRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommercePricingClassCPDefinitionRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
public static CommercePricingClassCPDefinitionRel update(CommercePricingClassCPDefinitionRel commercePricingClassCPDefinitionRel) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommercePricingClassCPDefinitionRel update(CommercePricingClassCPDefinitionRel commercePricingClassCPDefinitionRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByCommercePricingClassId
public static List<CommercePricingClassCPDefinitionRel> findByCommercePricingClassId(long commercePricingClassId) Returns all the commerce pricing class cp definition rels where commercePricingClassId = ?.- Parameters:
commercePricingClassId
- the commerce pricing class ID- Returns:
- the matching commerce pricing class cp definition rels
-
findByCommercePricingClassId
public static List<CommercePricingClassCPDefinitionRel> findByCommercePricingClassId(long commercePricingClassId, int start, int end) Returns a range of all the commerce pricing class cp definition rels where commercePricingClassId = ?.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 fromCommercePricingClassCPDefinitionRelModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce pricing class cp definition rels
-
findByCommercePricingClassId
public static 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 = ?.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 fromCommercePricingClassCPDefinitionRelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce pricing class cp definition rels
-
findByCommercePricingClassId
public static 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 = ?.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 fromCommercePricingClassCPDefinitionRelModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce pricing class cp definition rels
-
findByCommercePricingClassId_First
public static CommercePricingClassCPDefinitionRel findByCommercePricingClassId_First(long commercePricingClassId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator) throws NoSuchPricingClassCPDefinitionRelException Returns the first commerce pricing class cp definition rel in the ordered set where commercePricingClassId = ?.- Parameters:
commercePricingClassId
- the commerce pricing class IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce pricing class cp definition rel
- Throws:
NoSuchPricingClassCPDefinitionRelException
- if a matching commerce pricing class cp definition rel could not be foundNoSuchPricingClassCPDefinitionRelException
-
fetchByCommercePricingClassId_First
public 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 = ?.- Parameters:
commercePricingClassId
- the commerce pricing class IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce pricing class cp definition rel, or
null
if a matching commerce pricing class cp definition rel could not be found
-
findByCommercePricingClassId_Last
public static CommercePricingClassCPDefinitionRel findByCommercePricingClassId_Last(long commercePricingClassId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator) throws NoSuchPricingClassCPDefinitionRelException Returns the last commerce pricing class cp definition rel in the ordered set where commercePricingClassId = ?.- Parameters:
commercePricingClassId
- the commerce pricing class IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce pricing class cp definition rel
- Throws:
NoSuchPricingClassCPDefinitionRelException
- if a matching commerce pricing class cp definition rel could not be foundNoSuchPricingClassCPDefinitionRelException
-
fetchByCommercePricingClassId_Last
public 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 = ?.- Parameters:
commercePricingClassId
- the commerce pricing class IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce pricing class cp definition rel, or
null
if a matching commerce pricing class cp definition rel could not be found
-
findByCommercePricingClassId_PrevAndNext
public static CommercePricingClassCPDefinitionRel[] findByCommercePricingClassId_PrevAndNext(long CommercePricingClassCPDefinitionRelId, long commercePricingClassId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator) throws NoSuchPricingClassCPDefinitionRelException 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 = ?.- Parameters:
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 (optionallynull
)- Returns:
- the previous, current, and next commerce pricing class cp definition rel
- Throws:
NoSuchPricingClassCPDefinitionRelException
- if a commerce pricing class cp definition rel with the primary key could not be foundNoSuchPricingClassCPDefinitionRelException
-
removeByCommercePricingClassId
public static void removeByCommercePricingClassId(long commercePricingClassId) Removes all the commerce pricing class cp definition rels where commercePricingClassId = ? from the database.- Parameters:
commercePricingClassId
- the commerce pricing class ID
-
countByCommercePricingClassId
public static int countByCommercePricingClassId(long commercePricingClassId) Returns the number of commerce pricing class cp definition rels where commercePricingClassId = ?.- Parameters:
commercePricingClassId
- the commerce pricing class ID- Returns:
- the number of matching commerce pricing class cp definition rels
-
findByCPDefinitionId
Returns all the commerce pricing class cp definition rels where CPDefinitionId = ?.- Parameters:
CPDefinitionId
- the cp definition ID- Returns:
- the matching commerce pricing class cp definition rels
-
findByCPDefinitionId
public static List<CommercePricingClassCPDefinitionRel> findByCPDefinitionId(long CPDefinitionId, int start, int end) Returns a range of all the commerce pricing class cp definition rels where CPDefinitionId = ?.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 fromCommercePricingClassCPDefinitionRelModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce pricing class cp definition rels
-
findByCPDefinitionId
public static 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 = ?.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 fromCommercePricingClassCPDefinitionRelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce pricing class cp definition rels
-
findByCPDefinitionId
public static 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 = ?.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 fromCommercePricingClassCPDefinitionRelModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce pricing class cp definition rels
-
findByCPDefinitionId_First
public static CommercePricingClassCPDefinitionRel findByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator) throws NoSuchPricingClassCPDefinitionRelException Returns the first commerce pricing class cp definition rel in the ordered set where CPDefinitionId = ?.- Parameters:
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce pricing class cp definition rel
- Throws:
NoSuchPricingClassCPDefinitionRelException
- if a matching commerce pricing class cp definition rel could not be foundNoSuchPricingClassCPDefinitionRelException
-
fetchByCPDefinitionId_First
public 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 = ?.- Parameters:
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce pricing class cp definition rel, or
null
if a matching commerce pricing class cp definition rel could not be found
-
findByCPDefinitionId_Last
public static CommercePricingClassCPDefinitionRel findByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator) throws NoSuchPricingClassCPDefinitionRelException Returns the last commerce pricing class cp definition rel in the ordered set where CPDefinitionId = ?.- Parameters:
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce pricing class cp definition rel
- Throws:
NoSuchPricingClassCPDefinitionRelException
- if a matching commerce pricing class cp definition rel could not be foundNoSuchPricingClassCPDefinitionRelException
-
fetchByCPDefinitionId_Last
public 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 = ?.- Parameters:
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce pricing class cp definition rel, or
null
if a matching commerce pricing class cp definition rel could not be found
-
findByCPDefinitionId_PrevAndNext
public static CommercePricingClassCPDefinitionRel[] findByCPDefinitionId_PrevAndNext(long CommercePricingClassCPDefinitionRelId, long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClassCPDefinitionRel> orderByComparator) throws NoSuchPricingClassCPDefinitionRelException 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 = ?.- Parameters:
CommercePricingClassCPDefinitionRelId
- the primary key of the current commerce pricing class cp definition relCPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce pricing class cp definition rel
- Throws:
NoSuchPricingClassCPDefinitionRelException
- if a commerce pricing class cp definition rel with the primary key could not be foundNoSuchPricingClassCPDefinitionRelException
-
removeByCPDefinitionId
public static void removeByCPDefinitionId(long CPDefinitionId) Removes all the commerce pricing class cp definition rels where CPDefinitionId = ? from the database.- Parameters:
CPDefinitionId
- the cp definition ID
-
countByCPDefinitionId
public static int countByCPDefinitionId(long CPDefinitionId) Returns the number of commerce pricing class cp definition rels where CPDefinitionId = ?.- Parameters:
CPDefinitionId
- the cp definition ID- Returns:
- the number of matching commerce pricing class cp definition rels
-
findByC_C
public static CommercePricingClassCPDefinitionRel findByC_C(long commercePricingClassId, long CPDefinitionId) throws NoSuchPricingClassCPDefinitionRelException Returns the commerce pricing class cp definition rel where commercePricingClassId = ? and CPDefinitionId = ? or throws aNoSuchPricingClassCPDefinitionRelException
if it could not be found.- Parameters:
commercePricingClassId
- the commerce pricing class IDCPDefinitionId
- the cp definition ID- Returns:
- the matching commerce pricing class cp definition rel
- Throws:
NoSuchPricingClassCPDefinitionRelException
- if a matching commerce pricing class cp definition rel could not be foundNoSuchPricingClassCPDefinitionRelException
-
fetchByC_C
public static CommercePricingClassCPDefinitionRel fetchByC_C(long commercePricingClassId, long CPDefinitionId) Returns the commerce pricing class cp definition rel where commercePricingClassId = ? and CPDefinitionId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
commercePricingClassId
- the commerce pricing class IDCPDefinitionId
- the cp definition ID- Returns:
- the matching commerce pricing class cp definition rel, or
null
if a matching commerce pricing class cp definition rel could not be found
-
fetchByC_C
public static CommercePricingClassCPDefinitionRel fetchByC_C(long commercePricingClassId, long CPDefinitionId, boolean useFinderCache) Returns the commerce pricing class cp definition rel where commercePricingClassId = ? and CPDefinitionId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
commercePricingClassId
- the commerce pricing class IDCPDefinitionId
- the cp definition IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce pricing class cp definition rel, or
null
if a matching commerce pricing class cp definition rel could not be found
-
removeByC_C
public static CommercePricingClassCPDefinitionRel removeByC_C(long commercePricingClassId, long CPDefinitionId) throws NoSuchPricingClassCPDefinitionRelException Removes the commerce pricing class cp definition rel where commercePricingClassId = ? and CPDefinitionId = ? from the database.- Parameters:
commercePricingClassId
- the commerce pricing class IDCPDefinitionId
- the cp definition ID- Returns:
- the commerce pricing class cp definition rel that was removed
- Throws:
NoSuchPricingClassCPDefinitionRelException
-
countByC_C
public static int countByC_C(long commercePricingClassId, long CPDefinitionId) Returns the number of commerce pricing class cp definition rels where commercePricingClassId = ? and CPDefinitionId = ?.- Parameters:
commercePricingClassId
- the commerce pricing class IDCPDefinitionId
- the cp definition ID- Returns:
- the number of matching commerce pricing class cp definition rels
-
cacheResult
public static void cacheResult(CommercePricingClassCPDefinitionRel commercePricingClassCPDefinitionRel) Caches the commerce pricing class cp definition rel in the entity cache if it is enabled.- Parameters:
commercePricingClassCPDefinitionRel
- the commerce pricing class cp definition rel
-
cacheResult
public static void cacheResult(List<CommercePricingClassCPDefinitionRel> commercePricingClassCPDefinitionRels) Caches the commerce pricing class cp definition rels in the entity cache if it is enabled.- Parameters:
commercePricingClassCPDefinitionRels
- the commerce pricing class cp definition rels
-
create
public static CommercePricingClassCPDefinitionRel create(long CommercePricingClassCPDefinitionRelId) Creates a new commerce pricing class cp definition rel with the primary key. Does not add the commerce pricing class cp definition rel to the database.- Parameters:
CommercePricingClassCPDefinitionRelId
- the primary key for the new commerce pricing class cp definition rel- Returns:
- the new commerce pricing class cp definition rel
-
remove
public static CommercePricingClassCPDefinitionRel remove(long CommercePricingClassCPDefinitionRelId) throws NoSuchPricingClassCPDefinitionRelException Removes the commerce pricing class cp definition rel with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
CommercePricingClassCPDefinitionRelId
- the primary key of the commerce pricing class cp definition rel- Returns:
- the commerce pricing class cp definition rel that was removed
- Throws:
NoSuchPricingClassCPDefinitionRelException
- if a commerce pricing class cp definition rel with the primary key could not be foundNoSuchPricingClassCPDefinitionRelException
-
updateImpl
public static CommercePricingClassCPDefinitionRel updateImpl(CommercePricingClassCPDefinitionRel commercePricingClassCPDefinitionRel) -
findByPrimaryKey
public static CommercePricingClassCPDefinitionRel findByPrimaryKey(long CommercePricingClassCPDefinitionRelId) throws NoSuchPricingClassCPDefinitionRelException Returns the commerce pricing class cp definition rel with the primary key or throws aNoSuchPricingClassCPDefinitionRelException
if it could not be found.- Parameters:
CommercePricingClassCPDefinitionRelId
- the primary key of the commerce pricing class cp definition rel- Returns:
- the commerce pricing class cp definition rel
- Throws:
NoSuchPricingClassCPDefinitionRelException
- if a commerce pricing class cp definition rel with the primary key could not be foundNoSuchPricingClassCPDefinitionRelException
-
fetchByPrimaryKey
public static CommercePricingClassCPDefinitionRel fetchByPrimaryKey(long CommercePricingClassCPDefinitionRelId) Returns the commerce pricing class cp definition rel with the primary key or returnsnull
if it could not be found.- Parameters:
CommercePricingClassCPDefinitionRelId
- the primary key of the commerce pricing class cp definition rel- Returns:
- the commerce pricing class cp definition rel, or
null
if a commerce pricing class cp definition rel with the primary key could not be found
-
findAll
Returns all the commerce pricing class cp definition rels.- Returns:
- the commerce pricing class cp definition rels
-
findAll
Returns a range of all the commerce pricing class cp definition 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 fromCommercePricingClassCPDefinitionRelModelImpl
.- Parameters:
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)- Returns:
- the range of commerce pricing class cp definition rels
-
findAll
public static 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.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 fromCommercePricingClassCPDefinitionRelModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of commerce pricing class cp definition rels
-
findAll
public static 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.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 fromCommercePricingClassCPDefinitionRelModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of commerce pricing class cp definition rels
-
removeAll
public static void removeAll()Removes all the commerce pricing class cp definition rels from the database. -
countAll
public static int countAll()Returns the number of commerce pricing class cp definition rels.- Returns:
- the number of commerce pricing class cp definition rels
-
getPersistence
-
setPersistence
-