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