Interface CommerceInventoryWarehouseRelPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceInventoryWarehouseRel>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(CommerceInventoryWarehouseRel commerceInventoryWarehouseRel) Caches the commerce inventory warehouse rel in the entity cache if it is enabled.void
cacheResult
(List<CommerceInventoryWarehouseRel> commerceInventoryWarehouseRels) Caches the commerce inventory warehouse rels in the entity cache if it is enabled.int
countAll()
Returns the number of commerce inventory warehouse rels.int
countByC_C
(long classNameId, long commerceInventoryWarehouseId) Returns the number of commerce inventory warehouse rels where classNameId = ? and commerceInventoryWarehouseId = ?.int
countByC_C_CIWI
(long classNameId, long classPK, long commerceInventoryWarehouseId) Returns the number of commerce inventory warehouse rels where classNameId = ? and classPK = ? and commerceInventoryWarehouseId = ?.int
countByCommerceInventoryWarehouseId
(long commerceInventoryWarehouseId) Returns the number of commerce inventory warehouse rels where commerceInventoryWarehouseId = ?.create
(long commerceInventoryWarehouseRelId) Creates a new commerce inventory warehouse rel with the primary key.fetchByC_C_CIWI
(long classNameId, long classPK, long commerceInventoryWarehouseId) Returns the commerce inventory warehouse rel where classNameId = ? and classPK = ? and commerceInventoryWarehouseId = ? or returnsnull
if it could not be found.fetchByC_C_CIWI
(long classNameId, long classPK, long commerceInventoryWarehouseId, boolean useFinderCache) Returns the commerce inventory warehouse rel where classNameId = ? and classPK = ? and commerceInventoryWarehouseId = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByC_C_First
(long classNameId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) Returns the first commerce inventory warehouse rel in the ordered set where classNameId = ? and commerceInventoryWarehouseId = ?.fetchByC_C_Last
(long classNameId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) Returns the last commerce inventory warehouse rel in the ordered set where classNameId = ? and commerceInventoryWarehouseId = ?.fetchByCommerceInventoryWarehouseId_First
(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) Returns the first commerce inventory warehouse rel in the ordered set where commerceInventoryWarehouseId = ?.fetchByCommerceInventoryWarehouseId_Last
(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) Returns the last commerce inventory warehouse rel in the ordered set where commerceInventoryWarehouseId = ?.fetchByPrimaryKey
(long commerceInventoryWarehouseRelId) Returns the commerce inventory warehouse rel with the primary key or returnsnull
if it could not be found.findAll()
Returns all the commerce inventory warehouse rels.findAll
(int start, int end) Returns a range of all the commerce inventory warehouse rels.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) Returns an ordered range of all the commerce inventory warehouse rels.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce inventory warehouse rels.findByC_C
(long classNameId, long commerceInventoryWarehouseId) Returns all the commerce inventory warehouse rels where classNameId = ? and commerceInventoryWarehouseId = ?.findByC_C
(long classNameId, long commerceInventoryWarehouseId, int start, int end) Returns a range of all the commerce inventory warehouse rels where classNameId = ? and commerceInventoryWarehouseId = ?.findByC_C
(long classNameId, long commerceInventoryWarehouseId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) Returns an ordered range of all the commerce inventory warehouse rels where classNameId = ? and commerceInventoryWarehouseId = ?.findByC_C
(long classNameId, long commerceInventoryWarehouseId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce inventory warehouse rels where classNameId = ? and commerceInventoryWarehouseId = ?.findByC_C_CIWI
(long classNameId, long classPK, long commerceInventoryWarehouseId) Returns the commerce inventory warehouse rel where classNameId = ? and classPK = ? and commerceInventoryWarehouseId = ? or throws aNoSuchInventoryWarehouseRelException
if it could not be found.findByC_C_First
(long classNameId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) Returns the first commerce inventory warehouse rel in the ordered set where classNameId = ? and commerceInventoryWarehouseId = ?.findByC_C_Last
(long classNameId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) Returns the last commerce inventory warehouse rel in the ordered set where classNameId = ? and commerceInventoryWarehouseId = ?.findByC_C_PrevAndNext
(long commerceInventoryWarehouseRelId, long classNameId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) Returns the commerce inventory warehouse rels before and after the current commerce inventory warehouse rel in the ordered set where classNameId = ? and commerceInventoryWarehouseId = ?.findByCommerceInventoryWarehouseId
(long commerceInventoryWarehouseId) Returns all the commerce inventory warehouse rels where commerceInventoryWarehouseId = ?.findByCommerceInventoryWarehouseId
(long commerceInventoryWarehouseId, int start, int end) Returns a range of all the commerce inventory warehouse rels where commerceInventoryWarehouseId = ?.findByCommerceInventoryWarehouseId
(long commerceInventoryWarehouseId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) Returns an ordered range of all the commerce inventory warehouse rels where commerceInventoryWarehouseId = ?.findByCommerceInventoryWarehouseId
(long commerceInventoryWarehouseId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce inventory warehouse rels where commerceInventoryWarehouseId = ?.findByCommerceInventoryWarehouseId_First
(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) Returns the first commerce inventory warehouse rel in the ordered set where commerceInventoryWarehouseId = ?.findByCommerceInventoryWarehouseId_Last
(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) Returns the last commerce inventory warehouse rel in the ordered set where commerceInventoryWarehouseId = ?.findByCommerceInventoryWarehouseId_PrevAndNext
(long commerceInventoryWarehouseRelId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) Returns the commerce inventory warehouse rels before and after the current commerce inventory warehouse rel in the ordered set where commerceInventoryWarehouseId = ?.findByPrimaryKey
(long commerceInventoryWarehouseRelId) Returns the commerce inventory warehouse rel with the primary key or throws aNoSuchInventoryWarehouseRelException
if it could not be found.remove
(long commerceInventoryWarehouseRelId) Removes the commerce inventory warehouse rel with the primary key from the database.void
Removes all the commerce inventory warehouse rels from the database.void
removeByC_C
(long classNameId, long commerceInventoryWarehouseId) Removes all the commerce inventory warehouse rels where classNameId = ? and commerceInventoryWarehouseId = ? from the database.removeByC_C_CIWI
(long classNameId, long classPK, long commerceInventoryWarehouseId) Removes the commerce inventory warehouse rel where classNameId = ? and classPK = ? and commerceInventoryWarehouseId = ? from the database.void
removeByCommerceInventoryWarehouseId
(long commerceInventoryWarehouseId) Removes all the commerce inventory warehouse rels where commerceInventoryWarehouseId = ? from the database.updateImpl
(CommerceInventoryWarehouseRel commerceInventoryWarehouseRel) 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
-
Method Details
-
findByCommerceInventoryWarehouseId
List<CommerceInventoryWarehouseRel> findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId) Returns all the commerce inventory warehouse rels where commerceInventoryWarehouseId = ?.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse ID- Returns:
- the matching commerce inventory warehouse rels
-
findByCommerceInventoryWarehouseId
List<CommerceInventoryWarehouseRel> findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId, int start, int end) Returns a range of all the commerce inventory warehouse rels where commerceInventoryWarehouseId = ?.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 fromCommerceInventoryWarehouseRelModelImpl
.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse IDstart
- the lower bound of the range of commerce inventory warehouse relsend
- the upper bound of the range of commerce inventory warehouse rels (not inclusive)- Returns:
- the range of matching commerce inventory warehouse rels
-
findByCommerceInventoryWarehouseId
List<CommerceInventoryWarehouseRel> findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) Returns an ordered range of all the commerce inventory warehouse rels where commerceInventoryWarehouseId = ?.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 fromCommerceInventoryWarehouseRelModelImpl
.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse IDstart
- the lower bound of the range of commerce inventory warehouse relsend
- the upper bound of the range of commerce inventory warehouse rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce inventory warehouse rels
-
findByCommerceInventoryWarehouseId
List<CommerceInventoryWarehouseRel> findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce inventory warehouse rels where commerceInventoryWarehouseId = ?.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 fromCommerceInventoryWarehouseRelModelImpl
.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse IDstart
- the lower bound of the range of commerce inventory warehouse relsend
- the upper bound of the range of commerce inventory warehouse 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 inventory warehouse rels
-
findByCommerceInventoryWarehouseId_First
CommerceInventoryWarehouseRel findByCommerceInventoryWarehouseId_First(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) throws NoSuchInventoryWarehouseRelException Returns the first commerce inventory warehouse rel in the ordered set where commerceInventoryWarehouseId = ?.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory warehouse rel
- Throws:
NoSuchInventoryWarehouseRelException
- if a matching commerce inventory warehouse rel could not be found
-
fetchByCommerceInventoryWarehouseId_First
CommerceInventoryWarehouseRel fetchByCommerceInventoryWarehouseId_First(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) Returns the first commerce inventory warehouse rel in the ordered set where commerceInventoryWarehouseId = ?.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory warehouse rel, or
null
if a matching commerce inventory warehouse rel could not be found
-
findByCommerceInventoryWarehouseId_Last
CommerceInventoryWarehouseRel findByCommerceInventoryWarehouseId_Last(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) throws NoSuchInventoryWarehouseRelException Returns the last commerce inventory warehouse rel in the ordered set where commerceInventoryWarehouseId = ?.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory warehouse rel
- Throws:
NoSuchInventoryWarehouseRelException
- if a matching commerce inventory warehouse rel could not be found
-
fetchByCommerceInventoryWarehouseId_Last
CommerceInventoryWarehouseRel fetchByCommerceInventoryWarehouseId_Last(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) Returns the last commerce inventory warehouse rel in the ordered set where commerceInventoryWarehouseId = ?.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory warehouse rel, or
null
if a matching commerce inventory warehouse rel could not be found
-
findByCommerceInventoryWarehouseId_PrevAndNext
CommerceInventoryWarehouseRel[] findByCommerceInventoryWarehouseId_PrevAndNext(long commerceInventoryWarehouseRelId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) throws NoSuchInventoryWarehouseRelException Returns the commerce inventory warehouse rels before and after the current commerce inventory warehouse rel in the ordered set where commerceInventoryWarehouseId = ?.- Parameters:
commerceInventoryWarehouseRelId
- the primary key of the current commerce inventory warehouse relcommerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce inventory warehouse rel
- Throws:
NoSuchInventoryWarehouseRelException
- if a commerce inventory warehouse rel with the primary key could not be found
-
removeByCommerceInventoryWarehouseId
void removeByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId) Removes all the commerce inventory warehouse rels where commerceInventoryWarehouseId = ? from the database.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse ID
-
countByCommerceInventoryWarehouseId
int countByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId) Returns the number of commerce inventory warehouse rels where commerceInventoryWarehouseId = ?.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse ID- Returns:
- the number of matching commerce inventory warehouse rels
-
findByC_C
Returns all the commerce inventory warehouse rels where classNameId = ? and commerceInventoryWarehouseId = ?.- Parameters:
classNameId
- the class name IDcommerceInventoryWarehouseId
- the commerce inventory warehouse ID- Returns:
- the matching commerce inventory warehouse rels
-
findByC_C
List<CommerceInventoryWarehouseRel> findByC_C(long classNameId, long commerceInventoryWarehouseId, int start, int end) Returns a range of all the commerce inventory warehouse rels where classNameId = ? and commerceInventoryWarehouseId = ?.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 fromCommerceInventoryWarehouseRelModelImpl
.- Parameters:
classNameId
- the class name IDcommerceInventoryWarehouseId
- the commerce inventory warehouse IDstart
- the lower bound of the range of commerce inventory warehouse relsend
- the upper bound of the range of commerce inventory warehouse rels (not inclusive)- Returns:
- the range of matching commerce inventory warehouse rels
-
findByC_C
List<CommerceInventoryWarehouseRel> findByC_C(long classNameId, long commerceInventoryWarehouseId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) Returns an ordered range of all the commerce inventory warehouse rels where classNameId = ? and commerceInventoryWarehouseId = ?.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 fromCommerceInventoryWarehouseRelModelImpl
.- Parameters:
classNameId
- the class name IDcommerceInventoryWarehouseId
- the commerce inventory warehouse IDstart
- the lower bound of the range of commerce inventory warehouse relsend
- the upper bound of the range of commerce inventory warehouse rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce inventory warehouse rels
-
findByC_C
List<CommerceInventoryWarehouseRel> findByC_C(long classNameId, long commerceInventoryWarehouseId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce inventory warehouse rels where classNameId = ? and commerceInventoryWarehouseId = ?.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 fromCommerceInventoryWarehouseRelModelImpl
.- Parameters:
classNameId
- the class name IDcommerceInventoryWarehouseId
- the commerce inventory warehouse IDstart
- the lower bound of the range of commerce inventory warehouse relsend
- the upper bound of the range of commerce inventory warehouse 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 inventory warehouse rels
-
findByC_C_First
CommerceInventoryWarehouseRel findByC_C_First(long classNameId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) throws NoSuchInventoryWarehouseRelException Returns the first commerce inventory warehouse rel in the ordered set where classNameId = ? and commerceInventoryWarehouseId = ?.- Parameters:
classNameId
- the class name IDcommerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory warehouse rel
- Throws:
NoSuchInventoryWarehouseRelException
- if a matching commerce inventory warehouse rel could not be found
-
fetchByC_C_First
CommerceInventoryWarehouseRel fetchByC_C_First(long classNameId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) Returns the first commerce inventory warehouse rel in the ordered set where classNameId = ? and commerceInventoryWarehouseId = ?.- Parameters:
classNameId
- the class name IDcommerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce inventory warehouse rel, or
null
if a matching commerce inventory warehouse rel could not be found
-
findByC_C_Last
CommerceInventoryWarehouseRel findByC_C_Last(long classNameId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) throws NoSuchInventoryWarehouseRelException Returns the last commerce inventory warehouse rel in the ordered set where classNameId = ? and commerceInventoryWarehouseId = ?.- Parameters:
classNameId
- the class name IDcommerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory warehouse rel
- Throws:
NoSuchInventoryWarehouseRelException
- if a matching commerce inventory warehouse rel could not be found
-
fetchByC_C_Last
CommerceInventoryWarehouseRel fetchByC_C_Last(long classNameId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) Returns the last commerce inventory warehouse rel in the ordered set where classNameId = ? and commerceInventoryWarehouseId = ?.- Parameters:
classNameId
- the class name IDcommerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce inventory warehouse rel, or
null
if a matching commerce inventory warehouse rel could not be found
-
findByC_C_PrevAndNext
CommerceInventoryWarehouseRel[] findByC_C_PrevAndNext(long commerceInventoryWarehouseRelId, long classNameId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) throws NoSuchInventoryWarehouseRelException Returns the commerce inventory warehouse rels before and after the current commerce inventory warehouse rel in the ordered set where classNameId = ? and commerceInventoryWarehouseId = ?.- Parameters:
commerceInventoryWarehouseRelId
- the primary key of the current commerce inventory warehouse relclassNameId
- the class name IDcommerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce inventory warehouse rel
- Throws:
NoSuchInventoryWarehouseRelException
- if a commerce inventory warehouse rel with the primary key could not be found
-
removeByC_C
void removeByC_C(long classNameId, long commerceInventoryWarehouseId) Removes all the commerce inventory warehouse rels where classNameId = ? and commerceInventoryWarehouseId = ? from the database.- Parameters:
classNameId
- the class name IDcommerceInventoryWarehouseId
- the commerce inventory warehouse ID
-
countByC_C
int countByC_C(long classNameId, long commerceInventoryWarehouseId) Returns the number of commerce inventory warehouse rels where classNameId = ? and commerceInventoryWarehouseId = ?.- Parameters:
classNameId
- the class name IDcommerceInventoryWarehouseId
- the commerce inventory warehouse ID- Returns:
- the number of matching commerce inventory warehouse rels
-
findByC_C_CIWI
CommerceInventoryWarehouseRel findByC_C_CIWI(long classNameId, long classPK, long commerceInventoryWarehouseId) throws NoSuchInventoryWarehouseRelException Returns the commerce inventory warehouse rel where classNameId = ? and classPK = ? and commerceInventoryWarehouseId = ? or throws aNoSuchInventoryWarehouseRelException
if it could not be found.- Parameters:
classNameId
- the class name IDclassPK
- the class pkcommerceInventoryWarehouseId
- the commerce inventory warehouse ID- Returns:
- the matching commerce inventory warehouse rel
- Throws:
NoSuchInventoryWarehouseRelException
- if a matching commerce inventory warehouse rel could not be found
-
fetchByC_C_CIWI
CommerceInventoryWarehouseRel fetchByC_C_CIWI(long classNameId, long classPK, long commerceInventoryWarehouseId) Returns the commerce inventory warehouse rel where classNameId = ? and classPK = ? and commerceInventoryWarehouseId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
classNameId
- the class name IDclassPK
- the class pkcommerceInventoryWarehouseId
- the commerce inventory warehouse ID- Returns:
- the matching commerce inventory warehouse rel, or
null
if a matching commerce inventory warehouse rel could not be found
-
fetchByC_C_CIWI
CommerceInventoryWarehouseRel fetchByC_C_CIWI(long classNameId, long classPK, long commerceInventoryWarehouseId, boolean useFinderCache) Returns the commerce inventory warehouse rel where classNameId = ? and classPK = ? and commerceInventoryWarehouseId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
classNameId
- the class name IDclassPK
- the class pkcommerceInventoryWarehouseId
- the commerce inventory warehouse IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce inventory warehouse rel, or
null
if a matching commerce inventory warehouse rel could not be found
-
removeByC_C_CIWI
CommerceInventoryWarehouseRel removeByC_C_CIWI(long classNameId, long classPK, long commerceInventoryWarehouseId) throws NoSuchInventoryWarehouseRelException Removes the commerce inventory warehouse rel where classNameId = ? and classPK = ? and commerceInventoryWarehouseId = ? from the database.- Parameters:
classNameId
- the class name IDclassPK
- the class pkcommerceInventoryWarehouseId
- the commerce inventory warehouse ID- Returns:
- the commerce inventory warehouse rel that was removed
- Throws:
NoSuchInventoryWarehouseRelException
-
countByC_C_CIWI
int countByC_C_CIWI(long classNameId, long classPK, long commerceInventoryWarehouseId) Returns the number of commerce inventory warehouse rels where classNameId = ? and classPK = ? and commerceInventoryWarehouseId = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkcommerceInventoryWarehouseId
- the commerce inventory warehouse ID- Returns:
- the number of matching commerce inventory warehouse rels
-
cacheResult
Caches the commerce inventory warehouse rel in the entity cache if it is enabled.- Parameters:
commerceInventoryWarehouseRel
- the commerce inventory warehouse rel
-
cacheResult
Caches the commerce inventory warehouse rels in the entity cache if it is enabled.- Parameters:
commerceInventoryWarehouseRels
- the commerce inventory warehouse rels
-
create
Creates a new commerce inventory warehouse rel with the primary key. Does not add the commerce inventory warehouse rel to the database.- Parameters:
commerceInventoryWarehouseRelId
- the primary key for the new commerce inventory warehouse rel- Returns:
- the new commerce inventory warehouse rel
-
remove
CommerceInventoryWarehouseRel remove(long commerceInventoryWarehouseRelId) throws NoSuchInventoryWarehouseRelException Removes the commerce inventory warehouse rel with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceInventoryWarehouseRelId
- the primary key of the commerce inventory warehouse rel- Returns:
- the commerce inventory warehouse rel that was removed
- Throws:
NoSuchInventoryWarehouseRelException
- if a commerce inventory warehouse rel with the primary key could not be found
-
updateImpl
CommerceInventoryWarehouseRel updateImpl(CommerceInventoryWarehouseRel commerceInventoryWarehouseRel) -
findByPrimaryKey
CommerceInventoryWarehouseRel findByPrimaryKey(long commerceInventoryWarehouseRelId) throws NoSuchInventoryWarehouseRelException Returns the commerce inventory warehouse rel with the primary key or throws aNoSuchInventoryWarehouseRelException
if it could not be found.- Parameters:
commerceInventoryWarehouseRelId
- the primary key of the commerce inventory warehouse rel- Returns:
- the commerce inventory warehouse rel
- Throws:
NoSuchInventoryWarehouseRelException
- if a commerce inventory warehouse rel with the primary key could not be found
-
fetchByPrimaryKey
Returns the commerce inventory warehouse rel with the primary key or returnsnull
if it could not be found.- Parameters:
commerceInventoryWarehouseRelId
- the primary key of the commerce inventory warehouse rel- Returns:
- the commerce inventory warehouse rel, or
null
if a commerce inventory warehouse rel with the primary key could not be found
-
findAll
List<CommerceInventoryWarehouseRel> findAll()Returns all the commerce inventory warehouse rels.- Returns:
- the commerce inventory warehouse rels
-
findAll
Returns a range of all the commerce inventory warehouse 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 fromCommerceInventoryWarehouseRelModelImpl
.- Parameters:
start
- the lower bound of the range of commerce inventory warehouse relsend
- the upper bound of the range of commerce inventory warehouse rels (not inclusive)- Returns:
- the range of commerce inventory warehouse rels
-
findAll
List<CommerceInventoryWarehouseRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) Returns an ordered range of all the commerce inventory warehouse 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 fromCommerceInventoryWarehouseRelModelImpl
.- Parameters:
start
- the lower bound of the range of commerce inventory warehouse relsend
- the upper bound of the range of commerce inventory warehouse rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of commerce inventory warehouse rels
-
findAll
List<CommerceInventoryWarehouseRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce inventory warehouse 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 fromCommerceInventoryWarehouseRelModelImpl
.- Parameters:
start
- the lower bound of the range of commerce inventory warehouse relsend
- the upper bound of the range of commerce inventory warehouse 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 inventory warehouse rels
-
removeAll
void removeAll()Removes all the commerce inventory warehouse rels from the database. -
countAll
int countAll()Returns the number of commerce inventory warehouse rels.- Returns:
- the number of commerce inventory warehouse rels
-