Liferay 6.0.5

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

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

public class ShoppingOrderUtil
extends Object

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

Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

See Also:
ShoppingOrderPersistence, ShoppingOrderPersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

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()
          Counts all the shopping orders.
static int countByG_U_PPPS(long groupId, long userId, String ppPaymentStatus)
          Counts all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.
static int countByGroupId(long groupId)
          Counts all the shopping orders where groupId = ?.
static int countByNumber(String number)
          Counts all the shopping orders where number = ?.
static int countByPPTxnId(String ppTxnId)
          Counts all the shopping orders where ppTxnId = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static ShoppingOrder create(long orderId)
          Creates a new shopping order with the primary key.
static ShoppingOrder fetchByNumber(String number)
          Finds the shopping order where number = ? or returns null if it could not be found.
static ShoppingOrder fetchByNumber(String number, boolean retrieveFromCache)
          Finds the shopping order where number = ? or returns null if it could not be found, optionally using the finder cache.
static ShoppingOrder fetchByPPTxnId(String ppTxnId)
          Finds the shopping order where ppTxnId = ? or returns null if it could not be found.
static ShoppingOrder fetchByPPTxnId(String ppTxnId, boolean retrieveFromCache)
          Finds the shopping order where ppTxnId = ? or returns null if it could not be found, optionally using the finder cache.
static ShoppingOrder fetchByPrimaryKey(long orderId)
          Finds the shopping order with the primary key or returns null if it could not be found.
static int filterCountByG_U_PPPS(long groupId, long userId, String ppPaymentStatus)
          Filters by the user's permissions and counts all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.
static int filterCountByGroupId(long groupId)
          Filters by the user's permissions and counts all the shopping orders where groupId = ?.
static List<ShoppingOrder> filterFindByG_U_PPPS(long groupId, long userId, String ppPaymentStatus)
          Filters by the user's permissions and finds all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.
static List<ShoppingOrder> filterFindByG_U_PPPS(long groupId, long userId, String ppPaymentStatus, int start, int end)
          Filters by the user's permissions and finds a range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.
static List<ShoppingOrder> filterFindByG_U_PPPS(long groupId, long userId, String ppPaymentStatus, int start, int end, OrderByComparator orderByComparator)
          Filters by the user's permissions and finds an ordered range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.
static List<ShoppingOrder> filterFindByGroupId(long groupId)
          Filters by the user's permissions and finds all the shopping orders where groupId = ?.
static List<ShoppingOrder> filterFindByGroupId(long groupId, int start, int end)
          Filters by the user's permissions and finds a range of all the shopping orders where groupId = ?.
static List<ShoppingOrder> filterFindByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Filters by the user's permissions and finds an ordered range of all the shopping orders where groupId = ?.
static List<ShoppingOrder> findAll()
          Finds all the shopping orders.
static List<ShoppingOrder> findAll(int start, int end)
          Finds a range of all the shopping orders.
static List<ShoppingOrder> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the shopping orders.
static ShoppingOrder findByG_U_PPPS_First(long groupId, long userId, String ppPaymentStatus, OrderByComparator orderByComparator)
          Finds 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 orderByComparator)
          Finds 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 orderByComparator)
          Finds 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)
          Finds 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)
          Finds 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 orderByComparator)
          Finds an ordered range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.
static ShoppingOrder findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Finds the first shopping order in the ordered set where groupId = ?.
static ShoppingOrder findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Finds the last shopping order in the ordered set where groupId = ?.
static ShoppingOrder[] findByGroupId_PrevAndNext(long orderId, long groupId, OrderByComparator orderByComparator)
          Finds the shopping orders before and after the current shopping order in the ordered set where groupId = ?.
static List<ShoppingOrder> findByGroupId(long groupId)
          Finds all the shopping orders where groupId = ?.
static List<ShoppingOrder> findByGroupId(long groupId, int start, int end)
          Finds a range of all the shopping orders where groupId = ?.
static List<ShoppingOrder> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the shopping orders where groupId = ?.
static ShoppingOrder findByNumber(String number)
          Finds the shopping order where number = ? or throws a NoSuchOrderException if it could not be found.
static ShoppingOrder findByPPTxnId(String ppTxnId)
          Finds the shopping order where ppTxnId = ? or throws a NoSuchOrderException if it could not be found.
static ShoppingOrder findByPrimaryKey(long orderId)
          Finds 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 orderByComparator)
           
static ShoppingOrderPersistence getPersistence()
           
static ShoppingOrder remove(long orderId)
          Removes the shopping order with the primary key from the database.
