1
22
23 package com.liferay.portlet.shopping.service.persistence;
24
25
31 public interface ShoppingItemPersistence {
32 public com.liferay.portlet.shopping.model.ShoppingItem create(long itemId);
33
34 public com.liferay.portlet.shopping.model.ShoppingItem remove(long itemId)
35 throws com.liferay.portal.SystemException,
36 com.liferay.portlet.shopping.NoSuchItemException;
37
38 public com.liferay.portlet.shopping.model.ShoppingItem remove(
39 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
40 throws com.liferay.portal.SystemException;
41
42 public com.liferay.portlet.shopping.model.ShoppingItem update(
43 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
44 throws com.liferay.portal.SystemException;
45
46 public com.liferay.portlet.shopping.model.ShoppingItem update(
47 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem,
48 boolean merge) throws com.liferay.portal.SystemException;
49
50 public com.liferay.portlet.shopping.model.ShoppingItem updateImpl(
51 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem,
52 boolean merge) throws com.liferay.portal.SystemException;
53
54 public com.liferay.portlet.shopping.model.ShoppingItem findByPrimaryKey(
55 long itemId)
56 throws com.liferay.portal.SystemException,
57 com.liferay.portlet.shopping.NoSuchItemException;
58
59 public com.liferay.portlet.shopping.model.ShoppingItem fetchByPrimaryKey(
60 long itemId) throws com.liferay.portal.SystemException;
61
62 public java.util.List findByCategoryId(long categoryId)
63 throws com.liferay.portal.SystemException;
64
65 public java.util.List findByCategoryId(long categoryId, int begin, int end)
66 throws com.liferay.portal.SystemException;
67
68 public java.util.List findByCategoryId(long categoryId, int begin, int end,
69 com.liferay.portal.kernel.util.OrderByComparator obc)
70 throws com.liferay.portal.SystemException;
71
72 public com.liferay.portlet.shopping.model.ShoppingItem findByCategoryId_First(
73 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
74 throws com.liferay.portal.SystemException,
75 com.liferay.portlet.shopping.NoSuchItemException;
76
77 public com.liferay.portlet.shopping.model.ShoppingItem findByCategoryId_Last(
78 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
79 throws com.liferay.portal.SystemException,
80 com.liferay.portlet.shopping.NoSuchItemException;
81
82 public com.liferay.portlet.shopping.model.ShoppingItem[] findByCategoryId_PrevAndNext(
83 long itemId, long categoryId,
84 com.liferay.portal.kernel.util.OrderByComparator obc)
85 throws com.liferay.portal.SystemException,
86 com.liferay.portlet.shopping.NoSuchItemException;
87
88 public com.liferay.portlet.shopping.model.ShoppingItem findBySmallImageId(
89 long smallImageId)
90 throws com.liferay.portal.SystemException,
91 com.liferay.portlet.shopping.NoSuchItemException;
92
93 public com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(
94 long smallImageId) throws com.liferay.portal.SystemException;
95
96 public com.liferay.portlet.shopping.model.ShoppingItem findByMediumImageId(
97 long mediumImageId)
98 throws com.liferay.portal.SystemException,
99 com.liferay.portlet.shopping.NoSuchItemException;
100
101 public com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(
102 long mediumImageId) throws com.liferay.portal.SystemException;
103
104 public com.liferay.portlet.shopping.model.ShoppingItem findByLargeImageId(
105 long largeImageId)
106 throws com.liferay.portal.SystemException,
107 com.liferay.portlet.shopping.NoSuchItemException;
108
109 public com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(
110 long largeImageId) throws com.liferay.portal.SystemException;
111
112 public com.liferay.portlet.shopping.model.ShoppingItem findByC_S(
113 long companyId, java.lang.String sku)
114 throws com.liferay.portal.SystemException,
115 com.liferay.portlet.shopping.NoSuchItemException;
116
117 public com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(
118 long companyId, java.lang.String sku)
119 throws com.liferay.portal.SystemException;
120
121 public java.util.List findWithDynamicQuery(
122 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
123 throws com.liferay.portal.SystemException;
124
125 public java.util.List findWithDynamicQuery(
126 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
127 int begin, int end) throws com.liferay.portal.SystemException;
128
129 public java.util.List findAll() throws com.liferay.portal.SystemException;
130
131 public java.util.List findAll(int begin, int end)
132 throws com.liferay.portal.SystemException;
133
134 public java.util.List findAll(int begin, int end,
135 com.liferay.portal.kernel.util.OrderByComparator obc)
136 throws com.liferay.portal.SystemException;
137
138 public void removeByCategoryId(long categoryId)
139 throws com.liferay.portal.SystemException;
140
141 public void removeBySmallImageId(long smallImageId)
142 throws com.liferay.portal.SystemException,
143 com.liferay.portlet.shopping.NoSuchItemException;
144
145 public void removeByMediumImageId(long mediumImageId)
146 throws com.liferay.portal.SystemException,
147 com.liferay.portlet.shopping.NoSuchItemException;
148
149 public void removeByLargeImageId(long largeImageId)
150 throws com.liferay.portal.SystemException,
151 com.liferay.portlet.shopping.NoSuchItemException;
152
153 public void removeByC_S(long companyId, java.lang.String sku)
154 throws com.liferay.portal.SystemException,
155 com.liferay.portlet.shopping.NoSuchItemException;
156
157 public void removeAll() throws com.liferay.portal.SystemException;
158
159 public int countByCategoryId(long categoryId)
160 throws com.liferay.portal.SystemException;
161
162 public int countBySmallImageId(long smallImageId)
163 throws com.liferay.portal.SystemException;
164
165 public int countByMediumImageId(long mediumImageId)
166 throws com.liferay.portal.SystemException;
167
168 public int countByLargeImageId(long largeImageId)
169 throws com.liferay.portal.SystemException;
170
171 public int countByC_S(long companyId, java.lang.String sku)
172 throws com.liferay.portal.SystemException;
173
174 public int countAll() throws com.liferay.portal.SystemException;
175
176 public java.util.List getShoppingItemPrices(long pk)
177 throws com.liferay.portal.SystemException,
178 com.liferay.portlet.shopping.NoSuchItemException;
179
180 public java.util.List getShoppingItemPrices(long pk, int begin, int end)
181 throws com.liferay.portal.SystemException,
182 com.liferay.portlet.shopping.NoSuchItemException;
183
184 public java.util.List getShoppingItemPrices(long pk, int begin, int end,
185 com.liferay.portal.kernel.util.OrderByComparator obc)
186 throws com.liferay.portal.SystemException,
187 com.liferay.portlet.shopping.NoSuchItemException;
188
189 public int getShoppingItemPricesSize(long pk)
190 throws com.liferay.portal.SystemException;
191
192 public boolean containsShoppingItemPrice(long pk, long shoppingItemPricePK)
193 throws com.liferay.portal.SystemException;
194
195 public boolean containsShoppingItemPrices(long pk)
196 throws com.liferay.portal.SystemException;
197 }