1
19
20 package com.liferay.portlet.announcements.service.persistence;
21
22
28 public class AnnouncementsDeliveryUtil {
29 public static void cacheResult(
30 com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery) {
31 getPersistence().cacheResult(announcementsDelivery);
32 }
33
34 public static void cacheResult(
35 java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDeliveries) {
36 getPersistence().cacheResult(announcementsDeliveries);
37 }
38
39 public static void clearCache() {
40 getPersistence().clearCache();
41 }
42
43 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery create(
44 long deliveryId) {
45 return getPersistence().create(deliveryId);
46 }
47
48 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery remove(
49 long deliveryId)
50 throws com.liferay.portal.SystemException,
51 com.liferay.portlet.announcements.NoSuchDeliveryException {
52 return getPersistence().remove(deliveryId);
53 }
54
55 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery remove(
56 com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery)
57 throws com.liferay.portal.SystemException {
58 return getPersistence().remove(announcementsDelivery);
59 }
60
61
64 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery update(
65 com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery)
66 throws com.liferay.portal.SystemException {
67 return getPersistence().update(announcementsDelivery);
68 }
69
70
83 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery update(
84 com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery,
85 boolean merge) throws com.liferay.portal.SystemException {
86 return getPersistence().update(announcementsDelivery, merge);
87 }
88
89 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery updateImpl(
90 com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery,
91 boolean merge) throws com.liferay.portal.SystemException {
92 return getPersistence().updateImpl(announcementsDelivery, merge);
93 }
94
95 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery findByPrimaryKey(
96 long deliveryId)
97 throws com.liferay.portal.SystemException,
98 com.liferay.portlet.announcements.NoSuchDeliveryException {
99 return getPersistence().findByPrimaryKey(deliveryId);
100 }
101
102 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery fetchByPrimaryKey(
103 long deliveryId) throws com.liferay.portal.SystemException {
104 return getPersistence().fetchByPrimaryKey(deliveryId);
105 }
106
107 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findByUserId(
108 long userId) throws com.liferay.portal.SystemException {
109 return getPersistence().findByUserId(userId);
110 }
111
112 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findByUserId(
113 long userId, int start, int end)
114 throws com.liferay.portal.SystemException {
115 return getPersistence().findByUserId(userId, start, end);
116 }
117
118 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findByUserId(
119 long userId, int start, int end,
120 com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.SystemException {
122 return getPersistence().findByUserId(userId, start, end, obc);
123 }
124
125 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery findByUserId_First(
126 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
127 throws com.liferay.portal.SystemException,
128 com.liferay.portlet.announcements.NoSuchDeliveryException {
129 return getPersistence().findByUserId_First(userId, obc);
130 }
131
132 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery findByUserId_Last(
133 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
134 throws com.liferay.portal.SystemException,
135 com.liferay.portlet.announcements.NoSuchDeliveryException {
136 return getPersistence().findByUserId_Last(userId, obc);
137 }
138
139 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery[] findByUserId_PrevAndNext(
140 long deliveryId, long userId,
141 com.liferay.portal.kernel.util.OrderByComparator obc)
142 throws com.liferay.portal.SystemException,
143 com.liferay.portlet.announcements.NoSuchDeliveryException {
144 return getPersistence().findByUserId_PrevAndNext(deliveryId, userId, obc);
145 }
146
147 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery findByU_T(
148 long userId, java.lang.String type)
149 throws com.liferay.portal.SystemException,
150 com.liferay.portlet.announcements.NoSuchDeliveryException {
151 return getPersistence().findByU_T(userId, type);
152 }
153
154 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery fetchByU_T(
155 long userId, java.lang.String type)
156 throws com.liferay.portal.SystemException {
157 return getPersistence().fetchByU_T(userId, type);
158 }
159
160 public static com.liferay.portlet.announcements.model.AnnouncementsDelivery fetchByU_T(
161 long userId, java.lang.String type, boolean retrieveFromCache)
162 throws com.liferay.portal.SystemException {
163 return getPersistence().fetchByU_T(userId, type, retrieveFromCache);
164 }
165
166 public static java.util.List<Object> findWithDynamicQuery(
167 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
168 throws com.liferay.portal.SystemException {
169 return getPersistence().findWithDynamicQuery(dynamicQuery);
170 }
171
172 public static java.util.List<Object> findWithDynamicQuery(
173 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
174 int end) throws com.liferay.portal.SystemException {
175 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
176 }
177
178 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findAll()
179 throws com.liferay.portal.SystemException {
180 return getPersistence().findAll();
181 }
182
183 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findAll(
184 int start, int end) throws com.liferay.portal.SystemException {
185 return getPersistence().findAll(start, end);
186 }
187
188 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> findAll(
189 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
190 throws com.liferay.portal.SystemException {
191 return getPersistence().findAll(start, end, obc);
192 }
193
194 public static void removeByUserId(long userId)
195 throws com.liferay.portal.SystemException {
196 getPersistence().removeByUserId(userId);
197 }
198
199 public static void removeByU_T(long userId, java.lang.String type)
200 throws com.liferay.portal.SystemException,
201 com.liferay.portlet.announcements.NoSuchDeliveryException {
202 getPersistence().removeByU_T(userId, type);
203 }
204
205 public static void removeAll() throws com.liferay.portal.SystemException {
206 getPersistence().removeAll();
207 }
208
209 public static int countByUserId(long userId)
210 throws com.liferay.portal.SystemException {
211 return getPersistence().countByUserId(userId);
212 }
213
214 public static int countByU_T(long userId, java.lang.String type)
215 throws com.liferay.portal.SystemException {
216 return getPersistence().countByU_T(userId, type);
217 }
218
219 public static int countAll() throws com.liferay.portal.SystemException {
220 return getPersistence().countAll();
221 }
222
223 public static AnnouncementsDeliveryPersistence getPersistence() {
224 return _persistence;
225 }
226
227 public void setPersistence(AnnouncementsDeliveryPersistence persistence) {
228 _persistence = persistence;
229 }
230
231 private static AnnouncementsDeliveryPersistence _persistence;
232 }