Liferay 6.1.2-ce-ga3

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

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<ShoppingOrder>
      extended by com.liferay.portlet.shopping.service.persistence.ShoppingOrderPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<ShoppingOrder>, ShoppingOrderPersistence

public class ShoppingOrderPersistenceImpl
extends BasePersistenceImpl<ShoppingOrder>
implements ShoppingOrderPersistence

The persistence implementation for the shopping order service.

Caching information and settings can be found in portal.properties

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

Field Summary
protected  CompanyPersistence companyPersistence
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_G_U_PPPS
           
static FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static FinderPath FINDER_PATH_COUNT_BY_NUMBER
           
static FinderPath FINDER_PATH_COUNT_BY_PPTXNID
           
static FinderPath FINDER_PATH_FETCH_BY_NUMBER
           
static FinderPath FINDER_PATH_FETCH_BY_PPTXNID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U_PPPS
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U_PPPS
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
           
protected  MBMessagePersistence mbMessagePersistence
           
protected  ResourcePersistence resourcePersistence
           
protected  ShoppingCartPersistence shoppingCartPersistence
           
protected  ShoppingCategoryPersistence shoppingCategoryPersistence
           
protected  ShoppingCouponPersistence shoppingCouponPersistence
           
protected  ShoppingItemFieldPersistence shoppingItemFieldPersistence
           
protected  ShoppingItemPersistence shoppingItemPersistence
           
protected  ShoppingItemPricePersistence shoppingItemPricePersistence
           
protected  ShoppingOrderItemPersistence shoppingOrderItemPersistence
           
protected  ShoppingOrderPersistence shoppingOrderPersistence
           
protected  SubscriptionPersistence subscriptionPersistence
           
protected  UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
ShoppingOrderPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the shopping order persistence.
 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.
protected  void cacheUniqueFindersCache(ShoppingOrder shoppingOrder)
           
 void clearCache()
          Clears the cache for all shopping orders.
 void clearCache(List<ShoppingOrder> shoppingOrders)
          Clears the cache for a List instances of this model.
 void clearCache(ShoppingOrder shoppingOrder)
          Clears the cache for the shopping order.
protected  void clearUniqueFindersCache(ShoppingOrder shoppingOrder)
           
 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.
 void destroy()
           
 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.
 ShoppingOrder fetchByPrimaryKey(Serializable primaryKey)
          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 = ?.
protected  ShoppingOrder filterGetByG_U_PPPS_PrevAndNext(Session session, ShoppingOrder shoppingOrder, long groupId, long userId, String ppPaymentStatus, OrderByComparator orderByComparator, boolean previous)
           
protected  ShoppingOrder filterGetByGroupId_PrevAndNext(Session session, ShoppingOrder shoppingOrder, long groupId, OrderByComparator orderByComparator, boolean previous)
           
 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 findByPrimaryKey(Serializable primaryKey)
          Returns the shopping order with the primary key or throws a NoSuchModelException if it could not be found.
protected  ShoppingOrder getByG_U_PPPS_PrevAndNext(Session session, ShoppingOrder shoppingOrder, long groupId, long userId, String ppPaymentStatus, OrderByComparator orderByComparator, boolean previous)
           
protected  ShoppingOrder getByGroupId_PrevAndNext(Session session, ShoppingOrder shoppingOrder, long groupId, OrderByComparator orderByComparator, boolean previous)
           
 ShoppingOrder remove(long orderId)
          Removes the shopping order with the primary key from the database.
 ShoppingOrder remove(Serializable primaryKey)
          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.
protected  ShoppingOrder removeImpl(ShoppingOrder shoppingOrder)
          Removes the model instance from the database.
protected  ShoppingOrder toUnwrappedModel(ShoppingOrder shoppingOrder)
           
 ShoppingOrder updateImpl(ShoppingOrder shoppingOrder, boolean merge)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getClassLoader, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_FETCH_BY_NUMBER

public static final FinderPath FINDER_PATH_FETCH_BY_NUMBER

FINDER_PATH_COUNT_BY_NUMBER

public static final FinderPath FINDER_PATH_COUNT_BY_NUMBER

FINDER_PATH_FETCH_BY_PPTXNID

