Liferay 6.0.5

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.

Never modify or reference this class directly. Always use ShoppingOrderUtil to access the shopping order persistence. Modify service.xml and rerun ServiceBuilder to regenerate this class.

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 is generated.

Field Summary
protected  CompanyPersistence companyPersistence
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST
           
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_FIND_ALL
           
static FinderPath FINDER_PATH_FIND_BY_G_U_PPPS
           
static FinderPath FINDER_PATH_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  UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, 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.
 void clearCache()
          Clears the cache for all shopping orders.
 void clearCache(ShoppingOrder shoppingOrder)
          Clears the cache for the shopping order.
 int countAll()
          Counts all the shopping orders.
 int countByG_U_PPPS(long groupId, long userId, String ppPaymentStatus)
          Counts all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.
 int countByGroupId(long groupId)
          Counts all the shopping orders where groupId = ?.
 int countByNumber(String number)
          Counts all the shopping orders where number = ?.
 int countByPPTxnId(String ppTxnId)
          Counts all the shopping orders where ppTxnId = ?.
 ShoppingOrder create(long orderId)
          Creates a new shopping order with the primary key.
 ShoppingOrder fetchByNumber(String number)
          Finds the shopping order where number = ? or returns null if it could not be found.
 ShoppingOrder fetchByNumber(String number, boolean retrieveFromCache)
          Finds the shopping order where number = ? or returns null if it could not be found, optionally using the finder cache.
 ShoppingOrder fetchByPPTxnId(String ppTxnId)
          Finds the shopping order where ppTxnId = ? or returns null if it could not be found.
 ShoppingOrder fetchByPPTxnId(String ppTxnId, boolean retrieveFromCache)
          Finds the shopping order where ppTxnId = ? or returns null if it could not be found, optionally using the finder cache.
 ShoppingOrder fetchByPrimaryKey(long orderId)
          Finds the shopping order with the primary key or returns null if it could not be found.
 ShoppingOrder fetchByPrimaryKey(Serializable primaryKey)
          Finds 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)
          Filters by the user's permissions and counts all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.
 int filterCountByGroupId(long groupId)
          Filters by the user's permissions and counts all the shopping orders where groupId = ?.
 List<ShoppingOrder> filterFindByG_U_PPPS(long groupId, long userId, String ppPaymentStatus)
          Filters by the user's permissions and finds all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.
 List<ShoppingOrder> filterFindByG_U_PPPS(long groupId, long userId, String ppPaymentStatus, int start, int end)
          Filters by the user's permissions and finds a range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.
 List<ShoppingOrder> filterFindByG_U_PPPS(long groupId, long userId, String ppPaymentStatus, int start, int end, OrderByComparator orderByComparator)
          Filters by the user's permissions and finds an ordered range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.
 List<ShoppingOrder> filterFindByGroupId(long groupId)
          Filters by the user's permissions and finds all the shopping orders where groupId = ?.
 List<ShoppingOrder> filterFindByGroupId(long groupId, int start, int end)
          Filters by the user's permissions and finds a range of all the shopping orders where groupId = ?.
 List<ShoppingOrder> filterFindByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Filters by the user's permissions and finds an ordered range of all the shopping orders where groupId = ?.
 List<ShoppingOrder> findAll()
          Finds all the shopping orders.
 List<ShoppingOrder> findAll(int start, int end)
          Finds a range of all the shopping orders.
 List<ShoppingOrder> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the shopping orders.
 ShoppingOrder findByG_U_PPPS_First(long groupId, long userId, String ppPaymentStatus, OrderByComparator orderByComparator)
          Finds the first shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?.
 ShoppingOrder findByG_U_PPPS_Last(long groupId, long userId, String ppPaymentStatus, OrderByComparator orderByComparator)
          Finds the last shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?.
 ShoppingOrder[] findByG_U_PPPS_PrevAndNext(long orderId, long groupId, long userId, String ppPaymentStatus, OrderByComparator orderByComparator)
          Finds the shopping orders before and after the current shopping order in the ordered set where groupId = ? and userId = ? and ppPaymentStatus = ?.
 List<ShoppingOrder> findByG_U_PPPS(long groupId, long userId, String ppPaymentStatus)
          Finds 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)
          Finds 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)
          Finds an ordered range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.
 ShoppingOrder findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Finds the first shopping order in the ordered set where groupId = ?.
 ShoppingOrder findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Finds the last shopping order in the ordered set where groupId = ?.
 ShoppingOrder[] findByGroupId_PrevAndNext(long orderId, long groupId, OrderByComparator orderByComparator)
          Finds the shopping orders before and after the current shopping order in the ordered set where groupId = ?.
 List<ShoppingOrder> findByGroupId(long groupId)
          Finds all the shopping orders where groupId = ?.
 List<ShoppingOrder> findByGroupId(long groupId, int start, int end)
          Finds a range of all the shopping orders where groupId = ?.
 List<ShoppingOrder> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the shopping orders where groupId = ?.
 ShoppingOrder findByNumber(String number)
          Finds the shopping order where number = ? or throws a NoSuchOrderException if it could not be found.
 ShoppingOrder findByPPTxnId(String ppTxnId)
          Finds the shopping order where ppTxnId = ? or throws a NoSuchOrderException if it could not be found.
 ShoppingOrder findByPrimaryKey(long orderId)
          Finds the shopping order with the primary key or throws a NoSuchOrderException if it could not be found.
 ShoppingOrder findByPrimaryKey(Serializable primaryKey)
          Finds 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.
 void removeByNumber(String number)
          Removes the shopping order where number = ? from the database.
 void 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, getDataSource, 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
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST

