1
14
15 package com.liferay.portlet.shopping.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19 import com.liferay.portal.kernel.exception.SystemException;
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.kernel.exception.SystemException,
97 com.liferay.portlet.shopping.NoSuchItemPriceException {
98 return getPersistence().remove(itemPriceId);
99 }
100
101 public static com.liferay.portlet.shopping.model.ShoppingItemPrice updateImpl(
102 com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice,
103 boolean merge)
104 throws com.liferay.portal.kernel.exception.SystemException {
105 return getPersistence().updateImpl(shoppingItemPrice, merge);
106 }
107
108 public static com.liferay.portlet.shopping.model.ShoppingItemPrice findByPrimaryKey(
109 long itemPriceId)
110 throws com.liferay.portal.kernel.exception.SystemException,
111 com.liferay.portlet.shopping.NoSuchItemPriceException {
112 return getPersistence().findByPrimaryKey(itemPriceId);
113 }
114
115 public static com.liferay.portlet.shopping.model.ShoppingItemPrice fetchByPrimaryKey(
116 long itemPriceId)
117 throws com.liferay.portal.kernel.exception.SystemException {
118 return getPersistence().fetchByPrimaryKey(itemPriceId);
119 }
120
121 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findByItemId(
122 long itemId) throws com.liferay.portal.kernel.exception.SystemException {
123 return getPersistence().findByItemId(itemId);
124 }
125
126 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findByItemId(
127 long itemId, int start, int end)
128 throws com.liferay.portal.kernel.exception.SystemException {
129 return getPersistence().findByItemId(itemId, start, end);
130 }
131
132 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findByItemId(
133 long itemId, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getPersistence()
137 .findByItemId(itemId, start, end, orderByComparator);
138 }
139
140 public static com.liferay.portlet.shopping.model.ShoppingItemPrice findByItemId_First(
141 long itemId,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.kernel.exception.SystemException,
144 com.liferay.portlet.shopping.NoSuchItemPriceException {
145 return getPersistence().findByItemId_First(itemId, orderByComparator);
146 }
147
148 public static com.liferay.portlet.shopping.model.ShoppingItemPrice findByItemId_Last(
149 long itemId,
150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151 throws com.liferay.portal.kernel.exception.SystemException,
152 com.liferay.portlet.shopping.NoSuchItemPriceException {
153 return getPersistence().findByItemId_Last(itemId, orderByComparator);
154 }
155
156 public static com.liferay.portlet.shopping.model.ShoppingItemPrice[] findByItemId_PrevAndNext(
157 long itemPriceId, long itemId,
158 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159 throws com.liferay.portal.kernel.exception.SystemException,
160 com.liferay.portlet.shopping.NoSuchItemPriceException {
161 return getPersistence()
162 .findByItemId_PrevAndNext(itemPriceId, itemId,
163 orderByComparator);
164 }
165
166 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findAll()
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getPersistence().findAll();
169 }
170
171 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findAll(
172 int start, int end)
173 throws com.liferay.portal.kernel.exception.SystemException {
174 return getPersistence().findAll(start, end);
175 }
176
177 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findAll(
178 int start, int end,
179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180 throws com.liferay.portal.kernel.exception.SystemException {
181 return getPersistence().findAll(start, end, orderByComparator);
182 }
183
184 public static void removeByItemId(long itemId)
185 throws com.liferay.portal.kernel.exception.SystemException {
186 getPersistence().removeByItemId(itemId);
187 }
188
189 public static void removeAll()
190 throws com.liferay.portal.kernel.exception.SystemException {
191 getPersistence().removeAll();
192 }
193
194 public static int countByItemId(long itemId)
195 throws com.liferay.portal.kernel.exception.SystemException {
196 return getPersistence().countByItemId(itemId);
197 }
198
199 public static int countAll()
200 throws com.liferay.portal.kernel.exception.SystemException {
201 return getPersistence().countAll();
202 }
203
204 public static ShoppingItemPricePersistence getPersistence() {
205 if (_persistence == null) {
206 _persistence = (ShoppingItemPricePersistence)PortalBeanLocatorUtil.locate(ShoppingItemPricePersistence.class.getName());
207 }
208
209 return _persistence;
210 }
211
212 public void setPersistence(ShoppingItemPricePersistence persistence) {
213 _persistence = persistence;
214 }
215
216 private static ShoppingItemPricePersistence _persistence;
217 }