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

All Superinterfaces:
BasePersistence

@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface ShoppingOrderItemPersistence
extends BasePersistence

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<ShoppingOrderItem> findAll()
           
 java.util.List<ShoppingOrderItem> findAll(int start, int end)
           
 java.util.List<ShoppingOrderItem> findAll(int start, 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<ShoppingOrderItem> findByOrderId(long orderId)
           
 java.util.List<ShoppingOrderItem> findByOrderId(long orderId, int start, int end)
           
 java.util.List<ShoppingOrderItem> findByOrderId(long orderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ShoppingOrderItem findByPrimaryKey(long orderItemId)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 ShoppingOrderItem remove(long orderItemId)
           
 ShoppingOrderItem remove(ShoppingOrderItem shoppingOrderItem)
           
 void removeAll()
           
 void removeByOrderId(long orderId)
           
 ShoppingOrderItem update(ShoppingOrderItem shoppingOrderItem)
          Deprecated. Use update(ShoppingOrderItem shoppingOrderItem, boolean merge).
 ShoppingOrderItem update(ShoppingOrderItem shoppingOrderItem, boolean merge)
          Add, update, or merge, the entity.
 ShoppingOrderItem updateImpl(ShoppingOrderItem shoppingOrderItem, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

create

ShoppingOrderItem create(long orderItemId)

remove

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

remove

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

update

ShoppingOrderItem update(ShoppingOrderItem shoppingOrderItem)
                         throws com.liferay.portal.SystemException
Deprecated. Use update(ShoppingOrderItem shoppingOrderItem, boolean merge).

Throws:
com.liferay.portal.SystemException

update

ShoppingOrderItem update(ShoppingOrderItem shoppingOrderItem,
                         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:
shoppingOrderItem - 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 shoppingOrderItem 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

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

findByPrimaryKey

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ShoppingOrderItem findByPrimaryKey(long orderItemId)
                                   throws com.liferay.portal.SystemException,
                                          NoSuchOrderItemException
Throws:
com.liferay.portal.SystemException
NoSuchOrderItemException

fetchByPrimaryKey

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

findByOrderId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingOrderItem> findByOrderId(long orderId)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByOrderId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingOrderItem> findByOrderId(long orderId,
                                                              int start,
                                                              int end)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByOrderId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingOrderItem> findByOrderId(long orderId,
                                                              int start,
                                                              int end,
                                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByOrderId_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingOrderItem> findAll()
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingOrderItem> findAll(int start,
                                                        int end)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingOrderItem> findAll(int start,
                                                        int end,
                                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByOrderId

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

removeAll

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

countByOrderId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByOrderId(long orderId)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException