1
22
23 package com.liferay.portlet.shopping.service.persistence;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Propagation;
28 import com.liferay.portal.kernel.annotation.Transactional;
29
30
36 @Transactional(rollbackFor = {
37 PortalException.class, SystemException.class})
38 public interface ShoppingOrderPersistence {
39 public com.liferay.portlet.shopping.model.ShoppingOrder create(long orderId);
40
41 public com.liferay.portlet.shopping.model.ShoppingOrder remove(long orderId)
42 throws com.liferay.portal.SystemException,
43 com.liferay.portlet.shopping.NoSuchOrderException;
44
45 public com.liferay.portlet.shopping.model.ShoppingOrder remove(
46 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
47 throws com.liferay.portal.SystemException;
48
49
52 public com.liferay.portlet.shopping.model.ShoppingOrder update(
53 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
54 throws com.liferay.portal.SystemException;
55
56
69 public com.liferay.portlet.shopping.model.ShoppingOrder update(
70 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
71 boolean merge) throws com.liferay.portal.SystemException;
72
73 public com.liferay.portlet.shopping.model.ShoppingOrder updateImpl(
74 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
75 boolean merge) throws com.liferay.portal.SystemException;
76
77 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78 public com.liferay.portlet.shopping.model.ShoppingOrder findByPrimaryKey(
79 long orderId)
80 throws com.liferay.portal.SystemException,
81 com.liferay.portlet.shopping.NoSuchOrderException;
82
83 public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPrimaryKey(
84 long orderId) throws com.liferay.portal.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
88 long groupId) throws com.liferay.portal.SystemException;
89
90 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
92 long groupId, int start, int end)
93 throws com.liferay.portal.SystemException;
94
95 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
96 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
97 long groupId, int start, int end,
98 com.liferay.portal.kernel.util.OrderByComparator obc)
99 throws com.liferay.portal.SystemException;
100
101 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
102 public com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_First(
103 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
104 throws com.liferay.portal.SystemException,
105 com.liferay.portlet.shopping.NoSuchOrderException;
106
107 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108 public com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_Last(
109 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException,
111 com.liferay.portlet.shopping.NoSuchOrderException;
112
113 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114 public com.liferay.portlet.shopping.model.ShoppingOrder[] findByGroupId_PrevAndNext(
115 long orderId, long groupId,
116 com.liferay.portal.kernel.util.OrderByComparator obc)
117 throws com.liferay.portal.SystemException,
118 com.liferay.portlet.shopping.NoSuchOrderException;
119
120 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
121 public com.liferay.portlet.shopping.model.ShoppingOrder findByNumber(
122 java.lang.String number)
123 throws com.liferay.portal.SystemException,
124 com.liferay.portlet.shopping.NoSuchOrderException;
125
126 public com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
127 java.lang.String number) throws com.liferay.portal.SystemException;
128
129 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
130 public com.liferay.portlet.shopping.model.ShoppingOrder findByPPTxnId(
131 java.lang.String ppTxnId)
132 throws com.liferay.portal.SystemException,
133 com.liferay.portlet.shopping.NoSuchOrderException;
134
135 public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
136 java.lang.String ppTxnId) throws com.liferay.portal.SystemException;
137
138 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
140 long groupId, long userId, java.lang.String ppPaymentStatus)
141 throws com.liferay.portal.SystemException;
142
143 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
145 long groupId, long userId, java.lang.String ppPaymentStatus, int start,
146 int end) throws com.liferay.portal.SystemException;
147
148 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
149 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
150 long groupId, long userId, java.lang.String ppPaymentStatus, int start,
151 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.SystemException;
153
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_First(
156 long groupId, long userId, java.lang.String ppPaymentStatus,
157 com.liferay.portal.kernel.util.OrderByComparator obc)
158 throws com.liferay.portal.SystemException,
159 com.liferay.portlet.shopping.NoSuchOrderException;
160
161 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162 public com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_Last(
163 long groupId, long userId, java.lang.String ppPaymentStatus,
164 com.liferay.portal.kernel.util.OrderByComparator obc)
165 throws com.liferay.portal.SystemException,
166 com.liferay.portlet.shopping.NoSuchOrderException;
167
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public com.liferay.portlet.shopping.model.ShoppingOrder[] findByG_U_PPPS_PrevAndNext(
170 long orderId, long groupId, long userId,
171 java.lang.String ppPaymentStatus,
172 com.liferay.portal.kernel.util.OrderByComparator obc)
173 throws com.liferay.portal.SystemException,
174 com.liferay.portlet.shopping.NoSuchOrderException;
175
176 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177 public java.util.List<Object> findWithDynamicQuery(
178 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
179 throws com.liferay.portal.SystemException;
180
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public java.util.List<Object> findWithDynamicQuery(
183 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
184 int end) throws com.liferay.portal.SystemException;
185
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll()
188 throws com.liferay.portal.SystemException;
189
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
192 int start, int end) throws com.liferay.portal.SystemException;
193
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
196 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
197 throws com.liferay.portal.SystemException;
198
199 public void removeByGroupId(long groupId)
200 throws com.liferay.portal.SystemException;
201
202 public void removeByNumber(java.lang.String number)
203 throws com.liferay.portal.SystemException,
204 com.liferay.portlet.shopping.NoSuchOrderException;
205
206 public void removeByPPTxnId(java.lang.String ppTxnId)
207 throws com.liferay.portal.SystemException,
208 com.liferay.portlet.shopping.NoSuchOrderException;
209
210 public void removeByG_U_PPPS(long groupId, long userId,
211 java.lang.String ppPaymentStatus)
212 throws com.liferay.portal.SystemException;
213
214 public void removeAll() throws com.liferay.portal.SystemException;
215
216 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217 public int countByGroupId(long groupId)
218 throws com.liferay.portal.SystemException;
219
220 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221 public int countByNumber(java.lang.String number)
222 throws com.liferay.portal.SystemException;
223
224 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225 public int countByPPTxnId(java.lang.String ppTxnId)
226 throws com.liferay.portal.SystemException;
227
228 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
229 public int countByG_U_PPPS(long groupId, long userId,
230 java.lang.String ppPaymentStatus)
231 throws com.liferay.portal.SystemException;
232
233 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
234 public int countAll() throws com.liferay.portal.SystemException;
235
236 public void registerListener(
237 com.liferay.portal.model.ModelListener listener);
238
239 public void unregisterListener(
240 com.liferay.portal.model.ModelListener listener);
241 }