public static final FinderPath FINDER_PATH_FETCH_BY_PPTXNID

FINDER_PATH_COUNT_BY_PPTXNID

public static final FinderPath FINDER_PATH_COUNT_BY_PPTXNID

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U_PPPS

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_U_PPPS

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U_PPPS

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_U_PPPS

FINDER_PATH_COUNT_BY_G_U_PPPS

public static final FinderPath FINDER_PATH_COUNT_BY_G_U_PPPS

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

shoppingCartPersistence

@BeanReference(type=ShoppingCartPersistence.class)
protected ShoppingCartPersistence shoppingCartPersistence

shoppingCategoryPersistence

@BeanReference(type=ShoppingCategoryPersistence.class)
protected ShoppingCategoryPersistence shoppingCategoryPersistence

shoppingCouponPersistence

@BeanReference(type=ShoppingCouponPersistence.class)
protected ShoppingCouponPersistence shoppingCouponPersistence

shoppingItemPersistence

@BeanReference(type=ShoppingItemPersistence.class)
protected ShoppingItemPersistence shoppingItemPersistence

shoppingItemFieldPersistence

@BeanReference(type=ShoppingItemFieldPersistence.class)
protected ShoppingItemFieldPersistence shoppingItemFieldPersistence

shoppingItemPricePersistence

@BeanReference(type=ShoppingItemPricePersistence.class)
protected ShoppingItemPricePersistence shoppingItemPricePersistence

shoppingOrderPersistence

@BeanReference(type=ShoppingOrderPersistence.class)
protected ShoppingOrderPersistence shoppingOrderPersistence

shoppingOrderItemPersistence

@BeanReference(type=ShoppingOrderItemPersistence.class)
protected ShoppingOrderItemPersistence shoppingOrderItemPersistence

companyPersistence

@BeanReference(type=CompanyPersistence.class)
protected CompanyPersistence companyPersistence

resourcePersistence

@BeanReference(type=ResourcePersistence.class)
protected ResourcePersistence resourcePersistence

subscriptionPersistence

@BeanReference(type=SubscriptionPersistence.class)
protected SubscriptionPersistence subscriptionPersistence

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence

mbMessagePersistence

@BeanReference(type=MBMessagePersistence.class)
protected MBMessagePersistence mbMessagePersistence
Constructor Detail

ShoppingOrderPersistenceImpl

public ShoppingOrderPersistenceImpl()
Method Detail

cacheResult

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

Specified by:
cacheResult in interface ShoppingOrderPersistence
Parameters:
shoppingOrder - the shopping order

cacheResult

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

Specified by:
cacheResult in interface ShoppingOrderPersistence
Parameters:
shoppingOrders - the shopping orders

clearCache

public void clearCache()
Clears the cache for all shopping orders.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<ShoppingOrder>
Overrides:
clearCache in class BasePersistenceImpl<ShoppingOrder>

clearCache

public void clearCache(ShoppingOrder shoppingOrder)
Clears the cache for the shopping order.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<ShoppingOrder>
Overrides:
clearCache in class BasePersistenceImpl<ShoppingOrder>
Parameters:
shoppingOrder - the instance of this model to clear the cache for

clearCache

public void clearCache(List<ShoppingOrder> shoppingOrders)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<ShoppingOrder>
Overrides:
clearCache in class BasePersistenceImpl<ShoppingOrder>
Parameters:
shoppingOrders - the List instances of this model to clear the cache for

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(ShoppingOrder shoppingOrder)

clearUniqueFindersCache

protected void clearUniqueFindersCache(ShoppingOrder shoppingOrder)

create

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

Specified by:
create in interface ShoppingOrderPersistence
Parameters:
orderId - the primary key for the new shopping order
Returns:
the new shopping order

remove

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

Specified by:
remove in interface ShoppingOrderPersistence
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

remove

public ShoppingOrder remove(Serializable primaryKey)
                     throws NoSuchOrderException,
                            SystemException
Removes the shopping order with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<ShoppingOrder>
Overrides:
remove in class BasePersistenceImpl<ShoppingOrder>
Parameters:
primaryKey - 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

removeImpl

