1
22
23 package com.liferay.portlet.announcements.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.announcements.model.AnnouncementsDelivery;
30
31 import java.util.List;
32
33
46 public class AnnouncementsDeliveryUtil {
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 AnnouncementsDelivery remove(
74 AnnouncementsDelivery announcementsDelivery) throws SystemException {
75 return getPersistence().remove(announcementsDelivery);
76 }
77
78
81 public static AnnouncementsDelivery update(
82 AnnouncementsDelivery announcementsDelivery, boolean merge)
83 throws SystemException {
84 return getPersistence().update(announcementsDelivery, merge);
85 }
86
87 public static void cacheResult(
88 com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery) {
89 getPersistence().cacheResult(announcementsDelivery);
90 }
91
92 public static void cacheResult(
93 java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDeliveries) {
94 getPersistence().cacheResult(announcementsDeliveries);
95 }
96
97 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery create(
98 long deliveryId) {
99 return getPersistence().create(deliveryId);
100 }
101
102 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery remove(
103 long deliveryId)
104 throws com.liferay.portal.SystemException,
105 com.liferay.portlet.announcements.NoSuchDeliveryException {
106 return getPersistence().remove(deliveryId);
107 }
108
109
112 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery update(
113 com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery)
114 throws com.liferay.portal.SystemException {
115 return getPersistence().update(announcementsDelivery);
116 }
117
118 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery updateImpl(
119 com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery,
120 boolean merge) throws com.liferay.portal.SystemException {
121 return getPersistence().updateImpl(announcementsDelivery, merge);
122 }
123
124 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery findByPrimaryKey(
125 long deliveryId)
126 throws com.liferay.portal.SystemException,
127 com.liferay.portlet.announcements.NoSuchDeliveryException {
128 return getPersistence().findByPrimaryKey(deliveryId);
129 }
130
131 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery fetchByPrimaryKey(
132 long deliveryId) throws com.liferay.portal.SystemException {
133 return getPersistence().fetchByPrimaryKey(deliveryId);
134 }
135
136 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findByUserId(
137 long userId) throws com.liferay.portal.SystemException {
138 return getPersistence().findByUserId(userId);
139 }
140
141 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findByUserId(
142 long userId, int start, int end)
143 throws com.liferay.portal.SystemException {
144 return getPersistence().findByUserId(userId, start, end);
145 }
146
147 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findByUserId(
148 long userId, int start, int end,
149 com.liferay.portal.kernel.util.OrderByComparator obc)
150 throws com.liferay.portal.SystemException {
151 return getPersistence().findByUserId(userId, start, end, obc);
152 }
153
154 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery findByUserId_First(
155 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
156 throws com.liferay.portal.SystemException,
157 com.liferay.portlet.announcements.NoSuchDeliveryException {
158 return getPersistence().findByUserId_First(userId, obc);
159 }
160
161 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery findByUserId_Last(
162 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
163 throws com.liferay.portal.SystemException,
164 com.liferay.portlet.announcements.NoSuchDeliveryException {
165 return getPersistence().findByUserId_Last(userId, obc);
166 }
167
168 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery[] findByUserId_PrevAndNext(
169 long deliveryId, long userId,
170 com.liferay.portal.kernel.util.OrderByComparator obc)
171 throws com.liferay.portal.SystemException,
172 com.liferay.portlet.announcements.NoSuchDeliveryException {
173 return getPersistence().findByUserId_PrevAndNext(deliveryId, userId, obc);
174 }
175
176 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery findByU_T(
177 long userId, java.lang.String type)
178 throws com.liferay.portal.SystemException,
179 com.liferay.portlet.announcements.NoSuchDeliveryException {
180 return getPersistence().findByU_T(userId, type);
181 }
182
183 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery fetchByU_T(
184 long userId, java.lang.String type)
185 throws com.liferay.portal.SystemException {
186 return getPersistence().fetchByU_T(userId, type);
187 }
188
189 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery fetchByU_T(
190 long userId, java.lang.String type, boolean retrieveFromCache)
191 throws com.liferay.portal.SystemException {
192 return getPersistence().fetchByU_T(userId, type, retrieveFromCache);
193 }
194
195 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findAll()
196 throws com.liferay.portal.SystemException {
197 return getPersistence().findAll();
198 }
199
200 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findAll(
201 int start, int end) throws com.liferay.portal.SystemException {
202 return getPersistence().findAll(start, end);
203 }
204
205 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findAll(
206 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
207 throws com.liferay.portal.SystemException {
208 return getPersistence().findAll(start, end, obc);
209 }
210
211 public static void removeByUserId(long userId)
212 throws com.liferay.portal.SystemException {
213 getPersistence().removeByUserId(userId);
214 }
215
216 public static void removeByU_T(long userId, java.lang.String type)
217 throws com.liferay.portal.SystemException,
218 com.liferay.portlet.announcements.NoSuchDeliveryException {
219 getPersistence().removeByU_T(userId, type);
220 }
221
222 public static void removeAll() throws com.liferay.portal.SystemException {
223 getPersistence().removeAll();
224 }
225
226 public static int countByUserId(long userId)
227 throws com.liferay.portal.SystemException {
228 return getPersistence().countByUserId(userId);
229 }
230
231 public static int countByU_T(long userId, java.lang.String type)
232 throws com.liferay.portal.SystemException {
233 return getPersistence().countByU_T(userId, type);
234 }
235
236 public static int countAll() throws com.liferay.portal.SystemException {
237 return getPersistence().countAll();
238 }
239
240 public static AnnouncementsDeliveryPersistence getPersistence() {
241 if (_persistence == null) {
242 _persistence = (AnnouncementsDeliveryPersistence)PortalBeanLocatorUtil.locate(AnnouncementsDeliveryPersistence.class.getName());
243 }
244
245 return _persistence;
246 }
247
248 public void setPersistence(AnnouncementsDeliveryPersistence persistence) {
249 _persistence = persistence;
250 }
251
252 private static AnnouncementsDeliveryPersistence _persistence;
253 }