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