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

java.lang.Object
  extended bycom.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 countByNumber(java.lang.String number)
           
static com.liferay.portlet.shopping.model.ShoppingOrder create(long orderId)
           
static com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(java.lang.String number)
           
static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPrimaryKey(long orderId)
           
static java.util.List findAll()
           
static java.util.List findAll(int begin, int end)
           
static java.util.List findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_First(long groupId, long userId, java.lang.String ppPaymentStatus, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_Last(long groupId, long userId, java.lang.String ppPaymentStatus, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.shopping.model.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 findByG_U_PPPS(long groupId, long userId, java.lang.String ppPaymentStatus)
           
static java.util.List findByG_U_PPPS(long groupId, long userId, java.lang.String ppPaymentStatus, int begin, int end)
           
static java.util.List findByG_U_PPPS(long groupId, long userId, java.lang.String ppPaymentStatus, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.shopping.model.ShoppingOrder findByNumber(java.lang.String number)
           
static com.liferay.portlet.shopping.model.ShoppingOrder findByPrimaryKey(long orderId)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
static ShoppingOrderPersistence getPersistence()
           
static com.liferay.portlet.shopping.model.ShoppingOrder remove(long orderId)
           
static com.liferay.portlet.shopping.model.ShoppingOrder remove(com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
           
static void removeAll()
           
static void removeByG_U_PPPS(long groupId, long userId, java.lang.String ppPaymentStatus)
           
static void removeByNumber(java.lang.String number)
           
 void setPersistence(ShoppingOrderPersistence persistence)
           
static com.liferay.portlet.shopping.model.ShoppingOrder update(com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
           
static com.liferay.portlet.shopping.model.ShoppingOrder update(com.liferay.portlet.shopping.model.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 com.liferay.portlet.shopping.model.ShoppingOrder create(long orderId)

remove

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

remove

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

update

public static com.liferay.portlet.shopping.model.ShoppingOrder update(com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
                                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static com.liferay.portlet.shopping.model.ShoppingOrder update(com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
                                                                      boolean merge)
                                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

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

fetchByPrimaryKey

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

findByNumber

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

fetchByNumber

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

findByG_U_PPPS

public static java.util.List 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 findByG_U_PPPS(long groupId,
                                            long userId,
                                            java.lang.String ppPaymentStatus,
                                            int begin,
                                            int end)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_U_PPPS

public static java.util.List findByG_U_PPPS(long groupId,
                                            long userId,
                                            java.lang.String ppPaymentStatus,
                                            int begin,
                                            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 com.liferay.portlet.shopping.model.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,
                                                                                    com.liferay.portlet.shopping.NoSuchOrderException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchOrderException

findByG_U_PPPS_Last

public static com.liferay.portlet.shopping.model.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,
                                                                                   com.liferay.portlet.shopping.NoSuchOrderException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchOrderException

findByG_U_PPPS_PrevAndNext

public static com.liferay.portlet.shopping.model.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,
                                                                                            com.liferay.portlet.shopping.NoSuchOrderException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchOrderException

findWithDynamicQuery

public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                                  int begin,
                                                  int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

public static java.util.List findAll(int begin,
                                     int end)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

removeByNumber

public static void removeByNumber(java.lang.String number)
                           throws com.liferay.portal.SystemException,
                                  com.liferay.portlet.shopping.NoSuchOrderException
Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.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

countByNumber

public static int countByNumber(java.lang.String number)
                         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)