1
14
15 package com.liferay.portlet.shopping.service.persistence;
16
17 import com.liferay.portal.SystemException;
18 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20
21 import com.liferay.portlet.shopping.model.ShoppingItemPrice;
22
23 import java.util.List;
24
25
38 public class ShoppingItemPriceUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50 throws SystemException {
51 return getPersistence().findWithDynamicQuery(dynamicQuery);
52 }
53
54
57 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58 int start, int end) throws SystemException {
59 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60 }
61
62
65 public static ShoppingItemPrice remove(ShoppingItemPrice shoppingItemPrice)
66 throws SystemException {
67 return getPersistence().remove(shoppingItemPrice);
68 }
69
70
73 public static ShoppingItemPrice update(
74 ShoppingItemPrice shoppingItemPrice, boolean merge)
75 throws SystemException {
76 return getPersistence().update(shoppingItemPrice, merge);
77 }
78
79 public static void cacheResult(
80 com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice) {
81 getPersistence().cacheResult(shoppingItemPrice);
82 }
83
84 public static void cacheResult(
85 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> shoppingItemPrices) {
86 getPersistence().cacheResult(shoppingItemPrices);
87 }
88
89 public static com.liferay.portlet.shopping.model.ShoppingItemPrice create(
90 long itemPriceId) {
91 return getPersistence().create(itemPriceId);
92 }
93
94 public static com.liferay.portlet.shopping.model.ShoppingItemPrice remove(
95 long itemPriceId)
96 throws com.liferay.portal.SystemException,
97 com.liferay.portlet.shopping.NoSuchItemPriceException {
98 return getPersistence().remove(itemPriceId);
99 }
100
101
104 public static com.liferay.portlet.shopping.model.ShoppingItemPrice update(
105 com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice)
106 throws com.liferay.portal.SystemException {
107 return getPersistence().update(shoppingItemPrice);
108 }
109
110 public static com.liferay.portlet.shopping.model.ShoppingItemPrice updateImpl(
111 com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice,
112 boolean merge) throws com.liferay.portal.SystemException {
113 return getPersistence().updateImpl(shoppingItemPrice, merge);
114 }
115
116 public static com.liferay.portlet.shopping.model.ShoppingItemPrice findByPrimaryKey(
117 long itemPriceId)
118 throws com.liferay.portal.SystemException,
119 com.liferay.portlet.shopping.NoSuchItemPriceException {
120 return getPersistence().findByPrimaryKey(itemPriceId);
121 }
122
123 public static com.liferay.portlet.shopping.model.ShoppingItemPrice fetchByPrimaryKey(
124 long itemPriceId) throws com.liferay.portal.SystemException {
125 return getPersistence().fetchByPrimaryKey(itemPriceId);
126 }
127
128 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findByItemId(
129 long itemId) throws com.liferay.portal.SystemException {
130 return getPersistence().findByItemId(itemId);
131 }
132
133 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findByItemId(
134 long itemId, int start, int end)
135 throws com.liferay.portal.SystemException {
136 return getPersistence().findByItemId(itemId, start, end);
137 }
138
139 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findByItemId(
140 long itemId, int start, int end,
141 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142 throws com.liferay.portal.SystemException {
143 return getPersistence()
144 .findByItemId(itemId, start, end, orderByComparator);
145 }
146
147 public static com.liferay.portlet.shopping.model.ShoppingItemPrice findByItemId_First(
148 long itemId,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.SystemException,
151 com.liferay.portlet.shopping.NoSuchItemPriceException {
152 return getPersistence().findByItemId_First(itemId, orderByComparator);
153 }
154
155 public static com.liferay.portlet.shopping.model.ShoppingItemPrice findByItemId_Last(
156 long itemId,
157 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158 throws com.liferay.portal.SystemException,
159 com.liferay.portlet.shopping.NoSuchItemPriceException {
160 return getPersistence().findByItemId_Last(itemId, orderByComparator);
161 }
162
163 public static com.liferay.portlet.shopping.model.ShoppingItemPrice[] findByItemId_PrevAndNext(
164 long itemPriceId, long itemId,
165 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166 throws com.liferay.portal.SystemException,
167 com.liferay.portlet.shopping.NoSuchItemPriceException {
168 return getPersistence()
169 .findByItemId_PrevAndNext(itemPriceId, itemId,
170 orderByComparator);
171 }
172
173 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findAll()
174 throws com.liferay.portal.SystemException {
175 return getPersistence().findAll();
176 }
177
178 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findAll(
179 int start, int end) throws com.liferay.portal.SystemException {
180 return getPersistence().findAll(start, end);
181 }
182
183 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findAll(
184 int start, int end,
185 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
186 throws com.liferay.portal.SystemException {
187 return getPersistence().findAll(start, end, orderByComparator);
188 }
189
190 public static void removeByItemId(long itemId)
191 throws com.liferay.portal.SystemException {
192 getPersistence().removeByItemId(itemId);
193 }
194
195 public static void removeAll() throws com.liferay.portal.SystemException {
196 getPersistence().removeAll();
197 }
198
199 public static int countByItemId(long itemId)
200 throws com.liferay.portal.SystemException {
201 return getPersistence().countByItemId(itemId);
202 }
203
204 public static int countAll() throws com.liferay.portal.SystemException {
205 return getPersistence().countAll();
206 }
207
208 public static ShoppingItemPricePersistence getPersistence() {
209 if (_persistence == null) {
210 _persistence = (ShoppingItemPricePersistence)PortalBeanLocatorUtil.locate(ShoppingItemPricePersistence.class.getName());
211 }
212
213 return _persistence;
214 }
215
216 public void setPersistence(ShoppingItemPricePersistence persistence) {
217 _persistence = persistence;
218 }
219
220 private static ShoppingItemPricePersistence _persistence;
221 }