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 ShoppingCartPersistence extends BasePersistence {
37 public com.liferay.portlet.shopping.model.ShoppingCart create(long cartId);
38
39 public com.liferay.portlet.shopping.model.ShoppingCart remove(long cartId)
40 throws com.liferay.portal.SystemException,
41 com.liferay.portlet.shopping.NoSuchCartException;
42
43 public com.liferay.portlet.shopping.model.ShoppingCart remove(
44 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart)
45 throws com.liferay.portal.SystemException;
46
47
50 public com.liferay.portlet.shopping.model.ShoppingCart update(
51 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart)
52 throws com.liferay.portal.SystemException;
53
54
67 public com.liferay.portlet.shopping.model.ShoppingCart update(
68 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart,
69 boolean merge) throws com.liferay.portal.SystemException;
70
71 public com.liferay.portlet.shopping.model.ShoppingCart updateImpl(
72 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart,
73 boolean merge) throws com.liferay.portal.SystemException;
74
75 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
76 public com.liferay.portlet.shopping.model.ShoppingCart findByPrimaryKey(
77 long cartId)
78 throws com.liferay.portal.SystemException,
79 com.liferay.portlet.shopping.NoSuchCartException;
80
81 public com.liferay.portlet.shopping.model.ShoppingCart fetchByPrimaryKey(
82 long cartId) throws com.liferay.portal.SystemException;
83
84 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> 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.ShoppingCart> 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.ShoppingCart> 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.ShoppingCart findByGroupId_First(
101 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
102 throws com.liferay.portal.SystemException,
103 com.liferay.portlet.shopping.NoSuchCartException;
104
105 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
106 public com.liferay.portlet.shopping.model.ShoppingCart findByGroupId_Last(
107 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
108 throws com.liferay.portal.SystemException,
109 com.liferay.portlet.shopping.NoSuchCartException;
110
111 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112 public com.liferay.portlet.shopping.model.ShoppingCart[] findByGroupId_PrevAndNext(
113 long cartId, long groupId,
114 com.liferay.portal.kernel.util.OrderByComparator obc)
115 throws com.liferay.portal.SystemException,
116 com.liferay.portlet.shopping.NoSuchCartException;
117
118 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
119 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByUserId(
120 long userId) throws com.liferay.portal.SystemException;
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByUserId(
124 long userId, int start, int end)
125 throws com.liferay.portal.SystemException;
126
127 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
128 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByUserId(
129 long userId, int start, int end,
130 com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.SystemException;
132
133 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134 public com.liferay.portlet.shopping.model.ShoppingCart findByUserId_First(
135 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
136 throws com.liferay.portal.SystemException,
137 com.liferay.portlet.shopping.NoSuchCartException;
138
139 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
140 public com.liferay.portlet.shopping.model.ShoppingCart findByUserId_Last(
141 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
142 throws com.liferay.portal.SystemException,
143 com.liferay.portlet.shopping.NoSuchCartException;
144
145 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146 public com.liferay.portlet.shopping.model.ShoppingCart[] findByUserId_PrevAndNext(
147 long cartId, long userId,
148 com.liferay.portal.kernel.util.OrderByComparator obc)
149 throws com.liferay.portal.SystemException,
150 com.liferay.portlet.shopping.NoSuchCartException;
151
152 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153 public com.liferay.portlet.shopping.model.ShoppingCart findByG_U(
154 long groupId, long userId)
155 throws com.liferay.portal.SystemException,
156 com.liferay.portlet.shopping.NoSuchCartException;
157
158 public com.liferay.portlet.shopping.model.ShoppingCart fetchByG_U(
159 long groupId, long userId) throws com.liferay.portal.SystemException;
160
161 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162 public java.util.List<Object> findWithDynamicQuery(
163 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
164 throws com.liferay.portal.SystemException;
165
166 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167 public java.util.List<Object> findWithDynamicQuery(
168 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
169 int end) throws com.liferay.portal.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findAll()
173 throws com.liferay.portal.SystemException;
174
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findAll(
177 int start, int end) throws com.liferay.portal.SystemException;
178
179 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findAll(
181 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
182 throws com.liferay.portal.SystemException;
183
184 public void removeByGroupId(long groupId)
185 throws com.liferay.portal.SystemException;
186
187 public void removeByUserId(long userId)
188 throws com.liferay.portal.SystemException;
189
190 public void removeByG_U(long groupId, long userId)
191 throws com.liferay.portal.SystemException,
192 com.liferay.portlet.shopping.NoSuchCartException;
193
194 public void removeAll() throws com.liferay.portal.SystemException;
195
196 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197 public int countByGroupId(long groupId)
198 throws com.liferay.portal.SystemException;
199
200 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201 public int countByUserId(long userId)
202 throws com.liferay.portal.SystemException;
203
204 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205 public int countByG_U(long groupId, long userId)
206 throws com.liferay.portal.SystemException;
207
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public int countAll() throws com.liferay.portal.SystemException;
210 }