protected ShoppingOrder removeImpl(ShoppingOrder shoppingOrder)
                            throws SystemException
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<ShoppingOrder>
Parameters:
shoppingOrder - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public ShoppingOrder updateImpl(ShoppingOrder shoppingOrder,
                                boolean merge)
                         throws SystemException
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface ShoppingOrderPersistence
Overrides:
updateImpl in class BasePersistenceImpl<ShoppingOrder>
Parameters:
shoppingOrder - the model instance to update
merge - whether to merge the model instance with the current session. See BatchSession.update( com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean) for an explanation.
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected ShoppingOrder toUnwrappedModel(ShoppingOrder shoppingOrder)

findByPrimaryKey

public ShoppingOrder findByPrimaryKey(Serializable primaryKey)
                               throws NoSuchModelException,
                                      SystemException
Returns the shopping order with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<ShoppingOrder>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<ShoppingOrder>
Parameters:
primaryKey - the primary key of the shopping order
Returns:
the shopping order
Throws:
NoSuchModelException - if a shopping order with the primary key could not be found
SystemException - if a system exception occurred

findByPrimaryKey

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

Specified by:
findByPrimaryKey in interface ShoppingOrderPersistence
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

public ShoppingOrder fetchByPrimaryKey(Serializable primaryKey)
                                throws SystemException
Returns the shopping order with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<ShoppingOrder>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<ShoppingOrder>
Parameters:
primaryKey - 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

fetchByPrimaryKey

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

Specified by:
fetchByPrimaryKey in interface ShoppingOrderPersistence
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

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

Specified by:
findByGroupId in interface ShoppingOrderPersistence
Parameters:
groupId - the group ID
Returns:
the matching shopping orders
Throws:
SystemException - if a system exception occurred

findByGroupId

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

Specified by:
findByGroupId in interface ShoppingOrderPersistence
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

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

Specified by:
findByGroupId in interface ShoppingOrderPersistence
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

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

Specified by:
findByGroupId_First in interface ShoppingOrderPersistence
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

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

Specified by:
fetchByGroupId_First in interface ShoppingOrderPersistence
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

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

Specified by:
findByGroupId_Last in interface ShoppingOrderPersistence
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

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

Specified by:
fetchByGroupId_Last in interface ShoppingOrderPersistence
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

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

Specified by:
findByGroupId_PrevAndNext in interface ShoppingOrderPersistence
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

getByGroupId_PrevAndNext

protected ShoppingOrder getByGroupId_PrevAndNext(Session session,
                                                 ShoppingOrder shoppingOrder,
                                                 long groupId,
                                                 OrderByComparator orderByComparator,
                                                 boolean previous)

filterFindByGroupId

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

Specified by:
filterFindByGroupId in interface ShoppingOrderPersistence
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

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

Specified by:
filterFindByGroupId in interface ShoppingOrderPersistence
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

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

Specified by:
filterFindByGroupId in interface ShoppingOrderPersistence
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

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

Specified by:
filterFindByGroupId_PrevAndNext in interface ShoppingOrderPersistence
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

filterGetByGroupId_PrevAndNext

protected ShoppingOrder filterGetByGroupId_PrevAndNext(Session session,
                                                       ShoppingOrder shoppingOrder,
                                                       long groupId,
                                                       OrderByComparator orderByComparator,
                                                       boolean previous)

findByNumber

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

Specified by:
findByNumber in interface ShoppingOrderPersistence
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

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

Specified by:
fetchByNumber in interface ShoppingOrderPersistence
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

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

Specified by:
fetchByNumber in interface ShoppingOrderPersistence
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

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

Specified by:
findByPPTxnId in interface ShoppingOrderPersistence
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

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

Specified by:
fetchByPPTxnId in interface ShoppingOrderPersistence
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

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

Specified by:
fetchByPPTxnId in interface ShoppingOrderPersistence
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

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

Specified by:
findByG_U_PPPS in interface ShoppingOrderPersistence
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

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

Specified by:
findByG_U_PPPS in interface ShoppingOrderPersistence
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

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

Specified by:
findByG_U_PPPS in interface ShoppingOrderPersistence
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

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

Specified by:
findByG_U_PPPS_First in interface ShoppingOrderPersistence
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

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

