com.liferay.portlet.shopping.service.persistence
Interface ShoppingCartPersistence

All Superinterfaces:
BasePersistence<ShoppingCart>

public interface ShoppingCartPersistence
extends BasePersistence<ShoppingCart>

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:
ShoppingCartPersistenceImpl, ShoppingCartUtil
Generated:

Method Summary
 void cacheResult(java.util.List<ShoppingCart> shoppingCarts)
           
 void cacheResult(ShoppingCart shoppingCart)
           
 int countAll()
           
 int countByG_U(long groupId, long userId)
           
 int countByGroupId(long groupId)
           
 int countByUserId(long userId)
           
 ShoppingCart create(long cartId)
           
 ShoppingCart fetchByG_U(long groupId, long userId)
           
 ShoppingCart fetchByG_U(long groupId, long userId, boolean retrieveFromCache)
           
 ShoppingCart fetchByPrimaryKey(long cartId)
           
 java.util.List<ShoppingCart> findAll()
           
 java.util.List<ShoppingCart> findAll(int start, int end)
           
 java.util.List<ShoppingCart> findAll(int start, int end, OrderByComparator orderByComparator)
           
 ShoppingCart findByG_U(long groupId, long userId)
           
 ShoppingCart findByGroupId_First(long groupId, OrderByComparator orderByComparator)
           
 ShoppingCart findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
           
 ShoppingCart[] findByGroupId_PrevAndNext(long cartId, long groupId, OrderByComparator orderByComparator)
           
 java.util.List<ShoppingCart> findByGroupId(long groupId)
           
 java.util.List<ShoppingCart> findByGroupId(long groupId, int start, int end)
           
 java.util.List<ShoppingCart> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
           
 ShoppingCart findByPrimaryKey(long cartId)
           
 ShoppingCart findByUserId_First(long userId, OrderByComparator orderByComparator)
           
 ShoppingCart findByUserId_Last(long userId, OrderByComparator orderByComparator)
           
 ShoppingCart[] findByUserId_PrevAndNext(long cartId, long userId, OrderByComparator orderByComparator)
           
 java.util.List<ShoppingCart> findByUserId(long userId)
           
 java.util.List<ShoppingCart> findByUserId(long userId, int start, int end)
           
 java.util.List<ShoppingCart> findByUserId(long userId, int start, int end, OrderByComparator orderByComparator)
           
 ShoppingCart remove(long cartId)
           
 void removeAll()
           
 void removeByG_U(long groupId, long userId)
           
 void removeByGroupId(long groupId)
           
 void removeByUserId(long userId)
           
 ShoppingCart updateImpl(ShoppingCart shoppingCart, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update
 

Method Detail

cacheResult

void cacheResult(ShoppingCart shoppingCart)

cacheResult

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

create

ShoppingCart create(long cartId)

remove

ShoppingCart remove(long cartId)
                    throws SystemException,
                           NoSuchCartException
Throws:
SystemException
NoSuchCartException

updateImpl

ShoppingCart updateImpl(ShoppingCart shoppingCart,
                        boolean merge)
                        throws SystemException
Throws:
SystemException

findByPrimaryKey

ShoppingCart findByPrimaryKey(long cartId)
                              throws SystemException,
                                     NoSuchCartException
Throws:
SystemException
NoSuchCartException

fetchByPrimaryKey

ShoppingCart fetchByPrimaryKey(long cartId)
                               throws SystemException
Throws:
SystemException

findByGroupId

java.util.List<ShoppingCart> findByGroupId(long groupId)
                                           throws SystemException
Throws:
SystemException

findByGroupId

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

findByGroupId

java.util.List<ShoppingCart> findByGroupId(long groupId,
                                           int start,
                                           int end,
                                           OrderByComparator orderByComparator)
                                           throws SystemException
Throws:
SystemException

findByGroupId_First

ShoppingCart findByGroupId_First(long groupId,
                                 OrderByComparator orderByComparator)
                                 throws SystemException,
                                        NoSuchCartException
Throws:
SystemException
NoSuchCartException

findByGroupId_Last

ShoppingCart findByGroupId_Last(long groupId,
                                OrderByComparator orderByComparator)
                                throws SystemException,
                                       NoSuchCartException
Throws:
SystemException
NoSuchCartException

findByGroupId_PrevAndNext

ShoppingCart[] findByGroupId_PrevAndNext(long cartId,
                                         long groupId,
                                         OrderByComparator orderByComparator)
                                         throws SystemException,
                                                NoSuchCartException
Throws:
SystemException
NoSuchCartException

findByUserId

java.util.List<ShoppingCart> findByUserId(long userId)
                                          throws SystemException
Throws:
SystemException

findByUserId

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

findByUserId

java.util.List<ShoppingCart> findByUserId(long userId,
                                          int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                          throws SystemException
Throws:
SystemException

findByUserId_First

ShoppingCart findByUserId_First(long userId,
                                OrderByComparator orderByComparator)
                                throws SystemException,
                                       NoSuchCartException
Throws:
SystemException
NoSuchCartException

findByUserId_Last

ShoppingCart findByUserId_Last(long userId,
                               OrderByComparator orderByComparator)
                               throws SystemException,
                                      NoSuchCartException
Throws:
SystemException
NoSuchCartException

findByUserId_PrevAndNext

ShoppingCart[] findByUserId_PrevAndNext(long cartId,
                                        long userId,
                                        OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchCartException
Throws:
SystemException
NoSuchCartException

findByG_U

ShoppingCart findByG_U(long groupId,
                       long userId)
                       throws SystemException,
                              NoSuchCartException
Throws:
SystemException
NoSuchCartException

fetchByG_U

ShoppingCart fetchByG_U(long groupId,
                        long userId)
                        throws SystemException
Throws:
SystemException

fetchByG_U

ShoppingCart fetchByG_U(long groupId,
                        long userId,
                        boolean retrieveFromCache)
                        throws SystemException
Throws:
SystemException

findAll

java.util.List<ShoppingCart> findAll()
                                     throws SystemException
Throws:
SystemException

findAll

java.util.List<ShoppingCart> findAll(int start,
                                     int end)
                                     throws SystemException
Throws:
SystemException

findAll

java.util.List<ShoppingCart> findAll(int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                                     throws SystemException
Throws:
SystemException

removeByGroupId

void removeByGroupId(long groupId)
                     throws SystemException
Throws:
SystemException

removeByUserId

void removeByUserId(long userId)
                    throws SystemException
Throws:
SystemException

removeByG_U

void removeByG_U(long groupId,
                 long userId)
                 throws SystemException,
                        NoSuchCartException
Throws:
SystemException
NoSuchCartException

removeAll

void removeAll()
               throws SystemException
Throws:
SystemException

countByGroupId

int countByGroupId(long groupId)
                   throws SystemException
Throws:
SystemException

countByUserId

int countByUserId(long userId)
                  throws SystemException
Throws:
SystemException

countByG_U

int countByG_U(long groupId,
               long userId)
               throws SystemException
Throws:
SystemException

countAll

int countAll()
             throws SystemException
Throws:
SystemException