Liferay 6.1.2-ce-ga3

com.liferay.portlet.shopping.service.persistence
Interface ShoppingOrderPersistence

All Superinterfaces:
BasePersistence<ShoppingOrder>

public interface ShoppingOrderPersistence
extends BasePersistence<ShoppingOrder>

The persistence interface for the shopping order service.

Caching information and settings can be found in portal.properties

See Also:
ShoppingOrderPersistenceImpl, ShoppingOrderUtil

Method Summary
 void cacheResult(List<ShoppingOrder> shoppingOrders)
          Caches the shopping orders in the entity cache if it is enabled.
 void cacheResult(ShoppingOrder shoppingOrder)
          Caches the shopping order in the entity cache if it is enabled.
 int countAll()
          Returns the number of shopping orders.
 int countByG_U_PPPS(long groupId, long userId, String ppPaymentStatus)
          Returns the number of shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.
 int countByGroupId(long groupId)
          Returns the number of shopping orders where groupId = ?.
 int countByNumber(String number)
          Returns the number of shopping orders where number = ?.
 int countByPPTxnId(String ppTxnId)
          Returns the number of shopping orders where ppTxnId = ?.
 ShoppingOrder create(long orderId)
          Creates a new shopping order with the primary key.
 ShoppingOrder fetchByG_U_PPPS_First(long groupId, long userId, String ppPaymentStatus, OrderByComparator orderByComparator)
          Returns the first shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?.
 ShoppingOrder fetchByG_U_PPPS_Last(long groupId, long userId, String ppPaymentStatus, OrderByComparator orderByComparator)
          Returns the last shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?.
 ShoppingOrder fetchByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first shopping order in the ordered set where groupId = ?.
 ShoppingOrder fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last shopping order in the ordered set where groupId = ?.
 ShoppingOrder fetchByNumber(String number)
          Returns the shopping order where number = ? or returns null if it could not be found.
 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.
 ShoppingOrder fetchByPPTxnId(String ppTxnId)
          Returns the shopping order where ppTxnId = ? or returns null if it could not be found.
 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.
 ShoppingOrder fetchByPrimaryKey(long orderId)
          Returns the shopping order with the primary key or returns null if it could not be found.
 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 = ?.
 int filterCountByGroupId(long groupId)
          Returns the number of shopping orders that the user has permission to view where groupId = ?.
 ShoppingOrder[] filterFindByG_U_PPPS_PrevAndNext(long orderId, long groupId, long userId, String ppPaymentStatus, OrderByComparator 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 = ?.
 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 = ?.
 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 = ?.
 List<ShoppingOrder> filterFindByG_U_PPPS(long groupId, long userId, String ppPaymentStatus, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the shopping orders that the user has permissions to view where groupId = ? and userId = ? and ppPaymentStatus = ?.
 ShoppingOrder[] filterFindByGroupId_PrevAndNext(long orderId, long groupId, OrderByComparator 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 = ?.
 List<ShoppingOrder> filterFindByGroupId(long groupId)
          Returns all the shopping orders that the user has permission to view where groupId = ?.
 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 = ?.
 List<ShoppingOrder> filterFindByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the shopping orders that the user has permissions to view where groupId = ?.
 List<ShoppingOrder> findAll()
          Returns all the shopping orders.
 List<ShoppingOrder> findAll(int start, int end)
          Returns a range of all the shopping orders.
 List<ShoppingOrder> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the shopping orders.
 ShoppingOrder findByG_U_PPPS_First(long groupId, long userId, String ppPaymentStatus, OrderByComparator orderByComparator)
          Returns the first shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?.
 ShoppingOrder findByG_U_PPPS_Last(long groupId, long userId, String ppPaymentStatus, OrderByComparator orderByComparator)
          Returns the last shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?.
 ShoppingOrder[] findByG_U_PPPS_PrevAndNext(long orderId, long groupId, long userId, String ppPaymentStatus, OrderByComparator orderByComparator)
          Returns the shopping orders before and after the current shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?.
 List<ShoppingOrder> findByG_U_PPPS(long groupId, long userId, String ppPaymentStatus)
          Returns all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.
 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 = ?.
 List<ShoppingOrder> findByG_U_PPPS(long groupId, long userId, String ppPaymentStatus, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.
 ShoppingOrder findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first shopping order in the ordered set where groupId = ?.
 ShoppingOrder findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last shopping order in the ordered set where groupId = ?.
 ShoppingOrder[] findByGroupId_PrevAndNext(long orderId, long groupId, OrderByComparator orderByComparator)
          Returns the shopping orders before and after the current shopping order in the ordered set where groupId = ?.
 List<ShoppingOrder> findByGroupId(long groupId)
          Returns all the shopping orders where groupId = ?.
 List<ShoppingOrder> findByGroupId(long groupId, int start, int end)
          Returns a range of all the shopping orders where groupId = ?.
 List<ShoppingOrder> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the shopping orders where groupId = ?.
 ShoppingOrder findByNumber(String number)
          Returns the shopping order where number = ? or throws a NoSuchOrderException if it could not be found.
 ShoppingOrder findByPPTxnId(String ppTxnId)
          Returns the shopping order where ppTxnId = ? or throws a NoSuchOrderException if it could not be found.
 ShoppingOrder findByPrimaryKey(long orderId)
          Returns the shopping order with the primary key or throws a NoSuchOrderException if it could not be found.
 ShoppingOrder remove(long orderId)
          Removes the shopping order with the primary key from the database.
 void removeAll()
          Removes all the shopping orders from the database.
 void removeByG_U_PPPS(long groupId, long userId, String ppPaymentStatus)
          Removes all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ? from the database.
 void removeByGroupId(long groupId)
          Removes all the shopping orders where groupId = ? from the database.
 ShoppingOrder removeByNumber(String number)
          Removes the shopping order where number = ? from the database.
 ShoppingOrder removeByPPTxnId(String ppTxnId)
          Removes the shopping order where ppTxnId = ? from the database.
 ShoppingOrder updateImpl(ShoppingOrder shoppingOrder, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

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

Parameters:
shoppingOrder - the shopping order

cacheResult

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

Parameters:
shoppingOrders - the shopping orders

create

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

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

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

findByPrimaryKey

ShoppingOrder findByPrimaryKey(long orderId)
                               throws SystemException,
                                      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
SystemException - if a system exception occurred

fetchByPrimaryKey

ShoppingOrder fetchByPrimaryKey(long orderId)
                                throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByGroupId

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

Parameters:
groupId - the group ID
Returns:
the matching shopping orders
Throws:
SystemException - if a system exception occurred

findByGroupId

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

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
Throws:
SystemException - if a system exception occurred

findByGroupId

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

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
Throws:
SystemException - if a system exception occurred

findByGroupId_First

ShoppingOrder findByGroupId_First(long groupId,
                                  OrderByComparator orderByComparator)
                                  throws SystemException,
                                         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
SystemException - if a system exception occurred

fetchByGroupId_First

ShoppingOrder fetchByGroupId_First(long groupId,
                                   OrderByComparator orderByComparator)
                                   throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByGroupId_Last

ShoppingOrder findByGroupId_Last(long groupId,
                                 OrderByComparator orderByComparator)
                                 throws SystemException,
                                        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
SystemException - if a system exception occurred

fetchByGroupId_Last

ShoppingOrder fetchByGroupId_Last(long groupId,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

ShoppingOrder[] findByGroupId_PrevAndNext(long orderId,
                                          long groupId,
                                          OrderByComparator orderByComparator)
                                          throws SystemException,
                                                 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
SystemException - if a system exception occurred

filterFindByGroupId

List<ShoppingOrder> filterFindByGroupId(long groupId)
                                        throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

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

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
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

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

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
Throws:
SystemException - if a system exception occurred

filterFindByGroupId_PrevAndNext

ShoppingOrder[] filterFindByGroupId_PrevAndNext(long orderId,
                                                long groupId,
                                                OrderByComparator orderByComparator)
                                                throws SystemException,
                                                       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
SystemException - if a system exception occurred

findByNumber

ShoppingOrder findByNumber(String number)
                           throws SystemException,
                                  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
SystemException - if a system exception occurred

fetchByNumber

ShoppingOrder fetchByNumber(String number)
                            throws SystemException
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
Throws:
SystemException - if a system exception occurred

fetchByNumber

ShoppingOrder fetchByNumber(String number,
                            boolean retrieveFromCache)
                            throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByPPTxnId

ShoppingOrder findByPPTxnId(String ppTxnId)
                            throws SystemException,
                                   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
SystemException - if a system exception occurred

fetchByPPTxnId

ShoppingOrder fetchByPPTxnId(String ppTxnId)
                             throws SystemException
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
Throws:
SystemException - if a system exception occurred

fetchByPPTxnId

ShoppingOrder fetchByPPTxnId(String ppTxnId,
                             boolean retrieveFromCache)
                             throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_U_PPPS

List<ShoppingOrder> findByG_U_PPPS(long groupId,
                                   long userId,
                                   String ppPaymentStatus)
                                   throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_U_PPPS

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

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
Throws:
SystemException - if a system exception occurred

findByG_U_PPPS

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

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
Throws:
SystemException - if a system exception occurred

findByG_U_PPPS_First

ShoppingOrder findByG_U_PPPS_First(long groupId,
                                   long userId,
                                   String ppPaymentStatus,
                                   OrderByComparator orderByComparator)
                                   throws SystemException,
                                          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
SystemException - if a system exception occurred

fetchByG_U_PPPS_First

ShoppingOrder fetchByG_U_PPPS_First(long groupId,
                                    long userId,
                                    String ppPaymentStatus,
                                    OrderByComparator orderByComparator)
                                    throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_U_PPPS_Last

ShoppingOrder findByG_U_PPPS_Last(long groupId,
                                  long userId,
                                  String ppPaymentStatus,
                                  OrderByComparator orderByComparator)
                                  throws SystemException,
                                         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
SystemException - if a system exception occurred

fetchByG_U_PPPS_Last

ShoppingOrder fetchByG_U_PPPS_Last(long groupId,
                                   long userId,
                                   String ppPaymentStatus,
                                   OrderByComparator orderByComparator)
                                   throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_U_PPPS_PrevAndNext

ShoppingOrder[] findByG_U_PPPS_PrevAndNext(long orderId,
                                           long groupId,
                                           long userId,
                                           String ppPaymentStatus,
                                           OrderByComparator orderByComparator)
                                           throws SystemException,
                                                  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
SystemException - if a system exception occurred

filterFindByG_U_PPPS

List<ShoppingOrder> filterFindByG_U_PPPS(long groupId,
                                         long userId,
                                         String ppPaymentStatus)
                                         throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterFindByG_U_PPPS

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

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
Throws:
SystemException - if a system exception occurred

filterFindByG_U_PPPS

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

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
Throws:
SystemException - if a system exception occurred

filterFindByG_U_PPPS_PrevAndNext

ShoppingOrder[] filterFindByG_U_PPPS_PrevAndNext(long orderId,
                                                 long groupId,
                                                 long userId,
                                                 String ppPaymentStatus,
                                                 OrderByComparator orderByComparator)
                                                 throws SystemException,
                                                        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
SystemException - if a system exception occurred

findAll

List<ShoppingOrder> findAll()
                            throws SystemException
Returns all the shopping orders.

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

findAll

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

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
Throws:
SystemException - if a system exception occurred

findAll

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

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
Throws:
SystemException - if a system exception occurred

removeByGroupId

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

Parameters:
groupId - the group ID
Throws:
SystemException - if a system exception occurred

removeByNumber

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

Parameters:
number - the number
Returns:
the shopping order that was removed
Throws:
SystemException - if a system exception occurred
NoSuchOrderException

removeByPPTxnId

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

Parameters:
ppTxnId - the pp txn ID
Returns:
the shopping order that was removed
Throws:
SystemException - if a system exception occurred
NoSuchOrderException

removeByG_U_PPPS

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
userId - the user ID
ppPaymentStatus - the pp payment status
Throws:
SystemException - if a system exception occurred

removeAll

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

Throws:
SystemException - if a system exception occurred

countByGroupId

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

Parameters:
groupId - the group ID
Returns:
the number of matching shopping orders
Throws:
SystemException - if a system exception occurred

filterCountByGroupId

int filterCountByGroupId(long groupId)
                         throws SystemException
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
Throws:
SystemException - if a system exception occurred

countByNumber

int countByNumber(String number)
                  throws SystemException
Returns the number of shopping orders where number = ?.

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

countByPPTxnId

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

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

countByG_U_PPPS

int countByG_U_PPPS(long groupId,
                    long userId,
                    String ppPaymentStatus)
                    throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterCountByG_U_PPPS

int filterCountByG_U_PPPS(long groupId,
                          long userId,
                          String ppPaymentStatus)
                          throws SystemException
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
Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Returns the number of shopping orders.

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

Liferay 6.1.2-ce-ga3