Specified by:
fetchByG_U_PPPS_First in interface ShoppingOrderPersistence
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

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

Specified by:
findByG_U_PPPS_Last in interface ShoppingOrderPersistence
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

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

Specified by:
fetchByG_U_PPPS_Last in interface ShoppingOrderPersistence
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

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

Specified by:
findByG_U_PPPS_PrevAndNext in interface ShoppingOrderPersistence
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

getByG_U_PPPS_PrevAndNext

protected ShoppingOrder getByG_U_PPPS_PrevAndNext(Session session,
                                                  ShoppingOrder shoppingOrder,
                                                  long groupId,
                                                  long userId,
                                                  String ppPaymentStatus,
                                                  OrderByComparator orderByComparator,
                                                  boolean previous)

filterFindByG_U_PPPS

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

Specified by:
filterFindByG_U_PPPS in interface ShoppingOrderPersistence
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

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

Specified by:
filterFindByG_U_PPPS in interface ShoppingOrderPersistence
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

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

Specified by:
filterFindByG_U_PPPS in interface ShoppingOrderPersistence
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

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

Specified by:
filterFindByG_U_PPPS_PrevAndNext in interface ShoppingOrderPersistence
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

filterGetByG_U_PPPS_PrevAndNext

protected ShoppingOrder filterGetByG_U_PPPS_PrevAndNext(Session session,
                                                        ShoppingOrder shoppingOrder,
                                                        long groupId,
                                                        long userId,
                                                        String ppPaymentStatus,
                                                        OrderByComparator orderByComparator,
                                                        boolean previous)

findAll

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

Specified by:
findAll in interface ShoppingOrderPersistence
Returns:
the shopping orders
Throws:
SystemException - if a system exception occurred

findAll

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

Specified by:
findAll in interface ShoppingOrderPersistence
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

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

Specified by:
findAll in interface ShoppingOrderPersistence
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

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

Specified by:
removeByGroupId in interface ShoppingOrderPersistence
Parameters:
groupId - the group ID
Throws:
SystemException - if a system exception occurred

removeByNumber

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

Specified by:
removeByNumber in interface ShoppingOrderPersistence
Parameters:
number - the number
Returns:
the shopping order that was removed
Throws:
SystemException - if a system exception occurred
NoSuchOrderException

removeByPPTxnId

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

Specified by:
removeByPPTxnId in interface ShoppingOrderPersistence
Parameters:
ppTxnId - the pp txn ID
Returns:
the shopping order that was removed
Throws:
SystemException - if a system exception occurred
NoSuchOrderException

removeByG_U_PPPS

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

Specified by:
removeByG_U_PPPS in interface ShoppingOrderPersistence
Parameters:
groupId - the group ID
userId - the user ID
ppPaymentStatus - the pp payment status
Throws:
SystemException - if a system exception occurred

removeAll

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

Specified by:
removeAll in interface ShoppingOrderPersistence
Throws:
SystemException - if a system exception occurred

countByGroupId

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

Specified by:
countByGroupId in interface ShoppingOrderPersistence
Parameters:
groupId - the group ID
Returns:
the number of matching shopping orders
Throws:
SystemException - if a system exception occurred

filterCountByGroupId

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

Specified by:
filterCountByGroupId in interface ShoppingOrderPersistence
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

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

Specified by:
countByNumber in interface ShoppingOrderPersistence
Parameters:
number - the number
Returns:
the number of matching shopping orders
Throws:
SystemException - if a system exception occurred

countByPPTxnId

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

Specified by:
countByPPTxnId in interface ShoppingOrderPersistence
Parameters:
ppTxnId - the pp txn ID
Returns:
the number of matching shopping orders
Throws:
SystemException - if a system exception occurred

countByG_U_PPPS

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

Specified by:
countByG_U_PPPS in interface ShoppingOrderPersistence
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

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

Specified by:
filterCountByG_U_PPPS in interface ShoppingOrderPersistence
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

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

Specified by:
countAll in interface ShoppingOrderPersistence
Returns:
the number of shopping orders
Throws:
SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the shopping order persistence.


destroy

public void destroy()

Liferay 6.1.2-ce-ga3