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