1
22
23 package com.liferay.portlet.announcements.service.persistence;
24
25
26
39 public class AnnouncementsFlagUtil {
40 public static void cacheResult(
41 com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag) {
42 getPersistence().cacheResult(announcementsFlag);
43 }
44
45 public static void cacheResult(
46 java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> announcementsFlags) {
47 getPersistence().cacheResult(announcementsFlags);
48 }
49
50 public static void clearCache() {
51 getPersistence().clearCache();
52 }
53
54 public static com.liferay.portlet.announcements.model.AnnouncementsFlag create(
55 long flagId) {
56 return getPersistence().create(flagId);
57 }
58
59 public static com.liferay.portlet.announcements.model.AnnouncementsFlag remove(
60 long flagId)
61 throws com.liferay.portal.SystemException,
62 com.liferay.portlet.announcements.NoSuchFlagException {
63 return getPersistence().remove(flagId);
64 }
65
66 public static com.liferay.portlet.announcements.model.AnnouncementsFlag remove(
67 com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag)
68 throws com.liferay.portal.SystemException {
69 return getPersistence().remove(announcementsFlag);
70 }
71
72
75 public static com.liferay.portlet.announcements.model.AnnouncementsFlag update(
76 com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag)
77 throws com.liferay.portal.SystemException {
78 return getPersistence().update(announcementsFlag);
79 }
80
81
93 public static com.liferay.portlet.announcements.model.AnnouncementsFlag update(
94 com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag,
95 boolean merge) throws com.liferay.portal.SystemException {
96 return getPersistence().update(announcementsFlag, merge);
97 }
98
99 public static com.liferay.portlet.announcements.model.AnnouncementsFlag updateImpl(
100 com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag,
101 boolean merge) throws com.liferay.portal.SystemException {
102 return getPersistence().updateImpl(announcementsFlag, merge);
103 }
104
105 public static com.liferay.portlet.announcements.model.AnnouncementsFlag findByPrimaryKey(
106 long flagId)
107 throws com.liferay.portal.SystemException,
108 com.liferay.portlet.announcements.NoSuchFlagException {
109 return getPersistence().findByPrimaryKey(flagId);
110 }
111
112 public static com.liferay.portlet.announcements.model.AnnouncementsFlag fetchByPrimaryKey(
113 long flagId) throws com.liferay.portal.SystemException {
114 return getPersistence().fetchByPrimaryKey(flagId);
115 }
116
117 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findByEntryId(
118 long entryId) throws com.liferay.portal.SystemException {
119 return getPersistence().findByEntryId(entryId);
120 }
121
122 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findByEntryId(
123 long entryId, int start, int end)
124 throws com.liferay.portal.SystemException {
125 return getPersistence().findByEntryId(entryId, start, end);
126 }
127
128 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findByEntryId(
129 long entryId, int start, int end,
130 com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.SystemException {
132 return getPersistence().findByEntryId(entryId, start, end, obc);
133 }
134
135 public static com.liferay.portlet.announcements.model.AnnouncementsFlag findByEntryId_First(
136 long entryId, com.liferay.portal.kernel.util.OrderByComparator obc)
137 throws com.liferay.portal.SystemException,
138 com.liferay.portlet.announcements.NoSuchFlagException {
139 return getPersistence().findByEntryId_First(entryId, obc);
140 }
141
142 public static com.liferay.portlet.announcements.model.AnnouncementsFlag findByEntryId_Last(
143 long entryId, com.liferay.portal.kernel.util.OrderByComparator obc)
144 throws com.liferay.portal.SystemException,
145 com.liferay.portlet.announcements.NoSuchFlagException {
146 return getPersistence().findByEntryId_Last(entryId, obc);
147 }
148
149 public static com.liferay.portlet.announcements.model.AnnouncementsFlag[] findByEntryId_PrevAndNext(
150 long flagId, long entryId,
151 com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.SystemException,
153 com.liferay.portlet.announcements.NoSuchFlagException {
154 return getPersistence().findByEntryId_PrevAndNext(flagId, entryId, obc);
155 }
156
157 public static com.liferay.portlet.announcements.model.AnnouncementsFlag findByU_E_V(
158 long userId, long entryId, int value)
159 throws com.liferay.portal.SystemException,
160 com.liferay.portlet.announcements.NoSuchFlagException {
161 return getPersistence().findByU_E_V(userId, entryId, value);
162 }
163
164 public static com.liferay.portlet.announcements.model.AnnouncementsFlag fetchByU_E_V(
165 long userId, long entryId, int value)
166 throws com.liferay.portal.SystemException {
167 return getPersistence().fetchByU_E_V(userId, entryId, value);
168 }
169
170 public static com.liferay.portlet.announcements.model.AnnouncementsFlag fetchByU_E_V(
171 long userId, long entryId, int value, boolean retrieveFromCache)
172 throws com.liferay.portal.SystemException {
173 return getPersistence()
174 .fetchByU_E_V(userId, entryId, value, retrieveFromCache);
175 }
176
177 public static java.util.List<Object> findWithDynamicQuery(
178 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
179 throws com.liferay.portal.SystemException {
180 return getPersistence().findWithDynamicQuery(dynamicQuery);
181 }
182
183 public static java.util.List<Object> findWithDynamicQuery(
184 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
185 int end) throws com.liferay.portal.SystemException {
186 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
187 }
188
189 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findAll()
190 throws com.liferay.portal.SystemException {
191 return getPersistence().findAll();
192 }
193
194 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findAll(
195 int start, int end) throws com.liferay.portal.SystemException {
196 return getPersistence().findAll(start, end);
197 }
198
199 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findAll(
200 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
201 throws com.liferay.portal.SystemException {
202 return getPersistence().findAll(start, end, obc);
203 }
204
205 public static void removeByEntryId(long entryId)
206 throws com.liferay.portal.SystemException {
207 getPersistence().removeByEntryId(entryId);
208 }
209
210 public static void removeByU_E_V(long userId, long entryId, int value)
211 throws com.liferay.portal.SystemException,
212 com.liferay.portlet.announcements.NoSuchFlagException {
213 getPersistence().removeByU_E_V(userId, entryId, value);
214 }
215
216 public static void removeAll() throws com.liferay.portal.SystemException {
217 getPersistence().removeAll();
218 }
219
220 public static int countByEntryId(long entryId)
221 throws com.liferay.portal.SystemException {
222 return getPersistence().countByEntryId(entryId);
223 }
224
225 public static int countByU_E_V(long userId, long entryId, int value)
226 throws com.liferay.portal.SystemException {
227 return getPersistence().countByU_E_V(userId, entryId, value);
228 }
229
230 public static int countAll() throws com.liferay.portal.SystemException {
231 return getPersistence().countAll();
232 }
233
234 public static AnnouncementsFlagPersistence getPersistence() {
235 return _persistence;
236 }
237
238 public void setPersistence(AnnouncementsFlagPersistence persistence) {
239 _persistence = persistence;
240 }
241
242 private static AnnouncementsFlagPersistence _persistence;
243 }