Liferay 7.0-ce-m6

com.liferay.portlet.shopping.service.persistence
Class ShoppingOrderUtil

java.lang.Object
  extended by com.liferay.portlet.shopping.service.persistence.ShoppingOrderUtil

@ProviderType
public class ShoppingOrderUtil
extends Object

The persistence utility for the shopping order service. This utility wraps 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

See Also:
ShoppingOrderPersistence, com.liferay.portlet.shopping.service.persistence.impl.ShoppingOrderPersistenceImpl

Constructor Summary
ShoppingOrderUtil()
           
 
Method Summary
static void cacheResult(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, 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(String number)
          Returns the number of shopping orders where number = ?.
static int countByPPTxnId(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, 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, 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(String number)
          Returns the shopping order where number = ? or returns null if it could not be found.
static ShoppingOrder fetchByNumber(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(String ppTxnId)
          Returns the shopping order where ppTxnId = ? or returns null if it could not be found.
static ShoppingOrder fetchByPPTxnId(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 Map<Serializable,ShoppingOrder> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
static int filterCountByG_U_PPPS(long groupId, long userId, 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, 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 List<ShoppingOrder> filterFindByG_U_PPPS(long groupId, long userId, String ppPaymentStatus)
          Returns all the shopping orders that the user has permission to view where groupId = ? and userId = ? and ppPaymentStatus = ?.
static List<ShoppingOrder> filterFindByG_U_PPPS(long groupId, long userId, 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 List<ShoppingOrder> filterFindByG_U_PPPS(long groupId, long userId, 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 List<ShoppingOrder> filterFindByGroupId(long groupId)
          Returns all the shopping orders that the user has permission to view where groupId = ?.
static 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 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 List<ShoppingOrder> findAll()
          Returns all the shopping orders.
static List<ShoppingOrder> findAll(int start, int end)
          Returns a range of all the shopping orders.
static 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, 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, 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, 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 List<ShoppingOrder> findByG_U_PPPS(long groupId, long userId, String ppPaymentStatus)
          Returns all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.
static List<ShoppingOrder> findByG_U_PPPS(long groupId, long userId, String ppPaymentStatus, int start, int end)
          Returns a range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.
static List<ShoppingOrder> findByG_U_PPPS(long groupId, long userId, 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 List<ShoppingOrder> findByGroupId(long groupId)
          Returns all the shopping orders where groupId = ?.
static List<ShoppingOrder> findByGroupId(long groupId, int start, int end)
          Returns a range of all the shopping orders where groupId = ?.
static 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(String number)
          Returns the shopping order where number = ? or throws a NoSuchOrderException if it could not be found.
static ShoppingOrder findByPPTxnId(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 List<ShoppingOrder> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<ShoppingOrder> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static 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, 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(String number)
          Removes the shopping order where number = ? from the database.
static ShoppingOrder removeByPPTxnId(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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShoppingOrderUtil

public ShoppingOrderUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(ShoppingOrder shoppingOrder)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<ShoppingOrder> findWithDynamicQuery(DynamicQuery dynamicQuery)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<ShoppingOrder> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                       int start,
                                                       int end)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<ShoppingOrder> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                       int start,
                                                       int end,
                                                       OrderByComparator<ShoppingOrder> orderByComparator)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

update

public static ShoppingOrder update(ShoppingOrder shoppingOrder)
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel)

update

public static ShoppingOrder update(ShoppingOrder shoppingOrder,
                                   ServiceContext serviceContext)
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)

findByGroupId

public static List<ShoppingOrder> findByGroupId(long groupId)
Returns all the shopping orders where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the matching shopping orders

findByGroupId

public static List<ShoppingOrder> findByGroupId(long groupId,
                                                int start,
                                                int end)
Returns a range of all the shopping orders where groupId = ?.

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.

Parameters:
groupId - the group ID
start - the lower bound of the range of shopping orders
end - the upper bound of the range of shopping orders (not inclusive)
Returns:
the range of matching shopping orders

findByGroupId

public static List<ShoppingOrder> findByGroupId(long groupId,
                                                int start,
                                                int end,
                                                OrderByComparator<ShoppingOrder> orderByComparator)
Returns an ordered range of all the shopping orders where groupId = ?.

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.

Parameters:
groupId - the group ID
start - the lower bound of the range of shopping orders
end - the upper bound of the range of shopping orders (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching shopping orders

findByGroupId_First

public static ShoppingOrder findByGroupId_First(long groupId,
                                                OrderByComparator<ShoppingOrder> orderByComparator)
                                         throws NoSuchOrderException
Returns the first shopping order in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching shopping order
Throws:
NoSuchOrderException - if a matching shopping order could not be found

fetchByGroupId_First

public static ShoppingOrder fetchByGroupId_First(long groupId,
                                                 OrderByComparator<ShoppingOrder> orderByComparator)
Returns the first shopping order in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching shopping order, or null if a matching shopping order could not be found

findByGroupId_Last

public static ShoppingOrder findByGroupId_Last(long groupId,
                                               OrderByComparator<ShoppingOrder> orderByComparator)
                                        throws NoSuchOrderException
Returns the last shopping order in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching shopping order
Throws:
NoSuchOrderException - if a matching shopping order could not be found

fetchByGroupId_Last

public static ShoppingOrder fetchByGroupId_Last(long groupId,
                                                OrderByComparator<ShoppingOrder> orderByComparator)
Returns the last shopping order in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching shopping order, or null if a matching shopping order could not be found

findByGroupId_PrevAndNext

public static ShoppingOrder[] findByGroupId_PrevAndNext(long orderId,
                                                        long groupId,
                                                        OrderByComparator<ShoppingOrder> orderByComparator)
                                                 throws NoSuchOrderException
Returns the shopping orders before and after the current shopping order in the ordered set where groupId = ?.

Parameters:
orderId - the primary key of the current shopping order
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next shopping order
Throws:
NoSuchOrderException - if a shopping order with the primary key could not be found

filterFindByGroupId

public static List<ShoppingOrder> filterFindByGroupId(long groupId)
Returns all the shopping orders that the user has permission to view where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the matching shopping orders that the user has permission to view

filterFindByGroupId

public static 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 = ?.

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.

Parameters:
groupId - the group ID
start - the lower bound of the range of shopping orders
end - the upper bound of the range of shopping orders (not inclusive)
Returns:
the range of matching shopping orders that the user has permission to view

filterFindByGroupId

public static 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 = ?.

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.

Parameters:
groupId - the group ID
start - the lower bound of the range of shopping orders
end - the upper bound of the range of shopping orders (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching shopping orders that the user has permission to view

filterFindByGroupId_PrevAndNext

public static ShoppingOrder[] filterFindByGroupId_PrevAndNext(long orderId,
                                                              long groupId,
                                                              OrderByComparator<ShoppingOrder> orderByComparator)
                                                       throws NoSuchOrderException
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 = ?.

Parameters:
orderId - the primary key of the current shopping order
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next shopping order
Throws:
NoSuchOrderException - if a shopping order with the primary key could not be found

removeByGroupId

public static void removeByGroupId(long groupId)
Removes all the shopping orders where groupId = ? from the database.

Parameters:
groupId - the group ID

countByGroupId

public static int countByGroupId(long groupId)
Returns the number of shopping orders where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the number of matching shopping orders

filterCountByGroupId

public static int filterCountByGroupId(long groupId)
Returns the number of shopping orders that the user has permission to view where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the number of matching shopping orders that the user has permission to view

findByNumber

public static ShoppingOrder findByNumber(String number)
                                  throws NoSuchOrderException
Returns the shopping order where number = ? or throws a NoSuchOrderException if it could not be found.

Parameters:
number - the number
Returns:
the matching shopping order
Throws:
NoSuchOrderException - if a matching shopping order could not be found

fetchByNumber

public static ShoppingOrder fetchByNumber(String number)
Returns the shopping order where number = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
number - the number
Returns:
the matching shopping order, or null if a matching shopping order could not be found

fetchByNumber

public static ShoppingOrder fetchByNumber(String number,
                                          boolean retrieveFromCache)
Returns the shopping order where number = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
number - the number
retrieveFromCache - whether to use the finder cache
Returns:
the matching shopping order, or null if a matching shopping order could not be found

removeByNumber

public static ShoppingOrder removeByNumber(String number)
                                    throws NoSuchOrderException
Removes the shopping order where number = ? from the database.

Parameters:
number - the number
Returns:
the shopping order that was removed
Throws:
NoSuchOrderException

countByNumber

public static int countByNumber(String number)
Returns the number of shopping orders where number = ?.

Parameters:
number - the number
Returns:
the number of matching shopping orders

findByPPTxnId

public static ShoppingOrder findByPPTxnId(String ppTxnId)
                                   throws NoSuchOrderException
Returns the shopping order where ppTxnId = ? or throws a NoSuchOrderException if it could not be found.

Parameters:
ppTxnId - the pp txn ID
Returns:
the matching shopping order
Throws:
NoSuchOrderException - if a matching shopping order could not be found

fetchByPPTxnId

public static ShoppingOrder fetchByPPTxnId(String ppTxnId)
Returns the shopping order where ppTxnId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
ppTxnId - the pp txn ID
Returns:
the matching shopping order, or null if a matching shopping order could not be found

fetchByPPTxnId

public static ShoppingOrder fetchByPPTxnId(String ppTxnId,
                                           boolean retrieveFromCache)
Returns the shopping order where ppTxnId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
ppTxnId - the pp txn ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching shopping order, or null if a matching shopping order could not be found

removeByPPTxnId

public static ShoppingOrder removeByPPTxnId(String ppTxnId)
                                     throws NoSuchOrderException
Removes the shopping order where ppTxnId = ? from the database.

Parameters:
ppTxnId - the pp txn ID
Returns:
the shopping order that was removed
Throws:
NoSuchOrderException

countByPPTxnId

public static int countByPPTxnId(String ppTxnId)
Returns the number of shopping orders where ppTxnId = ?.

Parameters:
ppTxnId - the pp txn ID
Returns:
the number of matching shopping orders

findByG_U_PPPS

public static List<ShoppingOrder> findByG_U_PPPS(long groupId,
                                                 long userId,
                                                 String ppPaymentStatus)
Returns all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.

Parameters:
groupId - the group ID
userId - the user ID
ppPaymentStatus - the pp payment status
Returns:
the matching shopping orders

findByG_U_PPPS

public static List<ShoppingOrder> findByG_U_PPPS(long groupId,
                                                 long userId,
                                                 String ppPaymentStatus,
                                                 int start,
                                                 int end)
Returns a range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.

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.

Parameters:
groupId - the group ID
userId - the user ID
ppPaymentStatus - the pp payment status
start - the lower bound of the range of shopping orders
end - the upper bound of the range of shopping orders (not inclusive)
Returns:
the range of matching shopping orders

findByG_U_PPPS

public static List<ShoppingOrder> findByG_U_PPPS(long groupId,
                                                 long userId,
                                                 String ppPaymentStatus,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<ShoppingOrder> orderByComparator)
Returns an ordered range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.

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.

Parameters:
groupId - the group ID
userId - the user ID
ppPaymentStatus - the pp payment status
start - the lower bound of the range of shopping orders
end - the upper bound of the range of shopping orders (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching shopping orders

findByG_U_PPPS_First

public static ShoppingOrder findByG_U_PPPS_First(long groupId,
                                                 long userId,
                                                 String ppPaymentStatus,
                                                 OrderByComparator<ShoppingOrder> orderByComparator)
                                          throws NoSuchOrderException
Returns the first shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?.

Parameters:
groupId - the group ID
userId - the user ID
ppPaymentStatus - the pp payment status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching shopping order
Throws:
NoSuchOrderException - if a matching shopping order could not be found

fetchByG_U_PPPS_First

public static ShoppingOrder fetchByG_U_PPPS_First(long groupId,
                                                  long userId,
                                                  String ppPaymentStatus,
                                                  OrderByComparator<ShoppingOrder> orderByComparator)
Returns the first shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?.

Parameters:
groupId - the group ID
userId - the user ID
ppPaymentStatus - the pp payment status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching shopping order, or null if a matching shopping order could not be found

findByG_U_PPPS_Last

public static ShoppingOrder findByG_U_PPPS_Last(long groupId,
                                                long userId,
                                                String ppPaymentStatus,
                                                OrderByComparator<ShoppingOrder> orderByComparator)
                                         throws NoSuchOrderException
Returns the last shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?.

Parameters:
groupId - the group ID
userId - the user ID
ppPaymentStatus - the pp payment status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching shopping order
Throws:
NoSuchOrderException - if a matching shopping order could not be found

fetchByG_U_PPPS_Last

public static ShoppingOrder fetchByG_U_PPPS_Last(long groupId,
                                                 long userId,
                                                 String ppPaymentStatus,
                                                 OrderByComparator<ShoppingOrder> orderByComparator)
Returns the last shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?.

Parameters:
groupId - the group ID
userId - the user ID
ppPaymentStatus - the pp payment status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching shopping order, or null if a matching shopping order could not be found

findByG_U_PPPS_PrevAndNext

public static ShoppingOrder[] findByG_U_PPPS_PrevAndNext(long orderId,
                                                         long groupId,
                                                         long userId,
                                                         String ppPaymentStatus,
                                                         OrderByComparator<ShoppingOrder> orderByComparator)
                                                  throws NoSuchOrderException
Returns the shopping orders before and after the current shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?.

Parameters:
orderId - the primary key of the current shopping order
groupId - the group ID
userId - the user ID
ppPaymentStatus - the pp payment status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next shopping order
Throws:
NoSuchOrderException - if a shopping order with the primary key could not be found

filterFindByG_U_PPPS

public static List<ShoppingOrder> filterFindByG_U_PPPS(long groupId,
                                                       long userId,
                                                       String ppPaymentStatus)
Returns all the shopping orders that the user has permission to view where groupId = ? and userId = ? and ppPaymentStatus = ?.

Parameters:
groupId - the group ID
userId - the user ID
ppPaymentStatus - the pp payment status
Returns:
the matching shopping orders that the user has permission to view

filterFindByG_U_PPPS

public static List<ShoppingOrder> filterFindByG_U_PPPS(long groupId,
                                                       long userId,
                                                       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 = ?.

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.

Parameters:
groupId - the group ID
userId - the user ID
ppPaymentStatus - the pp payment status
start - the lower bound of the range of shopping orders
end - the upper bound of the range of shopping orders (not inclusive)
Returns:
the range of matching shopping orders that the user has permission to view

filterFindByG_U_PPPS

public static List<ShoppingOrder> filterFindByG_U_PPPS(long groupId,
                                                       long userId,
                                                       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 = ?.

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.

Parameters:
groupId - the group ID
userId - the user ID
ppPaymentStatus - the pp payment status
start - the lower bound of the range of shopping orders
end - the upper bound of the range of shopping orders (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching shopping orders that the user has permission to view

filterFindByG_U_PPPS_PrevAndNext

public static ShoppingOrder[] filterFindByG_U_PPPS_PrevAndNext(long orderId,
                                                               long groupId,
                                                               long userId,
                                                               String ppPaymentStatus,
                                                               OrderByComparator<ShoppingOrder> orderByComparator)
                                                        throws NoSuchOrderException
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 = ?.

Parameters:
orderId - the primary key of the current shopping order
groupId - the group ID
userId - the user ID
ppPaymentStatus - the pp payment status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next shopping order
Throws:
NoSuchOrderException - if a shopping order with the primary key could not be found

removeByG_U_PPPS

public static void removeByG_U_PPPS(long groupId,
                                    long userId,
                                    String ppPaymentStatus)
Removes all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ? from the database.

Parameters:
groupId - the group ID
userId - the user ID
ppPaymentStatus - the pp payment status

countByG_U_PPPS

public static int countByG_U_PPPS(long groupId,
                                  long userId,
                                  String ppPaymentStatus)
Returns the number of shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.

Parameters:
groupId - the group ID
userId - the user ID
ppPaymentStatus - the pp payment status
Returns:
the number of matching shopping orders

filterCountByG_U_PPPS

public static int filterCountByG_U_PPPS(long groupId,
                                        long userId,
                                        String ppPaymentStatus)
Returns the number of shopping orders that the user has permission to view where groupId = ? and userId = ? and ppPaymentStatus = ?.

Parameters:
groupId - the group ID
userId - the user ID
ppPaymentStatus - the pp payment status
Returns:
the number of matching shopping orders that the user has permission to view

cacheResult

public static void cacheResult(ShoppingOrder shoppingOrder)
Caches the shopping order in the entity cache if it is enabled.

Parameters:
shoppingOrder - the shopping order

cacheResult

public static void cacheResult(List<ShoppingOrder> shoppingOrders)
Caches the shopping orders in the entity cache if it is enabled.

Parameters:
shoppingOrders - the shopping orders

create

public static ShoppingOrder create(long orderId)
Creates a new shopping order with the primary key. Does not add the shopping order to the database.

Parameters:
orderId - the primary key for the new shopping order
Returns:
the new shopping order

remove

public static ShoppingOrder remove(long orderId)
                            throws NoSuchOrderException
Removes the shopping order with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
orderId - the primary key of the shopping order
Returns:
the shopping order that was removed
Throws:
NoSuchOrderException - if a shopping order with the primary key could not be found

updateImpl

public static ShoppingOrder updateImpl(ShoppingOrder shoppingOrder)

findByPrimaryKey

public static ShoppingOrder findByPrimaryKey(long orderId)
                                      throws NoSuchOrderException
Returns the shopping order with the primary key or throws a NoSuchOrderException if it could not be found.

Parameters:
orderId - the primary key of the shopping order
Returns:
the shopping order
Throws:
NoSuchOrderException - if a shopping order with the primary key could not be found

fetchByPrimaryKey

public static ShoppingOrder fetchByPrimaryKey(long orderId)
Returns the shopping order with the primary key or returns null if it could not be found.

Parameters:
orderId - the primary key of the shopping order
Returns:
the shopping order, or null if a shopping order with the primary key could not be found

fetchByPrimaryKeys

public static Map<Serializable,ShoppingOrder> fetchByPrimaryKeys(Set<Serializable> primaryKeys)

findAll

public static List<ShoppingOrder> findAll()
Returns all the shopping orders.

Returns:
the shopping orders

findAll

public static List<ShoppingOrder> findAll(int start,
                                          int end)
Returns a range of all the shopping orders.

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.

Parameters:
start - the lower bound of the range of shopping orders
end - the upper bound of the range of shopping orders (not inclusive)
Returns:
the range of shopping orders

findAll

public static List<ShoppingOrder> findAll(int start,
                                          int end,
                                          OrderByComparator<ShoppingOrder> orderByComparator)
Returns an ordered range of all the shopping orders.

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.

Parameters:
start - the lower bound of the range of shopping orders
end - the upper bound of the range of shopping orders (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of shopping orders

removeAll

public static void removeAll()
Removes all the shopping orders from the database.


countAll

public static int countAll()
Returns the number of shopping orders.

Returns:
the number of shopping orders

getPersistence

public static ShoppingOrderPersistence getPersistence()

setPersistence

@Deprecated
public void setPersistence(ShoppingOrderPersistence persistence)
Deprecated. As of 6.2.0


Liferay 7.0-ce-m6