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