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