public class CommerceShipmentUtil
extends java.lang.Object
com.liferay.commerce.service.persistence.impl.CommerceShipmentPersistenceImpl
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
CommerceShipmentPersistence
Constructor and Description |
---|
CommerceShipmentUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommerceShipment commerceShipment)
Caches the commerce shipment in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceShipment> commerceShipments)
Caches the commerce shipments in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceShipment commerceShipment) |
static int |
countAll()
Returns the number of commerce shipments.
|
static int |
countByG_C(long[] groupIds,
long commerceAddressId)
Returns the number of commerce shipments where groupId = any ? and commerceAddressId = ?.
|
static int |
countByG_C(long groupId,
long commerceAddressId)
Returns the number of commerce shipments where groupId = ? and commerceAddressId = ?.
|
static int |
countByG_S(long[] groupIds,
int status)
Returns the number of commerce shipments where groupId = any ? and status = ?.
|
static int |
countByG_S(long groupId,
int status)
Returns the number of commerce shipments where groupId = ? and status = ?.
|
static int |
countByGroupId(long groupId)
Returns the number of commerce shipments where groupId = ?.
|
static int |
countByGroupId(long[] groupIds)
Returns the number of commerce shipments where groupId = any ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceShipment |
create(long commerceShipmentId)
Creates a new commerce shipment with the primary key.
|
static CommerceShipment |
fetchByG_C_First(long groupId,
long commerceAddressId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
Returns the first commerce shipment in the ordered set where groupId = ? and commerceAddressId = ?.
|
static CommerceShipment |
fetchByG_C_Last(long groupId,
long commerceAddressId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
Returns the last commerce shipment in the ordered set where groupId = ? and commerceAddressId = ?.
|
static CommerceShipment |
fetchByG_S_First(long groupId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
Returns the first commerce shipment in the ordered set where groupId = ? and status = ?.
|
static CommerceShipment |
fetchByG_S_Last(long groupId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
Returns the last commerce shipment in the ordered set where groupId = ? and status = ?.
|
static CommerceShipment |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
Returns the first commerce shipment in the ordered set where groupId = ?.
|
static CommerceShipment |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
Returns the last commerce shipment in the ordered set where groupId = ?.
|
static CommerceShipment |
fetchByPrimaryKey(long commerceShipmentId)
Returns the commerce shipment with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceShipment> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CommerceShipment> |
findAll()
Returns all the commerce shipments.
|
static java.util.List<CommerceShipment> |
findAll(int start,
int end)
Returns a range of all the commerce shipments.
|
static java.util.List<CommerceShipment> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
Returns an ordered range of all the commerce shipments.
|
static java.util.List<CommerceShipment> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce shipments.
|
static CommerceShipment |
findByG_C_First(long groupId,
long commerceAddressId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
Returns the first commerce shipment in the ordered set where groupId = ? and commerceAddressId = ?.
|
static CommerceShipment |
findByG_C_Last(long groupId,
long commerceAddressId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
Returns the last commerce shipment in the ordered set where groupId = ? and commerceAddressId = ?.
|
static CommerceShipment[] |
findByG_C_PrevAndNext(long commerceShipmentId,
long groupId,
long commerceAddressId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
Returns the commerce shipments before and after the current commerce shipment in the ordered set where groupId = ? and commerceAddressId = ?.
|
static java.util.List<CommerceShipment> |
findByG_C(long[] groupIds,
long commerceAddressId)
Returns all the commerce shipments where groupId = any ? and commerceAddressId = ?.
|
static java.util.List<CommerceShipment> |
findByG_C(long[] groupIds,
long commerceAddressId,
int start,
int end)
Returns a range of all the commerce shipments where groupId = any ? and commerceAddressId = ?.
|
static java.util.List<CommerceShipment> |
findByG_C(long[] groupIds,
long commerceAddressId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
Returns an ordered range of all the commerce shipments where groupId = any ? and commerceAddressId = ?.
|
static java.util.List<CommerceShipment> |
findByG_C(long[] groupIds,
long commerceAddressId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce shipments where groupId = ? and commerceAddressId = ?, optionally using the finder cache.
|
static java.util.List<CommerceShipment> |
findByG_C(long groupId,
long commerceAddressId)
Returns all the commerce shipments where groupId = ? and commerceAddressId = ?.
|
static java.util.List<CommerceShipment> |
findByG_C(long groupId,
long commerceAddressId,
int start,
int end)
Returns a range of all the commerce shipments where groupId = ? and commerceAddressId = ?.
|
static java.util.List<CommerceShipment> |
findByG_C(long groupId,
long commerceAddressId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
Returns an ordered range of all the commerce shipments where groupId = ? and commerceAddressId = ?.
|
static java.util.List<CommerceShipment> |
findByG_C(long groupId,
long commerceAddressId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce shipments where groupId = ? and commerceAddressId = ?.
|
static CommerceShipment |
findByG_S_First(long groupId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
Returns the first commerce shipment in the ordered set where groupId = ? and status = ?.
|
static CommerceShipment |
findByG_S_Last(long groupId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
Returns the last commerce shipment in the ordered set where groupId = ? and status = ?.
|
static CommerceShipment[] |
findByG_S_PrevAndNext(long commerceShipmentId,
long groupId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
Returns the commerce shipments before and after the current commerce shipment in the ordered set where groupId = ? and status = ?.
|
static java.util.List<CommerceShipment> |
findByG_S(long[] groupIds,
int status)
Returns all the commerce shipments where groupId = any ? and status = ?.
|
static java.util.List<CommerceShipment> |
findByG_S(long[] groupIds,
int status,
int start,
int end)
Returns a range of all the commerce shipments where groupId = any ? and status = ?.
|
static java.util.List<CommerceShipment> |
findByG_S(long[] groupIds,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
Returns an ordered range of all the commerce shipments where groupId = any ? and status = ?.
|
static java.util.List<CommerceShipment> |
findByG_S(long[] groupIds,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce shipments where groupId = ? and status = ?, optionally using the finder cache.
|
static java.util.List<CommerceShipment> |
findByG_S(long groupId,
int status)
Returns all the commerce shipments where groupId = ? and status = ?.
|
static java.util.List<CommerceShipment> |
findByG_S(long groupId,
int status,
int start,
int end)
Returns a range of all the commerce shipments where groupId = ? and status = ?.
|
static java.util.List<CommerceShipment> |
findByG_S(long groupId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
Returns an ordered range of all the commerce shipments where groupId = ? and status = ?.
|
static java.util.List<CommerceShipment> |
findByG_S(long groupId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce shipments where groupId = ? and status = ?.
|
static CommerceShipment |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
Returns the first commerce shipment in the ordered set where groupId = ?.
|
static CommerceShipment |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
Returns the last commerce shipment in the ordered set where groupId = ?.
|
static CommerceShipment[] |
findByGroupId_PrevAndNext(long commerceShipmentId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
Returns the commerce shipments before and after the current commerce shipment in the ordered set where groupId = ?.
|
static java.util.List<CommerceShipment> |
findByGroupId(long groupId)
Returns all the commerce shipments where groupId = ?.
|
static java.util.List<CommerceShipment> |
findByGroupId(long[] groupIds)
Returns all the commerce shipments where groupId = any ?.
|
static java.util.List<CommerceShipment> |
findByGroupId(long[] groupIds,
int start,
int end)
Returns a range of all the commerce shipments where groupId = any ?.
|
static java.util.List<CommerceShipment> |
findByGroupId(long[] groupIds,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
Returns an ordered range of all the commerce shipments where groupId = any ?.
|
static java.util.List<CommerceShipment> |
findByGroupId(long[] groupIds,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce shipments where groupId = ?, optionally using the finder cache.
|
static java.util.List<CommerceShipment> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the commerce shipments where groupId = ?.
|
static java.util.List<CommerceShipment> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
Returns an ordered range of all the commerce shipments where groupId = ?.
|
static java.util.List<CommerceShipment> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce shipments where groupId = ?.
|
static CommerceShipment |
findByPrimaryKey(long commerceShipmentId)
Returns the commerce shipment with the primary key or throws a
NoSuchShipmentException if it could not be found. |
static java.util.List<CommerceShipment> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceShipment> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceShipment> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) |
static CommerceShipmentPersistence |
getPersistence() |
static CommerceShipment |
remove(long commerceShipmentId)
Removes the commerce shipment with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce shipments from the database.
|
static void |
removeByG_C(long groupId,
long commerceAddressId)
Removes all the commerce shipments where groupId = ? and commerceAddressId = ? from the database.
|
static void |
removeByG_S(long groupId,
int status)
Removes all the commerce shipments where groupId = ? and status = ? from the database.
|
static void |
removeByGroupId(long groupId)
Removes all the commerce shipments where groupId = ? from the database.
|
static CommerceShipment |
update(CommerceShipment commerceShipment) |
static CommerceShipment |
update(CommerceShipment commerceShipment,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceShipment |
updateImpl(CommerceShipment commerceShipment) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommerceShipment commerceShipment)
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,CommerceShipment> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommerceShipment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommerceShipment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommerceShipment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommerceShipment update(CommerceShipment commerceShipment)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommerceShipment update(CommerceShipment commerceShipment, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommerceShipment> findByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<CommerceShipment> 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, then the query will include the default ORDER BY logic from CommerceShipmentModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)public static java.util.List<CommerceShipment> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> 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 CommerceShipmentModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceShipment> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> 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 CommerceShipmentModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceShipment findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws NoSuchShipmentException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchShipmentException
- if a matching commerce shipment could not be foundpublic static CommerceShipment fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce shipment could not be foundpublic static CommerceShipment findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws NoSuchShipmentException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchShipmentException
- if a matching commerce shipment could not be foundpublic static CommerceShipment fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce shipment could not be foundpublic static CommerceShipment[] findByGroupId_PrevAndNext(long commerceShipmentId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws NoSuchShipmentException
commerceShipmentId
- the primary key of the current commerce shipmentgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchShipmentException
- if a commerce shipment with the primary key could not be foundpublic static java.util.List<CommerceShipment> findByGroupId(long[] groupIds)
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 CommerceShipmentModelImpl
.
groupIds
- the group IDspublic static java.util.List<CommerceShipment> findByGroupId(long[] groupIds, 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 CommerceShipmentModelImpl
.
groupIds
- the group IDsstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)public static java.util.List<CommerceShipment> findByGroupId(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> 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 CommerceShipmentModelImpl
.
groupIds
- the group IDsstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceShipment> findByGroupId(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> 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 CommerceShipmentModelImpl
.
groupId
- the group IDstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeByGroupId(long groupId)
groupId
- the group IDpublic static int countByGroupId(long groupId)
groupId
- the group IDpublic static int countByGroupId(long[] groupIds)
groupIds
- the group IDspublic static java.util.List<CommerceShipment> findByG_C(long groupId, long commerceAddressId)
groupId
- the group IDcommerceAddressId
- the commerce address IDpublic static java.util.List<CommerceShipment> findByG_C(long groupId, long commerceAddressId, 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 CommerceShipmentModelImpl
.
groupId
- the group IDcommerceAddressId
- the commerce address IDstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)public static java.util.List<CommerceShipment> findByG_C(long groupId, long commerceAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> 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 CommerceShipmentModelImpl
.
groupId
- the group IDcommerceAddressId
- the commerce address IDstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceShipment> findByG_C(long groupId, long commerceAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> 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 CommerceShipmentModelImpl
.
groupId
- the group IDcommerceAddressId
- the commerce address IDstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceShipment findByG_C_First(long groupId, long commerceAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws NoSuchShipmentException
groupId
- the group IDcommerceAddressId
- the commerce address IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchShipmentException
- if a matching commerce shipment could not be foundpublic static CommerceShipment fetchByG_C_First(long groupId, long commerceAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
groupId
- the group IDcommerceAddressId
- the commerce address IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce shipment could not be foundpublic static CommerceShipment findByG_C_Last(long groupId, long commerceAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws NoSuchShipmentException
groupId
- the group IDcommerceAddressId
- the commerce address IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchShipmentException
- if a matching commerce shipment could not be foundpublic static CommerceShipment fetchByG_C_Last(long groupId, long commerceAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
groupId
- the group IDcommerceAddressId
- the commerce address IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce shipment could not be foundpublic static CommerceShipment[] findByG_C_PrevAndNext(long commerceShipmentId, long groupId, long commerceAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws NoSuchShipmentException
commerceShipmentId
- the primary key of the current commerce shipmentgroupId
- the group IDcommerceAddressId
- the commerce address IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchShipmentException
- if a commerce shipment with the primary key could not be foundpublic static java.util.List<CommerceShipment> findByG_C(long[] groupIds, long commerceAddressId)
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 CommerceShipmentModelImpl
.
groupIds
- the group IDscommerceAddressId
- the commerce address IDpublic static java.util.List<CommerceShipment> findByG_C(long[] groupIds, long commerceAddressId, 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 CommerceShipmentModelImpl
.
groupIds
- the group IDscommerceAddressId
- the commerce address IDstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)public static java.util.List<CommerceShipment> findByG_C(long[] groupIds, long commerceAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> 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 CommerceShipmentModelImpl
.
groupIds
- the group IDscommerceAddressId
- the commerce address IDstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceShipment> findByG_C(long[] groupIds, long commerceAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> 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 CommerceShipmentModelImpl
.
groupId
- the group IDcommerceAddressId
- the commerce address IDstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeByG_C(long groupId, long commerceAddressId)
groupId
- the group IDcommerceAddressId
- the commerce address IDpublic static int countByG_C(long groupId, long commerceAddressId)
groupId
- the group IDcommerceAddressId
- the commerce address IDpublic static int countByG_C(long[] groupIds, long commerceAddressId)
groupIds
- the group IDscommerceAddressId
- the commerce address IDpublic static java.util.List<CommerceShipment> findByG_S(long groupId, int status)
groupId
- the group IDstatus
- the statuspublic static java.util.List<CommerceShipment> findByG_S(long groupId, int status, 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 CommerceShipmentModelImpl
.
groupId
- the group IDstatus
- the statusstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)public static java.util.List<CommerceShipment> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> 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 CommerceShipmentModelImpl
.
groupId
- the group IDstatus
- the statusstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceShipment> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> 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 CommerceShipmentModelImpl
.
groupId
- the group IDstatus
- the statusstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceShipment findByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws NoSuchShipmentException
groupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchShipmentException
- if a matching commerce shipment could not be foundpublic static CommerceShipment fetchByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
groupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce shipment could not be foundpublic static CommerceShipment findByG_S_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws NoSuchShipmentException
groupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchShipmentException
- if a matching commerce shipment could not be foundpublic static CommerceShipment fetchByG_S_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
groupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce shipment could not be foundpublic static CommerceShipment[] findByG_S_PrevAndNext(long commerceShipmentId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws NoSuchShipmentException
commerceShipmentId
- the primary key of the current commerce shipmentgroupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchShipmentException
- if a commerce shipment with the primary key could not be foundpublic static java.util.List<CommerceShipment> findByG_S(long[] groupIds, int status)
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 CommerceShipmentModelImpl
.
groupIds
- the group IDsstatus
- the statuspublic static java.util.List<CommerceShipment> findByG_S(long[] groupIds, int status, 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 CommerceShipmentModelImpl
.
groupIds
- the group IDsstatus
- the statusstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)public static java.util.List<CommerceShipment> findByG_S(long[] groupIds, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> 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 CommerceShipmentModelImpl
.
groupIds
- the group IDsstatus
- the statusstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceShipment> findByG_S(long[] groupIds, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> 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 CommerceShipmentModelImpl
.
groupId
- the group IDstatus
- the statusstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeByG_S(long groupId, int status)
groupId
- the group IDstatus
- the statuspublic static int countByG_S(long groupId, int status)
groupId
- the group IDstatus
- the statuspublic static int countByG_S(long[] groupIds, int status)
groupIds
- the group IDsstatus
- the statuspublic static void cacheResult(CommerceShipment commerceShipment)
commerceShipment
- the commerce shipmentpublic static void cacheResult(java.util.List<CommerceShipment> commerceShipments)
commerceShipments
- the commerce shipmentspublic static CommerceShipment create(long commerceShipmentId)
commerceShipmentId
- the primary key for the new commerce shipmentpublic static CommerceShipment remove(long commerceShipmentId) throws NoSuchShipmentException
commerceShipmentId
- the primary key of the commerce shipmentNoSuchShipmentException
- if a commerce shipment with the primary key could not be foundpublic static CommerceShipment updateImpl(CommerceShipment commerceShipment)
public static CommerceShipment findByPrimaryKey(long commerceShipmentId) throws NoSuchShipmentException
NoSuchShipmentException
if it could not be found.commerceShipmentId
- the primary key of the commerce shipmentNoSuchShipmentException
- if a commerce shipment with the primary key could not be foundpublic static CommerceShipment fetchByPrimaryKey(long commerceShipmentId)
null
if it could not be found.commerceShipmentId
- the primary key of the commerce shipmentnull
if a commerce shipment with the primary key could not be foundpublic static java.util.List<CommerceShipment> findAll()
public static java.util.List<CommerceShipment> 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 CommerceShipmentModelImpl
.
start
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)public static java.util.List<CommerceShipment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> 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 CommerceShipmentModelImpl
.
start
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceShipment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> 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 CommerceShipmentModelImpl
.
start
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (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 CommerceShipmentPersistence getPersistence()