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

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

public class ShoppingOrderUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
ShoppingOrderUtil()
           
 
Method Summary
static int countAll()
           
static int countByG_U_PPPS(long groupId, long userId, java.lang.String ppPaymentStatus)
           
static int countByGroupId(long groupId)
           
static int countByNumber(java.lang.String number)
           
static int countByPPTxnId(java.lang.String ppTxnId)
           
static ShoppingOrder create(long orderId)
           
static ShoppingOrder fetchByNumber(java.lang.String number)
           
static ShoppingOrder fetchByPPTxnId(java.lang.String ppTxnId)
           
static ShoppingOrder fetchByPrimaryKey(long orderId)
           
static java.util.List<ShoppingOrder> findAll()
           
static java.util.List<ShoppingOrder> findAll(int start, int end)
           
static java.util.List<ShoppingOrder> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static ShoppingOrder findByG_U_PPPS_First(long groupId, long userId, java.lang.String ppPaymentStatus, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static ShoppingOrder findByG_U_PPPS_Last(long groupId, long userId, java.lang.String ppPaymentStatus, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static ShoppingOrder[] findByG_U_PPPS_PrevAndNext(long orderId, long groupId, long userId, java.lang.String ppPaymentStatus, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<ShoppingOrder> findByG_U_PPPS(long groupId, long userId, java.lang.String ppPaymentStatus)
           
static java.util.List<ShoppingOrder> findByG_U_PPPS(long groupId, long userId, java.lang.String ppPaymentStatus, int start, int end)
           
static java.util.List<ShoppingOrder> findByG_U_PPPS(long groupId, long userId, java.lang.String ppPaymentStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static ShoppingOrder findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static ShoppingOrder findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static ShoppingOrder[] findByGroupId_PrevAndNext(long orderId, long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<ShoppingOrder> findByGroupId(long groupId)
           
static java.util.List<ShoppingOrder> findByGroupId(long groupId, int start, int end)
           
static java.util.List<ShoppingOrder> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static ShoppingOrder findByNumber(java.lang.String number)
           
static ShoppingOrder findByPPTxnId(java.lang.String ppTxnId)
           
static ShoppingOrder findByPrimaryKey(long orderId)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
static ShoppingOrderPersistence getPersistence()
           
static ShoppingOrder remove(long orderId)
           
static ShoppingOrder remove(ShoppingOrder shoppingOrder)
           
static void removeAll()
           
static void removeByG_U_PPPS(long groupId, long userId, java.lang.String ppPaymentStatus)
           
static void removeByGroupId(long groupId)
           
static void removeByNumber(java.lang.String number)
           
static void removeByPPTxnId(java.lang.String ppTxnId)
           
 void setPersistence(ShoppingOrderPersistence persistence)
           
static ShoppingOrder update(ShoppingOrder shoppingOrder)
          Deprecated. Use update(ShoppingOrder shoppingOrder, boolean merge).
static ShoppingOrder update(ShoppingOrder shoppingOrder, boolean merge)
          Add, update, or merge, the entity.
static ShoppingOrder updateImpl(ShoppingOrder shoppingOrder, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShoppingOrderUtil

public ShoppingOrderUtil()
Method Detail

create

public static ShoppingOrder create(long orderId)

remove

public static ShoppingOrder remove(long orderId)
                            throws com.liferay.portal.SystemException,
                                   NoSuchOrderException
Throws:
com.liferay.portal.SystemException
NoSuchOrderException

remove

public static ShoppingOrder remove(ShoppingOrder shoppingOrder)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static ShoppingOrder update(ShoppingOrder shoppingOrder)
                            throws com.liferay.portal.SystemException
Deprecated. Use update(ShoppingOrder shoppingOrder, boolean merge).

Throws:
com.liferay.portal.SystemException

update

public static ShoppingOrder update(ShoppingOrder shoppingOrder,
                                   boolean merge)
                            throws com.liferay.portal.SystemException
Add, update, or merge, the entity. This method also calls the model listeners to trigger the proper events associated with adding, deleting, or updating an entity.

Parameters:
shoppingOrder - the entity to add, update, or merge
merge - boolean value for whether to merge the entity. The default value is false. Setting merge to true is more expensive and should only be true when shoppingOrder is transient. See LEP-5473 for a detailed discussion of this method.
Returns:
true if the portlet can be displayed via Ajax
Throws:
com.liferay.portal.SystemException

updateImpl

public static ShoppingOrder updateImpl(ShoppingOrder shoppingOrder,
                                       boolean merge)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public static ShoppingOrder findByPrimaryKey(long orderId)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchOrderException
Throws:
com.liferay.portal.SystemException
NoSuchOrderException

fetchByPrimaryKey

public static ShoppingOrder fetchByPrimaryKey(long orderId)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

public static java.util.List<ShoppingOrder> findByGroupId(long groupId)
                                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

public static java.util.List<ShoppingOrder> findByGroupId(long groupId,
                                                          int start,
                                                          int end)
                                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

public static java.util.List<ShoppingOrder> findByGroupId(long groupId,
                                                          int start,
                                                          int end,
                                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId_First

public static ShoppingOrder findByGroupId_First(long groupId,
                                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                         throws com.liferay.portal.SystemException,
                                                NoSuchOrderException
Throws:
com.liferay.portal.SystemException
NoSuchOrderException

findByGroupId_Last

public static ShoppingOrder findByGroupId_Last(long groupId,
                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                        throws com.liferay.portal.SystemException,
                                               NoSuchOrderException
Throws:
com.liferay.portal.SystemException
NoSuchOrderException

findByGroupId_PrevAndNext

public static ShoppingOrder[] findByGroupId_PrevAndNext(long orderId,
                                                        long groupId,
                                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                                 throws com.liferay.portal.SystemException,
                                                        NoSuchOrderException
Throws:
com.liferay.portal.SystemException
NoSuchOrderException

findByNumber

public static ShoppingOrder findByNumber(java.lang.String number)
                                  throws com.liferay.portal.SystemException,
                                         NoSuchOrderException
Throws:
com.liferay.portal.SystemException
NoSuchOrderException

fetchByNumber

public static ShoppingOrder fetchByNumber(java.lang.String number)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPPTxnId

public static ShoppingOrder findByPPTxnId(java.lang.String ppTxnId)
                                   throws com.liferay.portal.SystemException,
                                          NoSuchOrderException
Throws:
com.liferay.portal.SystemException
NoSuchOrderException

fetchByPPTxnId

public static ShoppingOrder fetchByPPTxnId(java.lang.String ppTxnId)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_U_PPPS

public static java.util.List<ShoppingOrder> findByG_U_PPPS(long groupId,
                                                           long userId,
                                                           java.lang.String ppPaymentStatus)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_U_PPPS

public static java.util.List<ShoppingOrder> findByG_U_PPPS(long groupId,
                                                           long userId,
                                                           java.lang.String ppPaymentStatus,
                                                           int start,
                                                           int end)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_U_PPPS

public static java.util.List<ShoppingOrder> findByG_U_PPPS(long groupId,
                                                           long userId,
                                                           java.lang.String ppPaymentStatus,
                                                           int start,
                                                           int end,
                                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_U_PPPS_First

public static ShoppingOrder findByG_U_PPPS_First(long groupId,
                                                 long userId,
                                                 java.lang.String ppPaymentStatus,
                                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                          throws com.liferay.portal.SystemException,
                                                 NoSuchOrderException
Throws:
com.liferay.portal.SystemException
NoSuchOrderException

findByG_U_PPPS_Last

public static ShoppingOrder findByG_U_PPPS_Last(long groupId,
                                                long userId,
                                                java.lang.String ppPaymentStatus,
                                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                         throws com.liferay.portal.SystemException,
                                                NoSuchOrderException
Throws:
com.liferay.portal.SystemException
NoSuchOrderException

findByG_U_PPPS_PrevAndNext

public static ShoppingOrder[] findByG_U_PPPS_PrevAndNext(long orderId,
                                                         long groupId,
                                                         long userId,
                                                         java.lang.String ppPaymentStatus,
                                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                                  throws com.liferay.portal.SystemException,
                                                         NoSuchOrderException
Throws:
com.liferay.portal.SystemException
NoSuchOrderException

findWithDynamicQuery

public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                                    int start,
                                                                    int end)
                                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<ShoppingOrder> findAll()
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<ShoppingOrder> findAll(int start,
                                                    int end)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<ShoppingOrder> findAll(int start,
                                                    int end,
                                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByGroupId

public static void removeByGroupId(long groupId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByNumber

public static void removeByNumber(java.lang.String number)
                           throws com.liferay.portal.SystemException,
                                  NoSuchOrderException
Throws:
com.liferay.portal.SystemException
NoSuchOrderException

removeByPPTxnId

public static void removeByPPTxnId(java.lang.String ppTxnId)
                            throws com.liferay.portal.SystemException,
                                   NoSuchOrderException
Throws:
com.liferay.portal.SystemException
NoSuchOrderException

removeByG_U_PPPS

public static void removeByG_U_PPPS(long groupId,
                                    long userId,
                                    java.lang.String ppPaymentStatus)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeAll

public static void removeAll()
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByGroupId

public static int countByGroupId(long groupId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByNumber

public static int countByNumber(java.lang.String number)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByPPTxnId

public static int countByPPTxnId(java.lang.String ppTxnId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_U_PPPS

public static int countByG_U_PPPS(long groupId,
                                  long userId,
                                  java.lang.String ppPaymentStatus)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

public static int countAll()
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPersistence

public static ShoppingOrderPersistence getPersistence()

setPersistence

public void setPersistence(ShoppingOrderPersistence persistence)