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