1
22
23 package com.liferay.portlet.shopping.service.persistence;
24
25
31 public class ShoppingItemPriceUtil {
32 public static com.liferay.portlet.shopping.model.ShoppingItemPrice create(
33 long itemPriceId) {
34 return getPersistence().create(itemPriceId);
35 }
36
37 public static com.liferay.portlet.shopping.model.ShoppingItemPrice remove(
38 long itemPriceId)
39 throws com.liferay.portal.SystemException,
40 com.liferay.portlet.shopping.NoSuchItemPriceException {
41 return getPersistence().remove(itemPriceId);
42 }
43
44 public static com.liferay.portlet.shopping.model.ShoppingItemPrice remove(
45 com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice)
46 throws com.liferay.portal.SystemException {
47 return getPersistence().remove(shoppingItemPrice);
48 }
49
50
53 public static com.liferay.portlet.shopping.model.ShoppingItemPrice update(
54 com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice)
55 throws com.liferay.portal.SystemException {
56 return getPersistence().update(shoppingItemPrice);
57 }
58
59
72 public static com.liferay.portlet.shopping.model.ShoppingItemPrice update(
73 com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice,
74 boolean merge) throws com.liferay.portal.SystemException {
75 return getPersistence().update(shoppingItemPrice, merge);
76 }
77
78 public static com.liferay.portlet.shopping.model.ShoppingItemPrice updateImpl(
79 com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice,
80 boolean merge) throws com.liferay.portal.SystemException {
81 return getPersistence().updateImpl(shoppingItemPrice, merge);
82 }
83
84 public static com.liferay.portlet.shopping.model.ShoppingItemPrice findByPrimaryKey(
85 long itemPriceId)
86 throws com.liferay.portal.SystemException,
87 com.liferay.portlet.shopping.NoSuchItemPriceException {
88 return getPersistence().findByPrimaryKey(itemPriceId);
89 }
90
91 public static com.liferay.portlet.shopping.model.ShoppingItemPrice fetchByPrimaryKey(
92 long itemPriceId) throws com.liferay.portal.SystemException {
93 return getPersistence().fetchByPrimaryKey(itemPriceId);
94 }
95
96 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findByItemId(
97 long itemId) throws com.liferay.portal.SystemException {
98 return getPersistence().findByItemId(itemId);
99 }
100
101 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findByItemId(
102 long itemId, int begin, int end)
103 throws com.liferay.portal.SystemException {
104 return getPersistence().findByItemId(itemId, begin, end);
105 }
106
107 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findByItemId(
108 long itemId, int begin, int end,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException {
111 return getPersistence().findByItemId(itemId, begin, end, obc);
112 }
113
114 public static com.liferay.portlet.shopping.model.ShoppingItemPrice findByItemId_First(
115 long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
116 throws com.liferay.portal.SystemException,
117 com.liferay.portlet.shopping.NoSuchItemPriceException {
118 return getPersistence().findByItemId_First(itemId, obc);
119 }
120
121 public static com.liferay.portlet.shopping.model.ShoppingItemPrice findByItemId_Last(
122 long itemId, com.liferay.portal.kernel.util.OrderByComparator obc)
123 throws com.liferay.portal.SystemException,
124 com.liferay.portlet.shopping.NoSuchItemPriceException {
125 return getPersistence().findByItemId_Last(itemId, obc);
126 }
127
128 public static com.liferay.portlet.shopping.model.ShoppingItemPrice[] findByItemId_PrevAndNext(
129 long itemPriceId, long itemId,
130 com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.SystemException,
132 com.liferay.portlet.shopping.NoSuchItemPriceException {
133 return getPersistence()
134 .findByItemId_PrevAndNext(itemPriceId, itemId, obc);
135 }
136
137 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findWithDynamicQuery(
138 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
139 throws com.liferay.portal.SystemException {
140 return getPersistence().findWithDynamicQuery(queryInitializer);
141 }
142
143 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findWithDynamicQuery(
144 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
145 int begin, int end) throws com.liferay.portal.SystemException {
146 return getPersistence()
147 .findWithDynamicQuery(queryInitializer, begin, end);
148 }
149
150 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findAll()
151 throws com.liferay.portal.SystemException {
152 return getPersistence().findAll();
153 }
154
155 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findAll(
156 int begin, int end) throws com.liferay.portal.SystemException {
157 return getPersistence().findAll(begin, end);
158 }
159
160 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findAll(
161 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
162 throws com.liferay.portal.SystemException {
163 return getPersistence().findAll(begin, end, obc);
164 }
165
166 public static void removeByItemId(long itemId)
167 throws com.liferay.portal.SystemException {
168 getPersistence().removeByItemId(itemId);
169 }
170
171 public static void removeAll() throws com.liferay.portal.SystemException {
172 getPersistence().removeAll();
173 }
174
175 public static int countByItemId(long itemId)
176 throws com.liferay.portal.SystemException {
177 return getPersistence().countByItemId(itemId);
178 }
179
180 public static int countAll() throws com.liferay.portal.SystemException {
181 return getPersistence().countAll();
182 }
183
184 public static ShoppingItemPricePersistence getPersistence() {
185 return _getUtil()._persistence;
186 }
187
188 public void setPersistence(ShoppingItemPricePersistence persistence) {
189 _persistence = persistence;
190 }
191
192 private static ShoppingItemPriceUtil _getUtil() {
193 if (_util == null) {
194 _util = (ShoppingItemPriceUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
195 }
196
197 return _util;
198 }
199
200 private static final String _UTIL = ShoppingItemPriceUtil.class.getName();
201 private static ShoppingItemPriceUtil _util;
202 private ShoppingItemPricePersistence _persistence;
203 }