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