static ShoppingOrder remove(ShoppingOrder shoppingOrder)
           
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 void removeByNumber(String number)
          Removes the shopping order where number = ? from the database.
static void removeByPPTxnId(String ppTxnId)
          Removes the shopping order where ppTxnId = ? from the database.
 void setPersistence(ShoppingOrderPersistence persistence)
           
static ShoppingOrder update(ShoppingOrder shoppingOrder, boolean merge)
           
static ShoppingOrder update(ShoppingOrder shoppingOrder, boolean merge, ServiceContext serviceContext)
           
static ShoppingOrder updateImpl(ShoppingOrder shoppingOrder, boolean merge)
           
 
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 long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

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

findWithDynamicQuery

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

findWithDynamicQuery

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

remove

public static ShoppingOrder remove(ShoppingOrder shoppingOrder)
                            throws SystemException
Throws:
SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static ShoppingOrder update(ShoppingOrder shoppingOrder,
                                   boolean merge)
                            throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

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

cacheResult

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

Parameters:
shoppingOrder - the shopping order to cache

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 to cache

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 SystemException,
                                   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 to remove
Returns:
the shopping order that was removed
Throws:
NoSuchOrderException - if a shopping order with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static ShoppingOrder updateImpl(ShoppingOrder shoppingOrder,
                                       boolean merge)
                                throws SystemException
Throws:
SystemException

findByPrimaryKey

public static ShoppingOrder findByPrimaryKey(long orderId)
                                      throws SystemException,
                                             NoSuchOrderException
Finds 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 to find
Returns:
the shopping order
Throws:
NoSuchOrderException - if a shopping order with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static ShoppingOrder fetchByPrimaryKey(long orderId)
                                       throws SystemException
Finds 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 to find
Returns:
the shopping order, or null if a shopping order with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId

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

Parameters:
groupId - the group id to search with
Returns:
the matching shopping orders
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<ShoppingOrder> findByGroupId(long groupId,
                                                int start,
                                                int end)
                                         throws SystemException
Finds 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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of shopping orders to return
end - the upper bound of the range of shopping orders to return (not inclusive)
Returns:
the range of matching shopping orders
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<ShoppingOrder> findByGroupId(long groupId,
                                                int start,
                                                int end,
                                                OrderByComparator orderByComparator)
                                         throws SystemException
Finds 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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of shopping orders to return
end - the upper bound of the range of shopping orders to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching shopping orders
Throws:
SystemException - if a system exception occurred

findByGroupId_First

public static ShoppingOrder findByGroupId_First(long groupId,
                                                OrderByComparator orderByComparator)
                                         throws SystemException,
                                                NoSuchOrderException
Finds the first shopping order in the ordered set 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.

Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching shopping order
Throws:
NoSuchOrderException - if a matching shopping order could not be found
SystemException - if a system exception occurred

findByGroupId_Last

public static ShoppingOrder findByGroupId_Last(long groupId,
                                               OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchOrderException
Finds the last shopping order in the ordered set 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.

Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching shopping order
Throws:
NoSuchOrderException - if a matching shopping order could not be found
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

public static ShoppingOrder[] findByGroupId_PrevAndNext(long orderId,
                                                        long groupId,
                                                        OrderByComparator orderByComparator)
                                                 throws SystemException,
                                                        NoSuchOrderException
Finds the shopping orders before and after the current shopping order in the ordered set 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.

Parameters:
orderId - the primary key of the current shopping order
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next shopping order
Throws:
NoSuchOrderException - if a shopping order with the primary key could not be found
SystemException - if a system exception occurred

filterFindByGroupId

public static List<ShoppingOrder> filterFindByGroupId(long groupId)
                                               throws SystemException
Filters by the user's permissions and finds all the shopping orders where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the matching shopping orders that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public static List<ShoppingOrder> filterFindByGroupId(long groupId,
                                                      int start,
                                                      int end)
                                               throws SystemException
Filters by the user's permissions and finds 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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of shopping orders to return
end - the upper bound of the range of shopping orders to return (not inclusive)
Returns:
the range of matching shopping orders that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public static List<ShoppingOrder> filterFindByGroupId(long groupId,
                                                      int start,
                                                      int end,
                                                      OrderByComparator orderByComparator)
                                               throws SystemException
Filters by the user's permissions and finds 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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of shopping orders to return
end - the upper bound of the range of shopping orders to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching shopping orders that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByNumber

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

Parameters:
number - the number to search with
Returns:
the matching shopping order
Throws:
NoSuchOrderException - if a matching shopping order could not be found
SystemException - if a system exception occurred

