Interface CommercePricingClassCPDefinitionRelPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CommercePricingClassCPDefinitionRel>
,com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CommercePricingClassCPDefinitionRel>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(CommercePricingClassCPDefinitionRel commercePricingClassCPDefinitionRel) Caches the commerce pricing class cp definition rel in the entity cache if it is enabled.void
cacheResult
(List<CommercePricingClassCPDefinitionRel> commercePricingClassCPDefinitionRels) Caches the commerce pricing class cp definition rels in the entity cache if it is enabled.int
countAll()
Returns the number of commerce pricing class cp definition rels.int
countByC_C
(long commercePricingClassId, long CPDefinitionId) Returns the number of commerce pricing class cp definition rels where commercePricingClassId = ? and CPDefinitionId = ?.int
countByCommercePricingClassId
(long commercePricingClassId) Returns the number of commerce pricing class cp definition rels where commercePricingClassId = ?.int
countByCPDefinitionId
(long CPDefinitionId) Returns the number of commerce pricing class cp definition rels where CPDefinitionId = ?.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.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 = ?.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 = ?.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.remove
(long CommercePricingClassCPDefinitionRelId) Removes the commerce pricing class cp definition rel with the primary key from the database.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.void
removeByCommercePricingClassId
(long commercePricingClassId) Removes all the commerce pricing class cp definition rels where commercePricingClassId = ? from the database.void
removeByCPDefinitionId
(long CPDefinitionId) Removes all the commerce pricing class cp definition rels where CPDefinitionId = ? from the database.updateImpl
(CommercePricingClassCPDefinitionRel commercePricingClassCPDefinitionRel) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
Methods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
-
Method Details
-
findByCommercePricingClassId
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
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
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
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
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 found
-
fetchByCommercePricingClassId_First
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
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 found
-
fetchByCommercePricingClassId_Last
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
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 found
-
removeByCommercePricingClassId
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
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
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
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
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
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 found
-
fetchByCPDefinitionId_First
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
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 found
-
fetchByCPDefinitionId_Last
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
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 found
-
removeByCPDefinitionId
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
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
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 found
-
fetchByC_C
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
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
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
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
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
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
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
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 found
-
updateImpl
CommercePricingClassCPDefinitionRel updateImpl(CommercePricingClassCPDefinitionRel commercePricingClassCPDefinitionRel) -
findByPrimaryKey
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 found
-
fetchByPrimaryKey
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
List<CommercePricingClassCPDefinitionRel> 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
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
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
void removeAll()Removes all the commerce pricing class cp definition rels from the database. -
countAll
int countAll()Returns the number of commerce pricing class cp definition rels.- Returns:
- the number of commerce pricing class cp definition rels
-