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