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 obc)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getPersistence().findByItemId(itemId, start, end, obc);
137 }
138
139 public static com.liferay.portlet.shopping.model.ShoppingItemPrice findByItemId_First(
140 long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
141 throws com.liferay.portal.kernel.exception.SystemException,
142 com.liferay.portlet.shopping.NoSuchItemPriceException {
143 return getPersistence().findByItemId_First(itemId, obc);
144 }
145
146 public static com.liferay.portlet.shopping.model.ShoppingItemPrice findByItemId_Last(
147 long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
148 throws com.liferay.portal.kernel.exception.SystemException,
149 com.liferay.portlet.shopping.NoSuchItemPriceException {
150 return getPersistence().findByItemId_Last(itemId, obc);
151 }
152
153 public static com.liferay.portlet.shopping.model.ShoppingItemPrice[] findByItemId_PrevAndNext(
154 long itemPriceId, long itemId,
155 com.liferay.portal.kernel.util.OrderByComparator obc)
156 throws com.liferay.portal.kernel.exception.SystemException,
157 com.liferay.portlet.shopping.NoSuchItemPriceException {
158 return getPersistence()
159 .findByItemId_PrevAndNext(itemPriceId, itemId, obc);
160 }
161
162 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findAll()
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getPersistence().findAll();
165 }
166
167 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findAll(
168 int start, int end)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getPersistence().findAll(start, end);
171 }
172
173 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findAll(
174 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
175 throws com.liferay.portal.kernel.exception.SystemException {
176 return getPersistence().findAll(start, end, obc);
177 }
178
179 public static void removeByItemId(long itemId)
180 throws com.liferay.portal.kernel.exception.SystemException {
181 getPersistence().removeByItemId(itemId);
182 }
183
184 public static void removeAll()
185 throws com.liferay.portal.kernel.exception.SystemException {
186 getPersistence().removeAll();
187 }
188
189 public static int countByItemId(long itemId)
190 throws com.liferay.portal.kernel.exception.SystemException {
191 return getPersistence().countByItemId(itemId);
192 }
193
194 public static int countAll()
195 throws com.liferay.portal.kernel.exception.SystemException {
196 return getPersistence().countAll();
197 }
198
199 public static ShoppingItemPricePersistence getPersistence() {
200 if (_persistence == null) {
201 _persistence = (ShoppingItemPricePersistence)PortalBeanLocatorUtil.locate(ShoppingItemPricePersistence.class.getName());
202 }
203
204 return _persistence;
205 }
206
207 public void setPersistence(ShoppingItemPricePersistence persistence) {
208 _persistence = persistence;
209 }
210
211 private static ShoppingItemPricePersistence _persistence;
212 }