fetchByNumber

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

Parameters:
number - the number to search with
Returns:
the matching shopping order, or null if a matching shopping order could not be found
Throws:
SystemException - if a system exception occurred

fetchByNumber

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

Parameters:
number - the number to search with
Returns:
the matching shopping order, or null if a matching shopping order could not be found
Throws:
SystemException - if a system exception occurred

findByPPTxnId

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

Parameters:
ppTxnId - the pp txn id to search with
Returns:
the matching shopping order
Throws:
NoSuchOrderException - if a matching shopping order could not be found
SystemException - if a system exception occurred

fetchByPPTxnId

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

Parameters:
ppTxnId - the pp txn id to search with
Returns:
the matching shopping order, or null if a matching shopping order could not be found
Throws:
SystemException - if a system exception occurred

fetchByPPTxnId

public static ShoppingOrder fetchByPPTxnId(String ppTxnId,
                                           boolean retrieveFromCache)
                                    throws SystemException
Finds 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 to search with
Returns:
the matching shopping order, or null if a matching shopping order could not be found
Throws:
SystemException - if a system exception occurred

findByG_U_PPPS

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

Parameters:
groupId - the group id to search with
userId - the user id to search with
ppPaymentStatus - the pp payment status to search with
Returns:
the matching shopping orders
Throws:
SystemException - if a system exception occurred

findByG_U_PPPS

public static List<ShoppingOrder> findByG_U_PPPS(long groupId,
                                                 long userId,
                                                 String ppPaymentStatus,
                                                 int start,
                                                 int end)
                                          throws SystemException
Finds 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.

Parameters:
groupId - the group id to search with
userId - the user id to search with
ppPaymentStatus - the pp payment status to search with
start - the lower bound of the range of shopping orders to return
end - the upper bound of the range of shopping orders to return (not inclusive)
Returns:
the range of matching shopping orders
Throws:
SystemException - if a system exception occurred

findByG_U_PPPS

