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

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

public class ShoppingCartUtil
extends java.lang.Object

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Author:
Brian Wing Shun Chan
See Also:
ShoppingCartPersistence, ShoppingCartPersistenceImpl
Generated:

Constructor Summary
ShoppingCartUtil()
           
 
Method Summary
static void cacheResult(java.util.List<ShoppingCart> shoppingCarts)
           
static void cacheResult(ShoppingCart shoppingCart)
           
static void clearCache()
           
static void clearCache(ShoppingCart shoppingCart)
           
static int countAll()
           
static int countByG_U(long groupId, long userId)
           
static int countByGroupId(long groupId)
           
static int countByUserId(long userId)
           
 int countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static ShoppingCart create(long cartId)
           
static ShoppingCart fetchByG_U(long groupId, long userId)
           
static ShoppingCart fetchByG_U(long groupId, long userId, boolean retrieveFromCache)
           
static ShoppingCart fetchByPrimaryKey(long cartId)
           
static java.util.List<ShoppingCart> findAll()
           
static java.util.List<ShoppingCart> findAll(int start, int end)
           
static java.util.List<ShoppingCart> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static ShoppingCart findByG_U(long groupId, long userId)
           
static ShoppingCart findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static ShoppingCart findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static ShoppingCart[] findByGroupId_PrevAndNext(long cartId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static java.util.List<ShoppingCart> findByGroupId(long groupId)
           
static java.util.List<ShoppingCart> findByGroupId(long groupId, int start, int end)
           
static java.util.List<ShoppingCart> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static ShoppingCart findByPrimaryKey(long cartId)
           
static ShoppingCart findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static ShoppingCart findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static ShoppingCart[] findByUserId_PrevAndNext(long cartId, long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static java.util.List<ShoppingCart> findByUserId(long userId)
           
static java.util.List<ShoppingCart> findByUserId(long userId, int start, int end)
           
static java.util.List<ShoppingCart> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
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 ShoppingCartPersistence getPersistence()
           
static ShoppingCart remove(long cartId)
           
static ShoppingCart remove(ShoppingCart shoppingCart)
           
static void removeAll()
           
static void removeByG_U(long groupId, long userId)
           
static void removeByGroupId(long groupId)
           
static void removeByUserId(long userId)
           
 void setPersistence(ShoppingCartPersistence persistence)
           
static ShoppingCart update(ShoppingCart shoppingCart)
          Deprecated. Use com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean).
static ShoppingCart update(ShoppingCart shoppingCart, boolean merge)
           
static ShoppingCart updateImpl(ShoppingCart shoppingCart, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShoppingCartUtil

public ShoppingCartUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(ShoppingCart shoppingCart)
See Also:
com.liferay.portal.service.persistence.BasePersistence#clearCache(ShoppingCart)

countWithDynamicQuery

public int countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

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
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

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
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

remove

public static ShoppingCart remove(ShoppingCart shoppingCart)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static ShoppingCart update(ShoppingCart shoppingCart,
                                  boolean merge)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

cacheResult

public static void cacheResult(ShoppingCart shoppingCart)

cacheResult

public static void cacheResult(java.util.List<ShoppingCart> shoppingCarts)

create

public static ShoppingCart create(long cartId)

remove

public static ShoppingCart remove(long cartId)
                           throws com.liferay.portal.SystemException,
                                  NoSuchCartException
Throws:
com.liferay.portal.SystemException
NoSuchCartException

update

public static ShoppingCart update(ShoppingCart shoppingCart)
                           throws com.liferay.portal.SystemException
Deprecated. Use com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean).

Throws:
com.liferay.portal.SystemException

updateImpl

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

findByPrimaryKey

public static ShoppingCart findByPrimaryKey(long cartId)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchCartException
Throws:
com.liferay.portal.SystemException
NoSuchCartException

fetchByPrimaryKey

public static ShoppingCart fetchByPrimaryKey(long cartId)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

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

findByGroupId

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

findByGroupId

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

findByGroupId_First

public static ShoppingCart findByGroupId_First(long groupId,
                                               com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                        throws com.liferay.portal.SystemException,
                                               NoSuchCartException
Throws:
com.liferay.portal.SystemException
NoSuchCartException

findByGroupId_Last

public static ShoppingCart findByGroupId_Last(long groupId,
                                              com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                       throws com.liferay.portal.SystemException,
                                              NoSuchCartException
Throws:
com.liferay.portal.SystemException
NoSuchCartException

findByGroupId_PrevAndNext

public static ShoppingCart[] findByGroupId_PrevAndNext(long cartId,
                                                       long groupId,
                                                       com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                throws com.liferay.portal.SystemException,
                                                       NoSuchCartException
Throws:
com.liferay.portal.SystemException
NoSuchCartException

findByUserId

public static java.util.List<ShoppingCart> findByUserId(long userId)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

public static java.util.List<ShoppingCart> findByUserId(long userId,
                                                        int start,
                                                        int end)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

public static java.util.List<ShoppingCart> findByUserId(long userId,
                                                        int start,
                                                        int end,
                                                        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId_First

public static ShoppingCart findByUserId_First(long userId,
                                              com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                       throws com.liferay.portal.SystemException,
                                              NoSuchCartException
Throws:
com.liferay.portal.SystemException
NoSuchCartException

findByUserId_Last

public static ShoppingCart findByUserId_Last(long userId,
                                             com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchCartException
Throws:
com.liferay.portal.SystemException
NoSuchCartException

findByUserId_PrevAndNext

public static ShoppingCart[] findByUserId_PrevAndNext(long cartId,
                                                      long userId,
                                                      com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                               throws com.liferay.portal.SystemException,
                                                      NoSuchCartException
Throws:
com.liferay.portal.SystemException
NoSuchCartException

findByG_U

public static ShoppingCart findByG_U(long groupId,
                                     long userId)
                              throws com.liferay.portal.SystemException,
                                     NoSuchCartException
Throws:
com.liferay.portal.SystemException
NoSuchCartException

fetchByG_U

public static ShoppingCart fetchByG_U(long groupId,
                                      long userId)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

fetchByG_U

public static ShoppingCart fetchByG_U(long groupId,
                                      long userId,
                                      boolean retrieveFromCache)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

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

findAll

public static java.util.List<ShoppingCart> findAll(int start,
                                                   int end,
                                                   com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                            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

removeByUserId

public static void removeByUserId(long userId)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByG_U

public static void removeByG_U(long groupId,
                               long userId)
                        throws com.liferay.portal.SystemException,
                               NoSuchCartException
Throws:
com.liferay.portal.SystemException
NoSuchCartException

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

countByUserId

public static int countByUserId(long userId)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_U

public static int countByG_U(long groupId,
                             long userId)
                      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 ShoppingCartPersistence getPersistence()

setPersistence

public void setPersistence(ShoppingCartPersistence persistence)