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


public interface ShoppingOrderItemPersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByOrderId(long orderId)
           
 ShoppingOrderItem create(long orderItemId)
           
 ShoppingOrderItem fetchByPrimaryKey(long orderItemId)
           
 java.util.List findAll()
           
 java.util.List findAll(int begin, int end)
           
 java.util.List findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ShoppingOrderItem findByOrderId_First(long orderId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ShoppingOrderItem findByOrderId_Last(long orderId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ShoppingOrderItem[] findByOrderId_PrevAndNext(long orderItemId, long orderId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List findByOrderId(long orderId)
           
 java.util.List findByOrderId(long orderId, int begin, int end)
           
 java.util.List findByOrderId(long orderId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ShoppingOrderItem findByPrimaryKey(long orderItemId)
           
 java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 ShoppingOrderItem remove(long orderItemId)
           
 ShoppingOrderItem remove(ShoppingOrderItem shoppingOrderItem)
           
 void removeAll()
           
 void removeByOrderId(long orderId)
           
 ShoppingOrderItem update(ShoppingOrderItem shoppingOrderItem)
           
 ShoppingOrderItem update(ShoppingOrderItem shoppingOrderItem, boolean merge)
           
 ShoppingOrderItem updateImpl(ShoppingOrderItem shoppingOrderItem, boolean merge)
           
 

Method Detail

create

public ShoppingOrderItem create(long orderItemId)

remove

public ShoppingOrderItem remove(long orderItemId)
                         throws com.liferay.portal.SystemException,
                                NoSuchOrderItemException
Throws:
com.liferay.portal.SystemException
NoSuchOrderItemException

remove

public ShoppingOrderItem remove(ShoppingOrderItem shoppingOrderItem)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public ShoppingOrderItem update(ShoppingOrderItem shoppingOrderItem)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public ShoppingOrderItem update(ShoppingOrderItem shoppingOrderItem,
                                boolean merge)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateImpl

public ShoppingOrderItem updateImpl(ShoppingOrderItem shoppingOrderItem,
                                    boolean merge)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public ShoppingOrderItem findByPrimaryKey(long orderItemId)
                                   throws com.liferay.portal.SystemException,
                                          NoSuchOrderItemException
Throws:
com.liferay.portal.SystemException
NoSuchOrderItemException

fetchByPrimaryKey

public ShoppingOrderItem fetchByPrimaryKey(long orderItemId)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByOrderId

public java.util.List findByOrderId(long orderId)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByOrderId

public java.util.List findByOrderId(long orderId,
                                    int begin,
                                    int end)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByOrderId

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

findByOrderId_First

public ShoppingOrderItem findByOrderId_First(long orderId,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchOrderItemException
Throws:
com.liferay.portal.SystemException
NoSuchOrderItemException

findByOrderId_Last

public ShoppingOrderItem findByOrderId_Last(long orderId,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchOrderItemException
Throws:
com.liferay.portal.SystemException
NoSuchOrderItemException

findByOrderId_PrevAndNext

public ShoppingOrderItem[] findByOrderId_PrevAndNext(long orderItemId,
                                                     long orderId,
                                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                              throws com.liferay.portal.SystemException,
                                                     NoSuchOrderItemException
Throws:
com.liferay.portal.SystemException
NoSuchOrderItemException

findWithDynamicQuery

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

findWithDynamicQuery

public 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 java.util.List findAll()
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

public 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

removeByOrderId

public void removeByOrderId(long orderId)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeAll

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

countByOrderId

public int countByOrderId(long orderId)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

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