public static List<ShoppingOrder> findByG_U_PPPS(long groupId,
                                                 long userId,
                                                 String ppPaymentStatus,
                                                 int start,
                                                 int end,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException
Finds 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.

Parameters:
groupId - the group id to search with
userId - the user id to search with
ppPaymentStatus - the pp payment status to search with
start - the lower bound of the range of shopping orders to return
end - the upper bound of the range of shopping orders to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching shopping orders
Throws:
SystemException - if a system exception occurred

findByG_U_PPPS_First

public static ShoppingOrder findByG_U_PPPS_First(long groupId,
                                                 long userId,
                                                 String ppPaymentStatus,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException,
                                                 NoSuchOrderException
Finds the first shopping order in the ordered set 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.

Parameters:
groupId - the group id to search with
userId - the user id to search with
ppPaymentStatus - the pp payment status to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching shopping order
Throws:
NoSuchOrderException - if a matching shopping order could not be found
SystemException - if a system exception occurred

findByG_U_PPPS_Last

public static ShoppingOrder findByG_U_PPPS_Last(long groupId,
                                                long userId,
                                                String ppPaymentStatus,
                                                OrderByComparator orderByComparator)
                                         throws SystemException,
                                                NoSuchOrderException
Finds the last shopping order in the ordered set 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.

Parameters:
groupId - the group id to search with
userId - the user id to search with
ppPaymentStatus - the pp payment status to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching shopping order
Throws:
NoSuchOrderException - if a matching shopping order could not be found
SystemException - if a system exception occurred

findByG_U_PPPS_PrevAndNext

public static ShoppingOrder[] findByG_U_PPPS_PrevAndNext(long orderId,
                                                         long groupId,
                                                         long userId,
                                                         String ppPaymentStatus,
                                                         OrderByComparator orderByComparator)
                                                  throws SystemException,
                                                         NoSuchOrderException
Finds the shopping orders before and after the current shopping order in the ordered set 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.

Parameters:
orderId - the primary key of the current shopping order
groupId - the group id to search with
userId - the user id to search with
ppPaymentStatus - the pp payment status to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next shopping order
Throws:
NoSuchOrderException - if a shopping order with the primary key could not be found
SystemException - if a system exception occurred

filterFindByG_U_PPPS

public static List<ShoppingOrder> filterFindByG_U_PPPS(long groupId,
                                                       long userId,
                                                       String ppPaymentStatus)
                                                throws SystemException
Filters by the user's permissions and finds all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.

Parameters:
groupId - the group id to search with
userId - the user id to search with
ppPaymentStatus - the pp payment status to search with
Returns:
the matching shopping orders that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_U_PPPS

public static List<ShoppingOrder> filterFindByG_U_PPPS(long groupId,
                                                       long userId,
                                                       String ppPaymentStatus,
                                                       int start,
                                                       int end)
                                                throws SystemException
Filters by the user's permissions and finds 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.

Parameters:
groupId - the group id to search with
userId - the user id to search with
ppPaymentStatus - the pp payment status to search with
start - the lower bound of the range of shopping orders to return
end - the upper bound of the range of shopping orders to return (not inclusive)
Returns:
the range of matching shopping orders that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_U_PPPS

public static List<ShoppingOrder> filterFindByG_U_PPPS(long groupId,
                                                       long userId,
                                                       String ppPaymentStatus,
                                                       int start,
                                                       int end,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException
Filters by the user's permissions and finds 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.

Parameters:
groupId - the group id to search with
userId - the user id to search with
ppPaymentStatus - the pp payment status to search with
start - the lower bound of the range of shopping orders to return
end - the upper bound of the range of shopping orders to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching shopping orders that the user has permission to view
Throws:
SystemException - if a system exception occurred

findAll

public static List<ShoppingOrder> findAll()
                                   throws SystemException
Finds all the shopping orders.

Returns:
the shopping orders
Throws:
SystemException - if a system exception occurred

findAll

public static List<ShoppingOrder> findAll(int start,
                                          int end)
                                   throws SystemException
Finds 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.

Parameters:
start - the lower bound of the range of shopping orders to return
end - the upper bound of the range of shopping orders to return (not inclusive)
Returns:
the range of shopping orders
Throws:
SystemException - if a system exception occurred

findAll

public static List<ShoppingOrder> findAll(int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Finds 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.

Parameters:
start - the lower bound of the range of shopping orders to return
end - the upper bound of the range of shopping orders to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of shopping orders
Throws:
SystemException - if a system exception occurred

removeByGroupId

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

Parameters:
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred

removeByNumber

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

Parameters:
number - the number to search with
Throws:
SystemException - if a system exception occurred
NoSuchOrderException

removeByPPTxnId

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

Parameters:
ppTxnId - the pp txn id to search with
Throws:
SystemException - if a system exception occurred
NoSuchOrderException

removeByG_U_PPPS

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

Parameters:
groupId - the group id to search with
userId - the user id to search with
ppPaymentStatus - the pp payment status to search with
Throws:
SystemException - if a system exception occurred

removeAll

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

Throws:
SystemException - if a system exception occurred

countByGroupId

public static int countByGroupId(long groupId)
                          throws SystemException
Counts all the shopping orders where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the number of matching shopping orders
Throws:
SystemException - if a system exception occurred

filterCountByGroupId

public static int filterCountByGroupId(long groupId)
                                throws SystemException
Filters by the user's permissions and counts all the shopping orders where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the number of matching shopping orders that the user has permission to view
Throws:
SystemException - if a system exception occurred

countByNumber

public static int countByNumber(String number)
                         throws SystemException
Counts all the shopping orders where number = ?.

Parameters:
number - the number to search with
Returns:
the number of matching shopping orders
Throws:
SystemException - if a system exception occurred

countByPPTxnId

public static int countByPPTxnId(String ppTxnId)
                          throws SystemException
Counts all the shopping orders where ppTxnId = ?.

Parameters:
ppTxnId - the pp txn id to search with
Returns:
the number of matching shopping orders
Throws:
SystemException - if a system exception occurred

countByG_U_PPPS

public static int countByG_U_PPPS(long groupId,
                                  long userId,
                                  String ppPaymentStatus)
                           throws SystemException
Counts all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.

Parameters:
groupId - the group id to search with
userId - the user id to search with
ppPaymentStatus - the pp payment status to search with
Returns:
the number of matching shopping orders
Throws:
SystemException - if a system exception occurred

filterCountByG_U_PPPS

public static int filterCountByG_U_PPPS(long groupId,
                                        long userId,
                                        String ppPaymentStatus)
                                 throws SystemException
Filters by the user's permissions and counts all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.

Parameters:
groupId - the group id to search with
userId - the user id to search with
ppPaymentStatus - the pp payment status to search with
Returns:
the number of matching shopping orders that the user has permission to view
Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Counts all the shopping orders.

Returns:
the number of shopping orders
Throws:
SystemException - if a system exception occurred

getPersistence

public static ShoppingOrderPersistence getPersistence()

setPersistence

public void setPersistence(ShoppingOrderPersistence persistence)

Liferay 6.0.5