1
22
23 package com.liferay.portlet.shopping.service.persistence;
24
25 import com.liferay.portal.SystemException;
26 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
27 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28
29 import com.liferay.portlet.shopping.model.ShoppingOrderItem;
30
31 import java.util.List;
32
33
46 public class ShoppingOrderItemUtil {
47
50 public static void clearCache() {
51 getPersistence().clearCache();
52 }
53
54
57 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
58 throws SystemException {
59 return getPersistence().findWithDynamicQuery(dynamicQuery);
60 }
61
62
65 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
66 int start, int end) throws SystemException {
67 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
68 }
69
70
73 public static ShoppingOrderItem remove(ShoppingOrderItem shoppingOrderItem)
74 throws SystemException {
75 return getPersistence().remove(shoppingOrderItem);
76 }
77
78
81 public static ShoppingOrderItem update(
82 ShoppingOrderItem shoppingOrderItem, boolean merge)
83 throws SystemException {
84 return getPersistence().update(shoppingOrderItem, merge);
85 }
86
87 public static void cacheResult(
88 com.liferay.portlet.shopping.model.ShoppingOrderItem shoppingOrderItem) {
89 getPersistence().cacheResult(shoppingOrderItem);
90 }
91
92 public static void cacheResult(
93 java.util.List<com.liferay.portlet.shopping.model.ShoppingOrderItem> shoppingOrderItems) {
94 getPersistence().cacheResult(shoppingOrderItems);
95 }
96
97 public static com.liferay.portlet.shopping.model.ShoppingOrderItem create(
98 long orderItemId) {
99 return getPersistence().create(orderItemId);
100 }
101
102 public static com.liferay.portlet.shopping.model.ShoppingOrderItem remove(
103 long orderItemId)
104 throws com.liferay.portal.SystemException,
105 com.liferay.portlet.shopping.NoSuchOrderItemException {
106 return getPersistence().remove(orderItemId);
107 }
108
109
112 public static com.liferay.portlet.shopping.model.ShoppingOrderItem update(
113 com.liferay.portlet.shopping.model.ShoppingOrderItem shoppingOrderItem)
114 throws com.liferay.portal.SystemException {
115 return getPersistence().update(shoppingOrderItem);
116 }
117
118 public static com.liferay.portlet.shopping.model.ShoppingOrderItem updateImpl(
119 com.liferay.portlet.shopping.model.ShoppingOrderItem shoppingOrderItem,
120 boolean merge) throws com.liferay.portal.SystemException {
121 return getPersistence().updateImpl(shoppingOrderItem, merge);
122 }
123
124 public static com.liferay.portlet.shopping.model.ShoppingOrderItem findByPrimaryKey(
125 long orderItemId)
126 throws com.liferay.portal.SystemException,
127 com.liferay.portlet.shopping.NoSuchOrderItemException {
128 return getPersistence().findByPrimaryKey(orderItemId);
129 }
130
131 public static com.liferay.portlet.shopping.model.ShoppingOrderItem fetchByPrimaryKey(
132 long orderItemId) throws com.liferay.portal.SystemException {
133 return getPersistence().fetchByPrimaryKey(orderItemId);
134 }
135
136 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrderItem> findByOrderId(
137 long orderId) throws com.liferay.portal.SystemException {
138 return getPersistence().findByOrderId(orderId);
139 }
140
141 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrderItem> findByOrderId(
142 long orderId, int start, int end)
143 throws com.liferay.portal.SystemException {
144 return getPersistence().findByOrderId(orderId, start, end);
145 }
146
147 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrderItem> findByOrderId(
148 long orderId, int start, int end,
149 com.liferay.portal.kernel.util.OrderByComparator obc)
150 throws com.liferay.portal.SystemException {
151 return getPersistence().findByOrderId(orderId, start, end, obc);
152 }
153
154 public static com.liferay.portlet.shopping.model.ShoppingOrderItem findByOrderId_First(
155 long orderId, com.liferay.portal.kernel.util.OrderByComparator obc)
156 throws com.liferay.portal.SystemException,
157 com.liferay.portlet.shopping.NoSuchOrderItemException {
158 return getPersistence().findByOrderId_First(orderId, obc);
159 }
160
161 public static com.liferay.portlet.shopping.model.ShoppingOrderItem findByOrderId_Last(
162 long orderId, com.liferay.portal.kernel.util.OrderByComparator obc)
163 throws com.liferay.portal.SystemException,
164 com.liferay.portlet.shopping.NoSuchOrderItemException {
165 return getPersistence().findByOrderId_Last(orderId, obc);
166 }
167
168 public static com.liferay.portlet.shopping.model.ShoppingOrderItem[] findByOrderId_PrevAndNext(
169 long orderItemId, long orderId,
170 com.liferay.portal.kernel.util.OrderByComparator obc)
171 throws com.liferay.portal.SystemException,
172 com.liferay.portlet.shopping.NoSuchOrderItemException {
173 return getPersistence()
174 .findByOrderId_PrevAndNext(orderItemId, orderId, obc);
175 }
176
177 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrderItem> findAll()
178 throws com.liferay.portal.SystemException {
179 return getPersistence().findAll();
180 }
181
182 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrderItem> findAll(
183 int start, int end) throws com.liferay.portal.SystemException {
184 return getPersistence().findAll(start, end);
185 }
186
187 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrderItem> findAll(
188 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
189 throws com.liferay.portal.SystemException {
190 return getPersistence().findAll(start, end, obc);
191 }
192
193 public static void removeByOrderId(long orderId)
194 throws com.liferay.portal.SystemException {
195 getPersistence().removeByOrderId(orderId);
196 }
197
198 public static void removeAll() throws com.liferay.portal.SystemException {
199 getPersistence().removeAll();
200 }
201
202 public static int countByOrderId(long orderId)
203 throws com.liferay.portal.SystemException {
204 return getPersistence().countByOrderId(orderId);
205 }
206
207 public static int countAll() throws com.liferay.portal.SystemException {
208 return getPersistence().countAll();
209 }
210
211 public static ShoppingOrderItemPersistence getPersistence() {
212 if (_persistence == null) {
213 _persistence = (ShoppingOrderItemPersistence)PortalBeanLocatorUtil.locate(ShoppingOrderItemPersistence.class.getName());
214 }
215
216 return _persistence;
217 }
218
219 public void setPersistence(ShoppingOrderItemPersistence persistence) {
220 _persistence = persistence;
221 }
222
223 private static ShoppingOrderItemPersistence _persistence;
224 }