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