Class CommerceInventoryWarehouseRelUtil
com.liferay.commerce.inventory.service.persistence.impl.CommerceInventoryWarehouseRelPersistenceImpl
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
(CommerceInventoryWarehouseRel commerceInventoryWarehouseRel) Caches the commerce inventory warehouse rel in the entity cache if it is enabled.static void
cacheResult
(List<CommerceInventoryWarehouseRel> commerceInventoryWarehouseRels) Caches the commerce inventory warehouse rels in the entity cache if it is enabled.static void
static void
clearCache
(CommerceInventoryWarehouseRel commerceInventoryWarehouseRel) static int
countAll()
Returns the number of commerce inventory warehouse rels.static int
countByC_C
(long classNameId, long commerceInventoryWarehouseId) Returns the number of commerce inventory warehouse rels where classNameId = ? and commerceInventoryWarehouseId = ?.static int
countByC_C_CIWI
(long classNameId, long classPK, long commerceInventoryWarehouseId) Returns the number of commerce inventory warehouse rels where classNameId = ? and classPK = ? and commerceInventoryWarehouseId = ?.static int
countByCommerceInventoryWarehouseId
(long commerceInventoryWarehouseId) Returns the number of commerce inventory warehouse rels where commerceInventoryWarehouseId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 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.fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static List<CommerceInventoryWarehouseRel>
findAll()
Returns all the commerce inventory warehouse rels.static List<CommerceInventoryWarehouseRel>
findAll
(int start, int end) Returns a range of all the commerce inventory warehouse rels.static 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.static 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.static List<CommerceInventoryWarehouseRel>
findByC_C
(long classNameId, long commerceInventoryWarehouseId) Returns all the commerce inventory warehouse rels where classNameId = ? and commerceInventoryWarehouseId = ?.static 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 = ?.static 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 = ?.static 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 = ?.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 = ?.static CommerceInventoryWarehouseRel[]
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 = ?.static List<CommerceInventoryWarehouseRel>
findByCommerceInventoryWarehouseId
(long commerceInventoryWarehouseId) Returns all the commerce inventory warehouse rels where commerceInventoryWarehouseId = ?.static List<CommerceInventoryWarehouseRel>
findByCommerceInventoryWarehouseId
(long commerceInventoryWarehouseId, int start, int end) Returns a range of all the commerce inventory warehouse rels where commerceInventoryWarehouseId = ?.static 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 = ?.static 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 = ?.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 = ?.static CommerceInventoryWarehouseRel[]
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.static List<CommerceInventoryWarehouseRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceInventoryWarehouseRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceInventoryWarehouseRel>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) remove
(long commerceInventoryWarehouseRelId) Removes the commerce inventory warehouse rel with the primary key from the database.static void
Removes all the commerce inventory warehouse rels from the database.static 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.static void
removeByCommerceInventoryWarehouseId
(long commerceInventoryWarehouseId) Removes all the commerce inventory warehouse rels where commerceInventoryWarehouseId = ? from the database.static void
setPersistence
(CommerceInventoryWarehouseRelPersistence persistence) update
(CommerceInventoryWarehouseRel commerceInventoryWarehouseRel) update
(CommerceInventoryWarehouseRel commerceInventoryWarehouseRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateImpl
(CommerceInventoryWarehouseRel commerceInventoryWarehouseRel)
-
Constructor Details
-
CommerceInventoryWarehouseRelUtil
public CommerceInventoryWarehouseRelUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
public static Map<Serializable,CommerceInventoryWarehouseRel> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommerceInventoryWarehouseRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommerceInventoryWarehouseRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommerceInventoryWarehouseRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
public static CommerceInventoryWarehouseRel update(CommerceInventoryWarehouseRel commerceInventoryWarehouseRel) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommerceInventoryWarehouseRel update(CommerceInventoryWarehouseRel commerceInventoryWarehouseRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByCommerceInventoryWarehouseId
public static 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
public static 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
public static 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
public static 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
public static 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 foundNoSuchInventoryWarehouseRelException
-
fetchByCommerceInventoryWarehouseId_First
public static 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
public static 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 foundNoSuchInventoryWarehouseRelException
-
fetchByCommerceInventoryWarehouseId_Last
public static 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
public static 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 foundNoSuchInventoryWarehouseRelException
-
removeByCommerceInventoryWarehouseId
public static void removeByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId) Removes all the commerce inventory warehouse rels where commerceInventoryWarehouseId = ? from the database.- Parameters:
commerceInventoryWarehouseId
- the commerce inventory warehouse ID
-
countByCommerceInventoryWarehouseId
public static 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
public static List<CommerceInventoryWarehouseRel> findByC_C(long classNameId, long commerceInventoryWarehouseId) 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
public static 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
public static 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
public static 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
public static 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 foundNoSuchInventoryWarehouseRelException
-
fetchByC_C_First
public static 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
public static 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 foundNoSuchInventoryWarehouseRelException
-
fetchByC_C_Last
public static 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
public static 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 foundNoSuchInventoryWarehouseRelException
-
removeByC_C
public static 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
public static 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
public static 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 foundNoSuchInventoryWarehouseRelException
-
fetchByC_C_CIWI
public static 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
public static 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
public static 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
public static 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
public static 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 foundNoSuchInventoryWarehouseRelException
-
updateImpl
public static CommerceInventoryWarehouseRel updateImpl(CommerceInventoryWarehouseRel commerceInventoryWarehouseRel) -
findByPrimaryKey
public static 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 foundNoSuchInventoryWarehouseRelException
-
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
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
public static 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
public static 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
public static void removeAll()Removes all the commerce inventory warehouse rels from the database. -
countAll
public static int countAll()Returns the number of commerce inventory warehouse rels.- Returns:
- the number of commerce inventory warehouse rels
-
getPersistence
-
setPersistence
-