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