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