public static final String FINDER_CLASS_NAME_LIST

FINDER_PATH_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_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_FIND_BY_G_U_PPPS

public static final FinderPath FINDER_PATH_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_FIND_ALL

public static final FinderPath FINDER_PATH_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

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

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

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

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

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

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

fetchByPrimaryKey

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

fetchByPrimaryKey

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

findByGroupId

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

Specified by:
findByGroupId in interface ShoppingOrderPersistence
Parameters:
groupId - the group id to search with
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
Finds a range of all the shopping orders where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

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

findByGroupId

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

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

findByGroupId_First

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

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

findByGroupId_Last

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

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

findByGroupId_PrevAndNext

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

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

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
Filters by the user's permissions and finds all the shopping orders where groupId = ?.

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

filterFindByGroupId

public List<ShoppingOrder> filterFindByGroupId(long groupId,
                                               int start,
                                               int end)
                                        throws SystemException
Filters by the user's permissions and finds a range of all the shopping orders where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

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

filterFindByGroupId

public List<ShoppingOrder> filterFindByGroupId(long groupId,
                                               int start,
                                               int end,
                                               OrderByComparator orderByComparator)
                                        throws SystemException
Filters by the user's permissions and finds an ordered range of all the shopping orders where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

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

findByNumber

public ShoppingOrder findByNumber(String number)
                           throws NoSuchOrderException,
                                  SystemException
Finds 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 to search with
Returns:
the matching shopping order
Throws:
NoSuchOrderException - if a matching shopping order could not be found
SystemException - if a system exception occurred

fetchByNumber

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

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

fetchByNumber

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

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

findByPPTxnId

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

fetchByPPTxnId

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

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

fetchByPPTxnId

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

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

findByG_U_PPPS

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

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

findByG_U_PPPS

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

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

findByG_U_PPPS

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

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

findByG_U_PPPS_First

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

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

findByG_U_PPPS_Last

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

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

findByG_U_PPPS_PrevAndNext

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

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

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
Filters by the user's permissions and finds all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.

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

filterFindByG_U_PPPS

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

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

filterFindByG_U_PPPS

public List<ShoppingOrder> filterFindByG_U_PPPS(long groupId,
                                                long userId,
                                                String ppPaymentStatus,
                                                int start,
                                                int end,
                                                OrderByComparator orderByComparator)
                                         throws SystemException
Filters by the user's permissions and finds an ordered range of all the shopping orders where groupId = ? and userId = ? and ppPaymentStatus = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

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

findAll

public List<ShoppingOrder> findAll()
                            throws SystemException
Finds 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
Finds a range of all the shopping orders.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

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

findAll

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

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

removeByGroupId

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

removeByNumber

public void 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 to search with
Throws:
SystemException - if a system exception occurred
NoSuchOrderException

removeByPPTxnId

public void 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 to search with
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 to search with
userId - the user id to search with
ppPaymentStatus - the pp payment status to search with
Throws:
SystemException - if a system exception occurred

removeAll

public 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
Counts all the shopping orders where groupId = ?.

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

filterCountByGroupId

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

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

countByNumber

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

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

countByPPTxnId

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

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

countByG_U_PPPS

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

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

filterCountByG_U_PPPS

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

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

countAll

public int countAll()
             throws SystemException
Counts all the 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.


Liferay 6.0.5