@ProviderType
public class ShoppingOrderUtil
extends java.lang.Object
com.liferay.portlet.shopping.service.persistence.impl.ShoppingOrderPersistenceImpl 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
ShoppingOrderPersistence,
com.liferay.portlet.shopping.service.persistence.impl.ShoppingOrderPersistenceImpl| Constructor and Description |
|---|
ShoppingOrderUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(java.util.List<ShoppingOrder> shoppingOrders)
Caches the shopping orders in the entity cache if it is enabled.
|
static void |
cacheResult(ShoppingOrder shoppingOrder)
Caches the shopping order in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(ShoppingOrder shoppingOrder) |
static int |
countAll()
Returns the number of shopping orders.
|
static int |
countByG_U_PPPS(long groupId,
long userId,
java.lang.String ppPaymentStatus)
Returns the number of shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.
|
static int |
countByGroupId(long groupId)
Returns the number of shopping orders where groupId = ?.
|
static int |
countByNumber(java.lang.String number)
Returns the number of shopping orders where number = ?.
|
static int |
countByPPTxnId(java.lang.String ppTxnId)
Returns the number of shopping orders where ppTxnId = ?.
|
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery) |
static ShoppingOrder |
create(long orderId)
Creates a new shopping order with the primary key.
|
static ShoppingOrder |
fetchByG_U_PPPS_First(long groupId,
long userId,
java.lang.String ppPaymentStatus,
OrderByComparator<ShoppingOrder> orderByComparator)
Returns the first shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?.
|
static ShoppingOrder |
fetchByG_U_PPPS_Last(long groupId,
long userId,
java.lang.String ppPaymentStatus,
OrderByComparator<ShoppingOrder> orderByComparator)
Returns the last shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?.
|
static ShoppingOrder |
fetchByGroupId_First(long groupId,
OrderByComparator<ShoppingOrder> orderByComparator)
Returns the first shopping order in the ordered set where groupId = ?.
|
static ShoppingOrder |
fetchByGroupId_Last(long groupId,
OrderByComparator<ShoppingOrder> orderByComparator)
Returns the last shopping order in the ordered set where groupId = ?.
|
static ShoppingOrder |
fetchByNumber(java.lang.String number)
Returns the shopping order where number = ? or returns
null if it could not be found. |
static ShoppingOrder |
fetchByNumber(java.lang.String number,
boolean retrieveFromCache)
Returns the shopping order where number = ? or returns
null if it could not be found, optionally using the finder cache. |
static ShoppingOrder |
fetchByPPTxnId(java.lang.String ppTxnId)
Returns the shopping order where ppTxnId = ? or returns
null if it could not be found. |
static ShoppingOrder |
fetchByPPTxnId(java.lang.String ppTxnId,
boolean retrieveFromCache)
Returns the shopping order where ppTxnId = ? or returns
null if it could not be found, optionally using the finder cache. |
static ShoppingOrder |
fetchByPrimaryKey(long orderId)
Returns the shopping order with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,ShoppingOrder> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static int |
filterCountByG_U_PPPS(long groupId,
long userId,
java.lang.String ppPaymentStatus)
Returns the number of shopping orders that the user has permission to view where groupId = ? and userId = ? and ppPaymentStatus = ?.
|
static int |
filterCountByGroupId(long groupId)
Returns the number of shopping orders that the user has permission to view where groupId = ?.
|
static ShoppingOrder[] |
filterFindByG_U_PPPS_PrevAndNext(long orderId,
long groupId,
long userId,
java.lang.String ppPaymentStatus,
OrderByComparator<ShoppingOrder> orderByComparator)
Returns the shopping orders before and after the current shopping order in the ordered set of shopping orders that the user has permission to view where groupId = ? and userId = ? and ppPaymentStatus = ?.
|
static java.util.List<ShoppingOrder> |
filterFindByG_U_PPPS(long groupId,
long userId,
java.lang.String ppPaymentStatus)
Returns all the shopping orders that the user has permission to view where groupId = ? and userId = ? and ppPaymentStatus = ?.
|
static java.util.List<ShoppingOrder> |
filterFindByG_U_PPPS(long groupId,
long userId,
java.lang.String ppPaymentStatus,
int start,
int end)
Returns a range of all the shopping orders that the user has permission to view where groupId = ? and userId = ? and ppPaymentStatus = ?.
|
static java.util.List<ShoppingOrder> |
filterFindByG_U_PPPS(long groupId,
long userId,
java.lang.String ppPaymentStatus,
int start,
int end,
OrderByComparator<ShoppingOrder> orderByComparator)
Returns an ordered range of all the shopping orders that the user has permissions to view where groupId = ? and userId = ? and ppPaymentStatus = ?.
|
static ShoppingOrder[] |
filterFindByGroupId_PrevAndNext(long orderId,
long groupId,
OrderByComparator<ShoppingOrder> orderByComparator)
Returns the shopping orders before and after the current shopping order in the ordered set of shopping orders that the user has permission to view where groupId = ?.
|
static java.util.List<ShoppingOrder> |
filterFindByGroupId(long groupId)
Returns all the shopping orders that the user has permission to view where groupId = ?.
|
static java.util.List<ShoppingOrder> |
filterFindByGroupId(long groupId,
int start,
int end)
Returns a range of all the shopping orders that the user has permission to view where groupId = ?.
|
static java.util.List<ShoppingOrder> |
filterFindByGroupId(long groupId,
int start,
int end,
OrderByComparator<ShoppingOrder> orderByComparator)
Returns an ordered range of all the shopping orders that the user has permissions to view where groupId = ?.
|
static java.util.List<ShoppingOrder> |
findAll()
Returns all the shopping orders.
|
static java.util.List<ShoppingOrder> |
findAll(int start,
int end)
Returns a range of all the shopping orders.
|
static java.util.List<ShoppingOrder> |
findAll(int start,
int end,
OrderByComparator<ShoppingOrder> orderByComparator)
Returns an ordered range of all the shopping orders.
|
static ShoppingOrder |
findByG_U_PPPS_First(long groupId,
long userId,
java.lang.String ppPaymentStatus,
OrderByComparator<ShoppingOrder> orderByComparator)
Returns the first shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?.
|
static ShoppingOrder |
findByG_U_PPPS_Last(long groupId,
long userId,
java.lang.String ppPaymentStatus,
OrderByComparator<ShoppingOrder> orderByComparator)
Returns the last shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?.
|
static ShoppingOrder[] |
findByG_U_PPPS_PrevAndNext(long orderId,
long groupId,
long userId,
java.lang.String ppPaymentStatus,
OrderByComparator<ShoppingOrder> orderByComparator)
Returns the shopping orders before and after the current shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?.
|
static java.util.List<ShoppingOrder> |
findByG_U_PPPS(long groupId,
long userId,
java.lang.String ppPaymentStatus)
Returns all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.
|
static java.util.List<ShoppingOrder> |
findByG_U_PPPS(long groupId,
long userId,
java.lang.String ppPaymentStatus,
int start,
int end)
Returns a range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.
|
static java.util.List<ShoppingOrder> |
findByG_U_PPPS(long groupId,
long userId,
java.lang.String ppPaymentStatus,
int start,
int end,
OrderByComparator<ShoppingOrder> orderByComparator)
Returns an ordered range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.
|
static ShoppingOrder |
findByGroupId_First(long groupId,
OrderByComparator<ShoppingOrder> orderByComparator)
Returns the first shopping order in the ordered set where groupId = ?.
|
static ShoppingOrder |
findByGroupId_Last(long groupId,
OrderByComparator<ShoppingOrder> orderByComparator)
Returns the last shopping order in the ordered set where groupId = ?.
|
static ShoppingOrder[] |
findByGroupId_PrevAndNext(long orderId,
long groupId,
OrderByComparator<ShoppingOrder> orderByComparator)
Returns the shopping orders before and after the current shopping order in the ordered set where groupId = ?.
|
static java.util.List<ShoppingOrder> |
findByGroupId(long groupId)
Returns all the shopping orders where groupId = ?.
|
static java.util.List<ShoppingOrder> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the shopping orders where groupId = ?.
|
static java.util.List<ShoppingOrder> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<ShoppingOrder> orderByComparator)
Returns an ordered range of all the shopping orders where groupId = ?.
|
static ShoppingOrder |
findByNumber(java.lang.String number)
Returns the shopping order where number = ? or throws a
NoSuchOrderException if it could not be found. |
static ShoppingOrder |
findByPPTxnId(java.lang.String ppTxnId)
Returns the shopping order where ppTxnId = ? or throws a
NoSuchOrderException if it could not be found. |
static ShoppingOrder |
findByPrimaryKey(long orderId)
Returns the shopping order with the primary key or throws a
NoSuchOrderException if it could not be found. |
static java.util.List<ShoppingOrder> |
findWithDynamicQuery(DynamicQuery dynamicQuery) |
static java.util.List<ShoppingOrder> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<ShoppingOrder> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<ShoppingOrder> orderByComparator) |
static ShoppingOrderPersistence |
getPersistence() |
static ShoppingOrder |
remove(long orderId)
Removes the shopping order with the primary key from the database.
|
static void |
removeAll()
Removes all the shopping orders from the database.
|
static void |
removeByG_U_PPPS(long groupId,
long userId,
java.lang.String ppPaymentStatus)
Removes all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ? from the database.
|
static void |
removeByGroupId(long groupId)
Removes all the shopping orders where groupId = ? from the database.
|
static ShoppingOrder |
removeByNumber(java.lang.String number)
Removes the shopping order where number = ? from the database.
|
static ShoppingOrder |
removeByPPTxnId(java.lang.String ppTxnId)
Removes the shopping order where ppTxnId = ? from the database.
|
void |
setPersistence(ShoppingOrderPersistence persistence)
Deprecated.
As of 6.2.0
|
static ShoppingOrder |
update(ShoppingOrder shoppingOrder) |
static ShoppingOrder |
update(ShoppingOrder shoppingOrder,
ServiceContext serviceContext) |
static ShoppingOrder |
updateImpl(ShoppingOrder shoppingOrder) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(ShoppingOrder shoppingOrder)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
public static java.util.List<ShoppingOrder> findWithDynamicQuery(DynamicQuery dynamicQuery)
public static java.util.List<ShoppingOrder> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
public static java.util.List<ShoppingOrder> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<ShoppingOrder> orderByComparator)
public static ShoppingOrder update(ShoppingOrder shoppingOrder)
public static ShoppingOrder update(ShoppingOrder shoppingOrder, ServiceContext serviceContext)
public static java.util.List<ShoppingOrder> findByGroupId(long groupId)
groupId - the group IDpublic static java.util.List<ShoppingOrder> 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 ShoppingOrderModelImpl. 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 shopping ordersend - the upper bound of the range of shopping orders (not inclusive)public static java.util.List<ShoppingOrder> findByGroupId(long groupId, int start, int end, OrderByComparator<ShoppingOrder> 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 ShoppingOrderModelImpl. 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 shopping ordersend - the upper bound of the range of shopping orders (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static ShoppingOrder findByGroupId_First(long groupId, OrderByComparator<ShoppingOrder> orderByComparator) throws NoSuchOrderException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchOrderException - if a matching shopping order could not be foundpublic static ShoppingOrder fetchByGroupId_First(long groupId, OrderByComparator<ShoppingOrder> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching shopping order could not be foundpublic static ShoppingOrder findByGroupId_Last(long groupId, OrderByComparator<ShoppingOrder> orderByComparator) throws NoSuchOrderException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchOrderException - if a matching shopping order could not be foundpublic static ShoppingOrder fetchByGroupId_Last(long groupId, OrderByComparator<ShoppingOrder> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching shopping order could not be foundpublic static ShoppingOrder[] findByGroupId_PrevAndNext(long orderId, long groupId, OrderByComparator<ShoppingOrder> orderByComparator) throws NoSuchOrderException
orderId - the primary key of the current shopping ordergroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchOrderException - if a shopping order with the primary key could not be foundpublic static java.util.List<ShoppingOrder> filterFindByGroupId(long groupId)
groupId - the group IDpublic static java.util.List<ShoppingOrder> filterFindByGroupId(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 ShoppingOrderModelImpl. 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 shopping ordersend - the upper bound of the range of shopping orders (not inclusive)public static java.util.List<ShoppingOrder> filterFindByGroupId(long groupId, int start, int end, OrderByComparator<ShoppingOrder> 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 ShoppingOrderModelImpl. 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 shopping ordersend - the upper bound of the range of shopping orders (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static ShoppingOrder[] filterFindByGroupId_PrevAndNext(long orderId, long groupId, OrderByComparator<ShoppingOrder> orderByComparator) throws NoSuchOrderException
orderId - the primary key of the current shopping ordergroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchOrderException - if a shopping order 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 int filterCountByGroupId(long groupId)
groupId - the group IDpublic static ShoppingOrder findByNumber(java.lang.String number) throws NoSuchOrderException
NoSuchOrderException if it could not be found.number - the numberNoSuchOrderException - if a matching shopping order could not be foundpublic static ShoppingOrder fetchByNumber(java.lang.String number)
null if it could not be found. Uses the finder cache.number - the numbernull if a matching shopping order could not be foundpublic static ShoppingOrder fetchByNumber(java.lang.String number, boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.number - the numberretrieveFromCache - whether to use the finder cachenull if a matching shopping order could not be foundpublic static ShoppingOrder removeByNumber(java.lang.String number) throws NoSuchOrderException
number - the numberNoSuchOrderExceptionpublic static int countByNumber(java.lang.String number)
number - the numberpublic static ShoppingOrder findByPPTxnId(java.lang.String ppTxnId) throws NoSuchOrderException
NoSuchOrderException if it could not be found.ppTxnId - the pp txn IDNoSuchOrderException - if a matching shopping order could not be foundpublic static ShoppingOrder fetchByPPTxnId(java.lang.String ppTxnId)
null if it could not be found. Uses the finder cache.ppTxnId - the pp txn IDnull if a matching shopping order could not be foundpublic static ShoppingOrder fetchByPPTxnId(java.lang.String ppTxnId, boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.ppTxnId - the pp txn IDretrieveFromCache - whether to use the finder cachenull if a matching shopping order could not be foundpublic static ShoppingOrder removeByPPTxnId(java.lang.String ppTxnId) throws NoSuchOrderException
ppTxnId - the pp txn IDNoSuchOrderExceptionpublic static int countByPPTxnId(java.lang.String ppTxnId)
ppTxnId - the pp txn IDpublic static java.util.List<ShoppingOrder> findByG_U_PPPS(long groupId, long userId, java.lang.String ppPaymentStatus)
groupId - the group IDuserId - the user IDppPaymentStatus - the pp payment statuspublic static java.util.List<ShoppingOrder> findByG_U_PPPS(long groupId, long userId, java.lang.String ppPaymentStatus, 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 ShoppingOrderModelImpl. 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 IDuserId - the user IDppPaymentStatus - the pp payment statusstart - the lower bound of the range of shopping ordersend - the upper bound of the range of shopping orders (not inclusive)public static java.util.List<ShoppingOrder> findByG_U_PPPS(long groupId, long userId, java.lang.String ppPaymentStatus, int start, int end, OrderByComparator<ShoppingOrder> 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 ShoppingOrderModelImpl. 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 IDuserId - the user IDppPaymentStatus - the pp payment statusstart - the lower bound of the range of shopping ordersend - the upper bound of the range of shopping orders (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static ShoppingOrder findByG_U_PPPS_First(long groupId, long userId, java.lang.String ppPaymentStatus, OrderByComparator<ShoppingOrder> orderByComparator) throws NoSuchOrderException
groupId - the group IDuserId - the user IDppPaymentStatus - the pp payment statusorderByComparator - the comparator to order the set by (optionally null)NoSuchOrderException - if a matching shopping order could not be foundpublic static ShoppingOrder fetchByG_U_PPPS_First(long groupId, long userId, java.lang.String ppPaymentStatus, OrderByComparator<ShoppingOrder> orderByComparator)
groupId - the group IDuserId - the user IDppPaymentStatus - the pp payment statusorderByComparator - the comparator to order the set by (optionally null)null if a matching shopping order could not be foundpublic static ShoppingOrder findByG_U_PPPS_Last(long groupId, long userId, java.lang.String ppPaymentStatus, OrderByComparator<ShoppingOrder> orderByComparator) throws NoSuchOrderException
groupId - the group IDuserId - the user IDppPaymentStatus - the pp payment statusorderByComparator - the comparator to order the set by (optionally null)NoSuchOrderException - if a matching shopping order could not be foundpublic static ShoppingOrder fetchByG_U_PPPS_Last(long groupId, long userId, java.lang.String ppPaymentStatus, OrderByComparator<ShoppingOrder> orderByComparator)
groupId - the group IDuserId - the user IDppPaymentStatus - the pp payment statusorderByComparator - the comparator to order the set by (optionally null)null if a matching shopping order could not be foundpublic static ShoppingOrder[] findByG_U_PPPS_PrevAndNext(long orderId, long groupId, long userId, java.lang.String ppPaymentStatus, OrderByComparator<ShoppingOrder> orderByComparator) throws NoSuchOrderException
orderId - the primary key of the current shopping ordergroupId - the group IDuserId - the user IDppPaymentStatus - the pp payment statusorderByComparator - the comparator to order the set by (optionally null)NoSuchOrderException - if a shopping order with the primary key could not be foundpublic static java.util.List<ShoppingOrder> filterFindByG_U_PPPS(long groupId, long userId, java.lang.String ppPaymentStatus)
groupId - the group IDuserId - the user IDppPaymentStatus - the pp payment statuspublic static java.util.List<ShoppingOrder> filterFindByG_U_PPPS(long groupId, long userId, java.lang.String ppPaymentStatus, 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 ShoppingOrderModelImpl. 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 IDuserId - the user IDppPaymentStatus - the pp payment statusstart - the lower bound of the range of shopping ordersend - the upper bound of the range of shopping orders (not inclusive)public static java.util.List<ShoppingOrder> filterFindByG_U_PPPS(long groupId, long userId, java.lang.String ppPaymentStatus, int start, int end, OrderByComparator<ShoppingOrder> 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 ShoppingOrderModelImpl. 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 IDuserId - the user IDppPaymentStatus - the pp payment statusstart - the lower bound of the range of shopping ordersend - the upper bound of the range of shopping orders (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static ShoppingOrder[] filterFindByG_U_PPPS_PrevAndNext(long orderId, long groupId, long userId, java.lang.String ppPaymentStatus, OrderByComparator<ShoppingOrder> orderByComparator) throws NoSuchOrderException
orderId - the primary key of the current shopping ordergroupId - the group IDuserId - the user IDppPaymentStatus - the pp payment statusorderByComparator - the comparator to order the set by (optionally null)NoSuchOrderException - if a shopping order with the primary key could not be foundpublic static void removeByG_U_PPPS(long groupId,
long userId,
java.lang.String ppPaymentStatus)
groupId - the group IDuserId - the user IDppPaymentStatus - the pp payment statuspublic static int countByG_U_PPPS(long groupId,
long userId,
java.lang.String ppPaymentStatus)
groupId - the group IDuserId - the user IDppPaymentStatus - the pp payment statuspublic static int filterCountByG_U_PPPS(long groupId,
long userId,
java.lang.String ppPaymentStatus)
groupId - the group IDuserId - the user IDppPaymentStatus - the pp payment statuspublic static void cacheResult(ShoppingOrder shoppingOrder)
shoppingOrder - the shopping orderpublic static void cacheResult(java.util.List<ShoppingOrder> shoppingOrders)
shoppingOrders - the shopping orderspublic static ShoppingOrder create(long orderId)
orderId - the primary key for the new shopping orderpublic static ShoppingOrder remove(long orderId) throws NoSuchOrderException
orderId - the primary key of the shopping orderNoSuchOrderException - if a shopping order with the primary key could not be foundpublic static ShoppingOrder updateImpl(ShoppingOrder shoppingOrder)
public static ShoppingOrder findByPrimaryKey(long orderId) throws NoSuchOrderException
NoSuchOrderException if it could not be found.orderId - the primary key of the shopping orderNoSuchOrderException - if a shopping order with the primary key could not be foundpublic static ShoppingOrder fetchByPrimaryKey(long orderId)
null if it could not be found.orderId - the primary key of the shopping ordernull if a shopping order with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,ShoppingOrder> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<ShoppingOrder> findAll()
public static java.util.List<ShoppingOrder> 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 ShoppingOrderModelImpl. 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 shopping ordersend - the upper bound of the range of shopping orders (not inclusive)public static java.util.List<ShoppingOrder> findAll(int start, int end, OrderByComparator<ShoppingOrder> 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 ShoppingOrderModelImpl. 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 shopping ordersend - the upper bound of the range of shopping orders (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static void removeAll()
public static int countAll()
public static ShoppingOrderPersistence getPersistence()
@Deprecated public void setPersistence(ShoppingOrderPersistence persistence)