public class CommerceInventoryWarehouseRelUtil
extends java.lang.Object
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
CommerceInventoryWarehouseRelPersistence
Constructor and Description |
---|
CommerceInventoryWarehouseRelUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommerceInventoryWarehouseRel commerceInventoryWarehouseRel)
Caches the commerce inventory warehouse rel in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceInventoryWarehouseRel> commerceInventoryWarehouseRels)
Caches the commerce inventory warehouse rels in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceInventoryWarehouseRel commerceInventoryWarehouseRel) |
static int |
countAll()
Returns the number of commerce inventory warehouse rels.
|
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 |
countByC_C(long classNameId,
long commerceInventoryWarehouseId)
Returns the number of commerce inventory warehouse rels where classNameId = ? 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) |
static CommerceInventoryWarehouseRel |
create(long commerceInventoryWarehouseRelId)
Creates a new commerce inventory warehouse rel with the primary key.
|
static CommerceInventoryWarehouseRel |
fetchByC_C_CIWI(long classNameId,
long classPK,
long commerceInventoryWarehouseId)
Returns the commerce inventory warehouse rel where classNameId = ? and classPK = ? and commerceInventoryWarehouseId = ? or returns
null if it could not be found. |
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 returns
null if it could not be found, optionally using the finder cache. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
static CommerceInventoryWarehouseRel |
fetchByPrimaryKey(long commerceInventoryWarehouseRelId)
Returns the commerce inventory warehouse rel with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceInventoryWarehouseRel> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CommerceInventoryWarehouseRel> |
findAll()
Returns all the commerce inventory warehouse rels.
|
static java.util.List<CommerceInventoryWarehouseRel> |
findAll(int start,
int end)
Returns a range of all the commerce inventory warehouse rels.
|
static java.util.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 java.util.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 CommerceInventoryWarehouseRel |
findByC_C_CIWI(long classNameId,
long classPK,
long commerceInventoryWarehouseId)
Returns the commerce inventory warehouse rel where classNameId = ? and classPK = ? and commerceInventoryWarehouseId = ? or throws a
NoSuchInventoryWarehouseRelException if it could not be found. |
static CommerceInventoryWarehouseRel |
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 = ?.
|
static CommerceInventoryWarehouseRel |
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 java.util.List<CommerceInventoryWarehouseRel> |
findByC_C(long classNameId,
long commerceInventoryWarehouseId)
Returns all the commerce inventory warehouse rels where classNameId = ? and commerceInventoryWarehouseId = ?.
|
static java.util.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 java.util.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 java.util.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 = ?.
|
static CommerceInventoryWarehouseRel |
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 = ?.
|
static CommerceInventoryWarehouseRel |
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 = ?.
|
static java.util.List<CommerceInventoryWarehouseRel> |
findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId)
Returns all the commerce inventory warehouse rels where commerceInventoryWarehouseId = ?.
|
static java.util.List<CommerceInventoryWarehouseRel> |
findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId,
int start,
int end)
Returns a range of all the commerce inventory warehouse rels where commerceInventoryWarehouseId = ?.
|
static java.util.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 java.util.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 = ?.
|
static CommerceInventoryWarehouseRel |
findByPrimaryKey(long commerceInventoryWarehouseRelId)
Returns the commerce inventory warehouse rel with the primary key or throws a
NoSuchInventoryWarehouseRelException if it could not be found. |
static java.util.List<CommerceInventoryWarehouseRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceInventoryWarehouseRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceInventoryWarehouseRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) |
static CommerceInventoryWarehouseRelPersistence |
getPersistence() |
static CommerceInventoryWarehouseRel |
remove(long commerceInventoryWarehouseRelId)
Removes the commerce inventory warehouse rel with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce inventory warehouse rels from the database.
|
static CommerceInventoryWarehouseRel |
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 |
removeByC_C(long classNameId,
long commerceInventoryWarehouseId)
Removes all the commerce inventory warehouse rels where classNameId = ? 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) |
static CommerceInventoryWarehouseRel |
update(CommerceInventoryWarehouseRel commerceInventoryWarehouseRel) |
static CommerceInventoryWarehouseRel |
update(CommerceInventoryWarehouseRel commerceInventoryWarehouseRel,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceInventoryWarehouseRel |
updateImpl(CommerceInventoryWarehouseRel commerceInventoryWarehouseRel) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommerceInventoryWarehouseRel commerceInventoryWarehouseRel)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CommerceInventoryWarehouseRel> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommerceInventoryWarehouseRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommerceInventoryWarehouseRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommerceInventoryWarehouseRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommerceInventoryWarehouseRel update(CommerceInventoryWarehouseRel commerceInventoryWarehouseRel)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommerceInventoryWarehouseRel update(CommerceInventoryWarehouseRel commerceInventoryWarehouseRel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommerceInventoryWarehouseRel> findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId)
commerceInventoryWarehouseId
- the commerce inventory warehouse IDpublic static java.util.List<CommerceInventoryWarehouseRel> findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseRelModelImpl
.
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)public static java.util.List<CommerceInventoryWarehouseRel> findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseRelModelImpl
.
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 (optionally null
)public static java.util.List<CommerceInventoryWarehouseRel> findByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseRelModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceInventoryWarehouseRel findByCommerceInventoryWarehouseId_First(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) throws NoSuchInventoryWarehouseRelException
commerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryWarehouseRelException
- if a matching commerce inventory warehouse rel could not be foundpublic static CommerceInventoryWarehouseRel fetchByCommerceInventoryWarehouseId_First(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator)
commerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory warehouse rel could not be foundpublic static CommerceInventoryWarehouseRel findByCommerceInventoryWarehouseId_Last(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) throws NoSuchInventoryWarehouseRelException
commerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryWarehouseRelException
- if a matching commerce inventory warehouse rel could not be foundpublic static CommerceInventoryWarehouseRel fetchByCommerceInventoryWarehouseId_Last(long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator)
commerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory warehouse rel could not be foundpublic static CommerceInventoryWarehouseRel[] findByCommerceInventoryWarehouseId_PrevAndNext(long commerceInventoryWarehouseRelId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) throws NoSuchInventoryWarehouseRelException
commerceInventoryWarehouseRelId
- the primary key of the current commerce inventory warehouse relcommerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryWarehouseRelException
- if a commerce inventory warehouse rel with the primary key could not be foundpublic static void removeByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId)
commerceInventoryWarehouseId
- the commerce inventory warehouse IDpublic static int countByCommerceInventoryWarehouseId(long commerceInventoryWarehouseId)
commerceInventoryWarehouseId
- the commerce inventory warehouse IDpublic static java.util.List<CommerceInventoryWarehouseRel> findByC_C(long classNameId, long commerceInventoryWarehouseId)
classNameId
- the class name IDcommerceInventoryWarehouseId
- the commerce inventory warehouse IDpublic static java.util.List<CommerceInventoryWarehouseRel> findByC_C(long classNameId, long commerceInventoryWarehouseId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseRelModelImpl
.
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)public static java.util.List<CommerceInventoryWarehouseRel> findByC_C(long classNameId, long commerceInventoryWarehouseId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseRelModelImpl
.
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 (optionally null
)public static java.util.List<CommerceInventoryWarehouseRel> findByC_C(long classNameId, long commerceInventoryWarehouseId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseRelModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceInventoryWarehouseRel findByC_C_First(long classNameId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) throws NoSuchInventoryWarehouseRelException
classNameId
- the class name IDcommerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryWarehouseRelException
- if a matching commerce inventory warehouse rel could not be foundpublic static CommerceInventoryWarehouseRel fetchByC_C_First(long classNameId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator)
classNameId
- the class name IDcommerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory warehouse rel could not be foundpublic static CommerceInventoryWarehouseRel findByC_C_Last(long classNameId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) throws NoSuchInventoryWarehouseRelException
classNameId
- the class name IDcommerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchInventoryWarehouseRelException
- if a matching commerce inventory warehouse rel could not be foundpublic static CommerceInventoryWarehouseRel fetchByC_C_Last(long classNameId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator)
classNameId
- the class name IDcommerceInventoryWarehouseId
- the commerce inventory warehouse IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce inventory warehouse rel could not be foundpublic static CommerceInventoryWarehouseRel[] findByC_C_PrevAndNext(long commerceInventoryWarehouseRelId, long classNameId, long commerceInventoryWarehouseId, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator) throws NoSuchInventoryWarehouseRelException
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 (optionally null
)NoSuchInventoryWarehouseRelException
- if a commerce inventory warehouse rel with the primary key could not be foundpublic static void removeByC_C(long classNameId, long commerceInventoryWarehouseId)
classNameId
- the class name IDcommerceInventoryWarehouseId
- the commerce inventory warehouse IDpublic static int countByC_C(long classNameId, long commerceInventoryWarehouseId)
classNameId
- the class name IDcommerceInventoryWarehouseId
- the commerce inventory warehouse IDpublic static CommerceInventoryWarehouseRel findByC_C_CIWI(long classNameId, long classPK, long commerceInventoryWarehouseId) throws NoSuchInventoryWarehouseRelException
NoSuchInventoryWarehouseRelException
if it could not be found.classNameId
- the class name IDclassPK
- the class pkcommerceInventoryWarehouseId
- the commerce inventory warehouse IDNoSuchInventoryWarehouseRelException
- if a matching commerce inventory warehouse rel could not be foundpublic static CommerceInventoryWarehouseRel fetchByC_C_CIWI(long classNameId, long classPK, long commerceInventoryWarehouseId)
null
if it could not be found. Uses the finder cache.classNameId
- the class name IDclassPK
- the class pkcommerceInventoryWarehouseId
- the commerce inventory warehouse IDnull
if a matching commerce inventory warehouse rel could not be foundpublic static CommerceInventoryWarehouseRel fetchByC_C_CIWI(long classNameId, long classPK, long commerceInventoryWarehouseId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.classNameId
- the class name IDclassPK
- the class pkcommerceInventoryWarehouseId
- the commerce inventory warehouse IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce inventory warehouse rel could not be foundpublic static CommerceInventoryWarehouseRel removeByC_C_CIWI(long classNameId, long classPK, long commerceInventoryWarehouseId) throws NoSuchInventoryWarehouseRelException
classNameId
- the class name IDclassPK
- the class pkcommerceInventoryWarehouseId
- the commerce inventory warehouse IDNoSuchInventoryWarehouseRelException
public static int countByC_C_CIWI(long classNameId, long classPK, long commerceInventoryWarehouseId)
classNameId
- the class name IDclassPK
- the class pkcommerceInventoryWarehouseId
- the commerce inventory warehouse IDpublic static void cacheResult(CommerceInventoryWarehouseRel commerceInventoryWarehouseRel)
commerceInventoryWarehouseRel
- the commerce inventory warehouse relpublic static void cacheResult(java.util.List<CommerceInventoryWarehouseRel> commerceInventoryWarehouseRels)
commerceInventoryWarehouseRels
- the commerce inventory warehouse relspublic static CommerceInventoryWarehouseRel create(long commerceInventoryWarehouseRelId)
commerceInventoryWarehouseRelId
- the primary key for the new commerce inventory warehouse relpublic static CommerceInventoryWarehouseRel remove(long commerceInventoryWarehouseRelId) throws NoSuchInventoryWarehouseRelException
commerceInventoryWarehouseRelId
- the primary key of the commerce inventory warehouse relNoSuchInventoryWarehouseRelException
- if a commerce inventory warehouse rel with the primary key could not be foundpublic static CommerceInventoryWarehouseRel updateImpl(CommerceInventoryWarehouseRel commerceInventoryWarehouseRel)
public static CommerceInventoryWarehouseRel findByPrimaryKey(long commerceInventoryWarehouseRelId) throws NoSuchInventoryWarehouseRelException
NoSuchInventoryWarehouseRelException
if it could not be found.commerceInventoryWarehouseRelId
- the primary key of the commerce inventory warehouse relNoSuchInventoryWarehouseRelException
- if a commerce inventory warehouse rel with the primary key could not be foundpublic static CommerceInventoryWarehouseRel fetchByPrimaryKey(long commerceInventoryWarehouseRelId)
null
if it could not be found.commerceInventoryWarehouseRelId
- the primary key of the commerce inventory warehouse relnull
if a commerce inventory warehouse rel with the primary key could not be foundpublic static java.util.List<CommerceInventoryWarehouseRel> findAll()
public static java.util.List<CommerceInventoryWarehouseRel> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseRelModelImpl
.
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)public static java.util.List<CommerceInventoryWarehouseRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseRelModelImpl
.
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 (optionally null
)public static java.util.List<CommerceInventoryWarehouseRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceInventoryWarehouseRel> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceInventoryWarehouseRelModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CommerceInventoryWarehouseRelPersistence getPersistence()
public static void setPersistence(CommerceInventoryWarehouseRelPersistence persistence)