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