@ProviderType
public class CommerceWarehouseUtil
extends java.lang.Object
com.liferay.commerce.service.persistence.impl.CommerceWarehousePersistenceImpl 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
CommerceWarehousePersistence,
com.liferay.commerce.service.persistence.impl.CommerceWarehousePersistenceImpl| Constructor and Description |
|---|
CommerceWarehouseUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(CommerceWarehouse commerceWarehouse)
Caches the commerce warehouse in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceWarehouse> commerceWarehouses)
Caches the commerce warehouses in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceWarehouse commerceWarehouse) |
static int |
countAll()
Returns the number of commerce warehouses.
|
static int |
countByG_A_C(long groupId,
boolean active,
long commerceCountryId)
Returns the number of commerce warehouses where groupId = ? and active = ? and commerceCountryId = ?.
|
static int |
countByG_A(long groupId,
boolean active)
Returns the number of commerce warehouses where groupId = ? and active = ?.
|
static int |
countByG_C(long groupId,
long commerceCountryId)
Returns the number of commerce warehouses where groupId = ? and commerceCountryId = ?.
|
static int |
countByG_P(long groupId,
boolean primary)
Returns the number of commerce warehouses where groupId = ? and primary = ?.
|
static int |
countByGroupId(long groupId)
Returns the number of commerce warehouses where groupId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceWarehouse |
create(long commerceWarehouseId)
Creates a new commerce warehouse with the primary key.
|
static CommerceWarehouse |
fetchByG_A_C_First(long groupId,
boolean active,
long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns the first commerce warehouse in the ordered set where groupId = ? and active = ? and commerceCountryId = ?.
|
static CommerceWarehouse |
fetchByG_A_C_Last(long groupId,
boolean active,
long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns the last commerce warehouse in the ordered set where groupId = ? and active = ? and commerceCountryId = ?.
|
static CommerceWarehouse |
fetchByG_A_First(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns the first commerce warehouse in the ordered set where groupId = ? and active = ?.
|
static CommerceWarehouse |
fetchByG_A_Last(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns the last commerce warehouse in the ordered set where groupId = ? and active = ?.
|
static CommerceWarehouse |
fetchByG_C_First(long groupId,
long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns the first commerce warehouse in the ordered set where groupId = ? and commerceCountryId = ?.
|
static CommerceWarehouse |
fetchByG_C_Last(long groupId,
long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns the last commerce warehouse in the ordered set where groupId = ? and commerceCountryId = ?.
|
static CommerceWarehouse |
fetchByG_P_First(long groupId,
boolean primary,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns the first commerce warehouse in the ordered set where groupId = ? and primary = ?.
|
static CommerceWarehouse |
fetchByG_P_Last(long groupId,
boolean primary,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns the last commerce warehouse in the ordered set where groupId = ? and primary = ?.
|
static CommerceWarehouse |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns the first commerce warehouse in the ordered set where groupId = ?.
|
static CommerceWarehouse |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns the last commerce warehouse in the ordered set where groupId = ?.
|
static CommerceWarehouse |
fetchByPrimaryKey(long commerceWarehouseId)
Returns the commerce warehouse with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceWarehouse> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CommerceWarehouse> |
findAll()
Returns all the commerce warehouses.
|
static java.util.List<CommerceWarehouse> |
findAll(int start,
int end)
Returns a range of all the commerce warehouses.
|
static java.util.List<CommerceWarehouse> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns an ordered range of all the commerce warehouses.
|
static java.util.List<CommerceWarehouse> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce warehouses.
|
static CommerceWarehouse |
findByG_A_C_First(long groupId,
boolean active,
long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns the first commerce warehouse in the ordered set where groupId = ? and active = ? and commerceCountryId = ?.
|
static CommerceWarehouse |
findByG_A_C_Last(long groupId,
boolean active,
long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns the last commerce warehouse in the ordered set where groupId = ? and active = ? and commerceCountryId = ?.
|
static CommerceWarehouse[] |
findByG_A_C_PrevAndNext(long commerceWarehouseId,
long groupId,
boolean active,
long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns the commerce warehouses before and after the current commerce warehouse in the ordered set where groupId = ? and active = ? and commerceCountryId = ?.
|
static java.util.List<CommerceWarehouse> |
findByG_A_C(long groupId,
boolean active,
long commerceCountryId)
Returns all the commerce warehouses where groupId = ? and active = ? and commerceCountryId = ?.
|
static java.util.List<CommerceWarehouse> |
findByG_A_C(long groupId,
boolean active,
long commerceCountryId,
int start,
int end)
Returns a range of all the commerce warehouses where groupId = ? and active = ? and commerceCountryId = ?.
|
static java.util.List<CommerceWarehouse> |
findByG_A_C(long groupId,
boolean active,
long commerceCountryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns an ordered range of all the commerce warehouses where groupId = ? and active = ? and commerceCountryId = ?.
|
static java.util.List<CommerceWarehouse> |
findByG_A_C(long groupId,
boolean active,
long commerceCountryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce warehouses where groupId = ? and active = ? and commerceCountryId = ?.
|
static CommerceWarehouse |
findByG_A_First(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns the first commerce warehouse in the ordered set where groupId = ? and active = ?.
|
static CommerceWarehouse |
findByG_A_Last(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns the last commerce warehouse in the ordered set where groupId = ? and active = ?.
|
static CommerceWarehouse[] |
findByG_A_PrevAndNext(long commerceWarehouseId,
long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns the commerce warehouses before and after the current commerce warehouse in the ordered set where groupId = ? and active = ?.
|
static java.util.List<CommerceWarehouse> |
findByG_A(long groupId,
boolean active)
Returns all the commerce warehouses where groupId = ? and active = ?.
|
static java.util.List<CommerceWarehouse> |
findByG_A(long groupId,
boolean active,
int start,
int end)
Returns a range of all the commerce warehouses where groupId = ? and active = ?.
|
static java.util.List<CommerceWarehouse> |
findByG_A(long groupId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns an ordered range of all the commerce warehouses where groupId = ? and active = ?.
|
static java.util.List<CommerceWarehouse> |
findByG_A(long groupId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce warehouses where groupId = ? and active = ?.
|
static CommerceWarehouse |
findByG_C_First(long groupId,
long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns the first commerce warehouse in the ordered set where groupId = ? and commerceCountryId = ?.
|
static CommerceWarehouse |
findByG_C_Last(long groupId,
long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns the last commerce warehouse in the ordered set where groupId = ? and commerceCountryId = ?.
|
static CommerceWarehouse[] |
findByG_C_PrevAndNext(long commerceWarehouseId,
long groupId,
long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns the commerce warehouses before and after the current commerce warehouse in the ordered set where groupId = ? and commerceCountryId = ?.
|
static java.util.List<CommerceWarehouse> |
findByG_C(long groupId,
long commerceCountryId)
Returns all the commerce warehouses where groupId = ? and commerceCountryId = ?.
|
static java.util.List<CommerceWarehouse> |
findByG_C(long groupId,
long commerceCountryId,
int start,
int end)
Returns a range of all the commerce warehouses where groupId = ? and commerceCountryId = ?.
|
static java.util.List<CommerceWarehouse> |
findByG_C(long groupId,
long commerceCountryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns an ordered range of all the commerce warehouses where groupId = ? and commerceCountryId = ?.
|
static java.util.List<CommerceWarehouse> |
findByG_C(long groupId,
long commerceCountryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce warehouses where groupId = ? and commerceCountryId = ?.
|
static CommerceWarehouse |
findByG_P_First(long groupId,
boolean primary,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns the first commerce warehouse in the ordered set where groupId = ? and primary = ?.
|
static CommerceWarehouse |
findByG_P_Last(long groupId,
boolean primary,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns the last commerce warehouse in the ordered set where groupId = ? and primary = ?.
|
static CommerceWarehouse[] |
findByG_P_PrevAndNext(long commerceWarehouseId,
long groupId,
boolean primary,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns the commerce warehouses before and after the current commerce warehouse in the ordered set where groupId = ? and primary = ?.
|
static java.util.List<CommerceWarehouse> |
findByG_P(long groupId,
boolean primary)
Returns all the commerce warehouses where groupId = ? and primary = ?.
|
static java.util.List<CommerceWarehouse> |
findByG_P(long groupId,
boolean primary,
int start,
int end)
Returns a range of all the commerce warehouses where groupId = ? and primary = ?.
|
static java.util.List<CommerceWarehouse> |
findByG_P(long groupId,
boolean primary,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns an ordered range of all the commerce warehouses where groupId = ? and primary = ?.
|
static java.util.List<CommerceWarehouse> |
findByG_P(long groupId,
boolean primary,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce warehouses where groupId = ? and primary = ?.
|
static CommerceWarehouse |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns the first commerce warehouse in the ordered set where groupId = ?.
|
static CommerceWarehouse |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns the last commerce warehouse in the ordered set where groupId = ?.
|
static CommerceWarehouse[] |
findByGroupId_PrevAndNext(long commerceWarehouseId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns the commerce warehouses before and after the current commerce warehouse in the ordered set where groupId = ?.
|
static java.util.List<CommerceWarehouse> |
findByGroupId(long groupId)
Returns all the commerce warehouses where groupId = ?.
|
static java.util.List<CommerceWarehouse> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the commerce warehouses where groupId = ?.
|
static java.util.List<CommerceWarehouse> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
Returns an ordered range of all the commerce warehouses where groupId = ?.
|
static java.util.List<CommerceWarehouse> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce warehouses where groupId = ?.
|
static CommerceWarehouse |
findByPrimaryKey(long commerceWarehouseId)
Returns the commerce warehouse with the primary key or throws a
NoSuchWarehouseException if it could not be found. |
static java.util.List<CommerceWarehouse> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceWarehouse> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceWarehouse> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator) |
static java.util.Set<java.lang.String> |
getBadColumnNames() |
static CommerceWarehousePersistence |
getPersistence() |
static CommerceWarehouse |
remove(long commerceWarehouseId)
Removes the commerce warehouse with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce warehouses from the database.
|
static void |
removeByG_A_C(long groupId,
boolean active,
long commerceCountryId)
Removes all the commerce warehouses where groupId = ? and active = ? and commerceCountryId = ? from the database.
|
static void |
removeByG_A(long groupId,
boolean active)
Removes all the commerce warehouses where groupId = ? and active = ? from the database.
|
static void |
removeByG_C(long groupId,
long commerceCountryId)
Removes all the commerce warehouses where groupId = ? and commerceCountryId = ? from the database.
|
static void |
removeByG_P(long groupId,
boolean primary)
Removes all the commerce warehouses where groupId = ? and primary = ? from the database.
|
static void |
removeByGroupId(long groupId)
Removes all the commerce warehouses where groupId = ? from the database.
|
static CommerceWarehouse |
update(CommerceWarehouse commerceWarehouse) |
static CommerceWarehouse |
update(CommerceWarehouse commerceWarehouse,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceWarehouse |
updateImpl(CommerceWarehouse commerceWarehouse) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(CommerceWarehouse commerceWarehouse)
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.List<CommerceWarehouse> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<CommerceWarehouse> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)public static java.util.List<CommerceWarehouse> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static CommerceWarehouse update(CommerceWarehouse commerceWarehouse)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)public static CommerceWarehouse update(CommerceWarehouse commerceWarehouse, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)public static java.util.List<CommerceWarehouse> findByGroupId(long groupId)
groupId - the group IDpublic static java.util.List<CommerceWarehouse> findByGroupId(long groupId, 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceWarehouseModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of commerce warehousesend - the upper bound of the range of commerce warehouses (not inclusive)public static java.util.List<CommerceWarehouse> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceWarehouseModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of commerce warehousesend - the upper bound of the range of commerce warehouses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceWarehouse> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceWarehouseModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of commerce warehousesend - the upper bound of the range of commerce warehouses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static CommerceWarehouse findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator) throws NoSuchWarehouseException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchWarehouseException - if a matching commerce warehouse could not be foundpublic static CommerceWarehouse fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce warehouse could not be foundpublic static CommerceWarehouse findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator) throws NoSuchWarehouseException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchWarehouseException - if a matching commerce warehouse could not be foundpublic static CommerceWarehouse fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce warehouse could not be foundpublic static CommerceWarehouse[] findByGroupId_PrevAndNext(long commerceWarehouseId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator) throws NoSuchWarehouseException
commerceWarehouseId - the primary key of the current commerce warehousegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchWarehouseException - if a commerce warehouse with the primary key could not be foundpublic static void removeByGroupId(long groupId)
groupId - the group IDpublic static int countByGroupId(long groupId)
groupId - the group IDpublic static java.util.List<CommerceWarehouse> findByG_A(long groupId, boolean active)
groupId - the group IDactive - the activepublic static java.util.List<CommerceWarehouse> findByG_A(long groupId, boolean active, 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceWarehouseModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDactive - the activestart - the lower bound of the range of commerce warehousesend - the upper bound of the range of commerce warehouses (not inclusive)public static java.util.List<CommerceWarehouse> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceWarehouseModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDactive - the activestart - the lower bound of the range of commerce warehousesend - the upper bound of the range of commerce warehouses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceWarehouse> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceWarehouseModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDactive - the activestart - the lower bound of the range of commerce warehousesend - the upper bound of the range of commerce warehouses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static CommerceWarehouse findByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator) throws NoSuchWarehouseException
groupId - the group IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchWarehouseException - if a matching commerce warehouse could not be foundpublic static CommerceWarehouse fetchByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
groupId - the group IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce warehouse could not be foundpublic static CommerceWarehouse findByG_A_Last(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator) throws NoSuchWarehouseException
groupId - the group IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchWarehouseException - if a matching commerce warehouse could not be foundpublic static CommerceWarehouse fetchByG_A_Last(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
groupId - the group IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce warehouse could not be foundpublic static CommerceWarehouse[] findByG_A_PrevAndNext(long commerceWarehouseId, long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator) throws NoSuchWarehouseException
commerceWarehouseId - the primary key of the current commerce warehousegroupId - the group IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchWarehouseException - if a commerce warehouse with the primary key could not be foundpublic static void removeByG_A(long groupId,
boolean active)
groupId - the group IDactive - the activepublic static int countByG_A(long groupId,
boolean active)
groupId - the group IDactive - the activepublic static java.util.List<CommerceWarehouse> findByG_C(long groupId, long commerceCountryId)
groupId - the group IDcommerceCountryId - the commerce country IDpublic static java.util.List<CommerceWarehouse> findByG_C(long groupId, long commerceCountryId, 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceWarehouseModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDcommerceCountryId - the commerce country IDstart - the lower bound of the range of commerce warehousesend - the upper bound of the range of commerce warehouses (not inclusive)public static java.util.List<CommerceWarehouse> findByG_C(long groupId, long commerceCountryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceWarehouseModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDcommerceCountryId - the commerce country IDstart - the lower bound of the range of commerce warehousesend - the upper bound of the range of commerce warehouses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceWarehouse> findByG_C(long groupId, long commerceCountryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceWarehouseModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDcommerceCountryId - the commerce country IDstart - the lower bound of the range of commerce warehousesend - the upper bound of the range of commerce warehouses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static CommerceWarehouse findByG_C_First(long groupId, long commerceCountryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator) throws NoSuchWarehouseException
groupId - the group IDcommerceCountryId - the commerce country IDorderByComparator - the comparator to order the set by (optionally null)NoSuchWarehouseException - if a matching commerce warehouse could not be foundpublic static CommerceWarehouse fetchByG_C_First(long groupId, long commerceCountryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
groupId - the group IDcommerceCountryId - the commerce country IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce warehouse could not be foundpublic static CommerceWarehouse findByG_C_Last(long groupId, long commerceCountryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator) throws NoSuchWarehouseException
groupId - the group IDcommerceCountryId - the commerce country IDorderByComparator - the comparator to order the set by (optionally null)NoSuchWarehouseException - if a matching commerce warehouse could not be foundpublic static CommerceWarehouse fetchByG_C_Last(long groupId, long commerceCountryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
groupId - the group IDcommerceCountryId - the commerce country IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce warehouse could not be foundpublic static CommerceWarehouse[] findByG_C_PrevAndNext(long commerceWarehouseId, long groupId, long commerceCountryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator) throws NoSuchWarehouseException
commerceWarehouseId - the primary key of the current commerce warehousegroupId - the group IDcommerceCountryId - the commerce country IDorderByComparator - the comparator to order the set by (optionally null)NoSuchWarehouseException - if a commerce warehouse with the primary key could not be foundpublic static void removeByG_C(long groupId,
long commerceCountryId)
groupId - the group IDcommerceCountryId - the commerce country IDpublic static int countByG_C(long groupId,
long commerceCountryId)
groupId - the group IDcommerceCountryId - the commerce country IDpublic static java.util.List<CommerceWarehouse> findByG_P(long groupId, boolean primary)
groupId - the group IDprimary - the primarypublic static java.util.List<CommerceWarehouse> findByG_P(long groupId, boolean primary, 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceWarehouseModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDprimary - the primarystart - the lower bound of the range of commerce warehousesend - the upper bound of the range of commerce warehouses (not inclusive)public static java.util.List<CommerceWarehouse> findByG_P(long groupId, boolean primary, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceWarehouseModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDprimary - the primarystart - the lower bound of the range of commerce warehousesend - the upper bound of the range of commerce warehouses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceWarehouse> findByG_P(long groupId, boolean primary, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceWarehouseModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDprimary - the primarystart - the lower bound of the range of commerce warehousesend - the upper bound of the range of commerce warehouses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static CommerceWarehouse findByG_P_First(long groupId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator) throws NoSuchWarehouseException
groupId - the group IDprimary - the primaryorderByComparator - the comparator to order the set by (optionally null)NoSuchWarehouseException - if a matching commerce warehouse could not be foundpublic static CommerceWarehouse fetchByG_P_First(long groupId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
groupId - the group IDprimary - the primaryorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce warehouse could not be foundpublic static CommerceWarehouse findByG_P_Last(long groupId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator) throws NoSuchWarehouseException
groupId - the group IDprimary - the primaryorderByComparator - the comparator to order the set by (optionally null)NoSuchWarehouseException - if a matching commerce warehouse could not be foundpublic static CommerceWarehouse fetchByG_P_Last(long groupId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
groupId - the group IDprimary - the primaryorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce warehouse could not be foundpublic static CommerceWarehouse[] findByG_P_PrevAndNext(long commerceWarehouseId, long groupId, boolean primary, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator) throws NoSuchWarehouseException
commerceWarehouseId - the primary key of the current commerce warehousegroupId - the group IDprimary - the primaryorderByComparator - the comparator to order the set by (optionally null)NoSuchWarehouseException - if a commerce warehouse with the primary key could not be foundpublic static void removeByG_P(long groupId,
boolean primary)
groupId - the group IDprimary - the primarypublic static int countByG_P(long groupId,
boolean primary)
groupId - the group IDprimary - the primarypublic static java.util.List<CommerceWarehouse> findByG_A_C(long groupId, boolean active, long commerceCountryId)
groupId - the group IDactive - the activecommerceCountryId - the commerce country IDpublic static java.util.List<CommerceWarehouse> findByG_A_C(long groupId, boolean active, long commerceCountryId, 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceWarehouseModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDactive - the activecommerceCountryId - the commerce country IDstart - the lower bound of the range of commerce warehousesend - the upper bound of the range of commerce warehouses (not inclusive)public static java.util.List<CommerceWarehouse> findByG_A_C(long groupId, boolean active, long commerceCountryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceWarehouseModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDactive - the activecommerceCountryId - the commerce country IDstart - the lower bound of the range of commerce warehousesend - the upper bound of the range of commerce warehouses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceWarehouse> findByG_A_C(long groupId, boolean active, long commerceCountryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceWarehouseModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDactive - the activecommerceCountryId - the commerce country IDstart - the lower bound of the range of commerce warehousesend - the upper bound of the range of commerce warehouses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static CommerceWarehouse findByG_A_C_First(long groupId, boolean active, long commerceCountryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator) throws NoSuchWarehouseException
groupId - the group IDactive - the activecommerceCountryId - the commerce country IDorderByComparator - the comparator to order the set by (optionally null)NoSuchWarehouseException - if a matching commerce warehouse could not be foundpublic static CommerceWarehouse fetchByG_A_C_First(long groupId, boolean active, long commerceCountryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
groupId - the group IDactive - the activecommerceCountryId - the commerce country IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce warehouse could not be foundpublic static CommerceWarehouse findByG_A_C_Last(long groupId, boolean active, long commerceCountryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator) throws NoSuchWarehouseException
groupId - the group IDactive - the activecommerceCountryId - the commerce country IDorderByComparator - the comparator to order the set by (optionally null)NoSuchWarehouseException - if a matching commerce warehouse could not be foundpublic static CommerceWarehouse fetchByG_A_C_Last(long groupId, boolean active, long commerceCountryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator)
groupId - the group IDactive - the activecommerceCountryId - the commerce country IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce warehouse could not be foundpublic static CommerceWarehouse[] findByG_A_C_PrevAndNext(long commerceWarehouseId, long groupId, boolean active, long commerceCountryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator) throws NoSuchWarehouseException
commerceWarehouseId - the primary key of the current commerce warehousegroupId - the group IDactive - the activecommerceCountryId - the commerce country IDorderByComparator - the comparator to order the set by (optionally null)NoSuchWarehouseException - if a commerce warehouse with the primary key could not be foundpublic static void removeByG_A_C(long groupId,
boolean active,
long commerceCountryId)
groupId - the group IDactive - the activecommerceCountryId - the commerce country IDpublic static int countByG_A_C(long groupId,
boolean active,
long commerceCountryId)
groupId - the group IDactive - the activecommerceCountryId - the commerce country IDpublic static void cacheResult(CommerceWarehouse commerceWarehouse)
commerceWarehouse - the commerce warehousepublic static void cacheResult(java.util.List<CommerceWarehouse> commerceWarehouses)
commerceWarehouses - the commerce warehousespublic static CommerceWarehouse create(long commerceWarehouseId)
commerceWarehouseId - the primary key for the new commerce warehousepublic static CommerceWarehouse remove(long commerceWarehouseId) throws NoSuchWarehouseException
commerceWarehouseId - the primary key of the commerce warehouseNoSuchWarehouseException - if a commerce warehouse with the primary key could not be foundpublic static CommerceWarehouse updateImpl(CommerceWarehouse commerceWarehouse)
public static CommerceWarehouse findByPrimaryKey(long commerceWarehouseId) throws NoSuchWarehouseException
NoSuchWarehouseException if it could not be found.commerceWarehouseId - the primary key of the commerce warehouseNoSuchWarehouseException - if a commerce warehouse with the primary key could not be foundpublic static CommerceWarehouse fetchByPrimaryKey(long commerceWarehouseId)
null if it could not be found.commerceWarehouseId - the primary key of the commerce warehousenull if a commerce warehouse with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,CommerceWarehouse> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<CommerceWarehouse> findAll()
public static java.util.List<CommerceWarehouse> 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceWarehouseModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of commerce warehousesend - the upper bound of the range of commerce warehouses (not inclusive)public static java.util.List<CommerceWarehouse> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceWarehouseModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of commerce warehousesend - the upper bound of the range of commerce warehouses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceWarehouse> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWarehouse> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceWarehouseModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of commerce warehousesend - the upper bound of the range of commerce warehouses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static java.util.Set<java.lang.String> getBadColumnNames()
public static CommerceWarehousePersistence getPersistence()