001
014
015 package com.liferay.portlet.shopping.service.persistence;
016
017 import com.liferay.portal.service.persistence.BasePersistence;
018
019 import com.liferay.portlet.shopping.model.ShoppingOrderItem;
020
021
027 public interface ShoppingOrderItemPersistence extends BasePersistence<ShoppingOrderItem> {
028 public void cacheResult(
029 com.liferay.portlet.shopping.model.ShoppingOrderItem shoppingOrderItem);
030
031 public void cacheResult(
032 java.util.List<com.liferay.portlet.shopping.model.ShoppingOrderItem> shoppingOrderItems);
033
034 public com.liferay.portlet.shopping.model.ShoppingOrderItem create(
035 long orderItemId);
036
037 public com.liferay.portlet.shopping.model.ShoppingOrderItem remove(
038 long orderItemId)
039 throws com.liferay.portal.kernel.exception.SystemException,
040 com.liferay.portlet.shopping.NoSuchOrderItemException;
041
042 public com.liferay.portlet.shopping.model.ShoppingOrderItem updateImpl(
043 com.liferay.portlet.shopping.model.ShoppingOrderItem shoppingOrderItem,
044 boolean merge)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portlet.shopping.model.ShoppingOrderItem findByPrimaryKey(
048 long orderItemId)
049 throws com.liferay.portal.kernel.exception.SystemException,
050 com.liferay.portlet.shopping.NoSuchOrderItemException;
051
052 public com.liferay.portlet.shopping.model.ShoppingOrderItem fetchByPrimaryKey(
053 long orderItemId)
054 throws com.liferay.portal.kernel.exception.SystemException;
055
056 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrderItem> findByOrderId(
057 long orderId)
058 throws com.liferay.portal.kernel.exception.SystemException;
059
060 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrderItem> findByOrderId(
061 long orderId, int start, int end)
062 throws com.liferay.portal.kernel.exception.SystemException;
063
064 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrderItem> findByOrderId(
065 long orderId, int start, int end,
066 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
067 throws com.liferay.portal.kernel.exception.SystemException;
068
069 public com.liferay.portlet.shopping.model.ShoppingOrderItem findByOrderId_First(
070 long orderId,
071 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072 throws com.liferay.portal.kernel.exception.SystemException,
073 com.liferay.portlet.shopping.NoSuchOrderItemException;
074
075 public com.liferay.portlet.shopping.model.ShoppingOrderItem findByOrderId_Last(
076 long orderId,
077 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
078 throws com.liferay.portal.kernel.exception.SystemException,
079 com.liferay.portlet.shopping.NoSuchOrderItemException;
080
081 public com.liferay.portlet.shopping.model.ShoppingOrderItem[] findByOrderId_PrevAndNext(
082 long orderItemId, long orderId,
083 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
084 throws com.liferay.portal.kernel.exception.SystemException,
085 com.liferay.portlet.shopping.NoSuchOrderItemException;
086
087 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrderItem> findAll()
088 throws com.liferay.portal.kernel.exception.SystemException;
089
090 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrderItem> findAll(
091 int start, int end)
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrderItem> findAll(
095 int start, int end,
096 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099 public void removeByOrderId(long orderId)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 public void removeAll()
103 throws com.liferay.portal.kernel.exception.SystemException;
104
105 public int countByOrderId(long orderId)
106 throws com.liferay.portal.kernel.exception.SystemException;
107
108 public int countAll()
109 throws com.liferay.portal.kernel.exception.SystemException;
110 }