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 List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50 throws SystemException {
51 return getPersistence().findWithDynamicQuery(dynamicQuery);
52 }
53
54
57 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58 int start, int end) throws SystemException {
59 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60 }
61
62
65 public static AnnouncementsFlag remove(AnnouncementsFlag announcementsFlag)
66 throws SystemException {
67 return getPersistence().remove(announcementsFlag);
68 }
69
70
73 public static AnnouncementsFlag update(
74 AnnouncementsFlag announcementsFlag, boolean merge)
75 throws SystemException {
76 return getPersistence().update(announcementsFlag, merge);
77 }
78
79 public static void cacheResult(
80 com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag) {
81 getPersistence().cacheResult(announcementsFlag);
82 }
83
84 public static void cacheResult(
85 java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> announcementsFlags) {
86 getPersistence().cacheResult(announcementsFlags);
87 }
88
89 public static com.liferay.portlet.announcements.model.AnnouncementsFlag create(
90 long flagId) {
91 return getPersistence().create(flagId);
92 }
93
94 public static com.liferay.portlet.announcements.model.AnnouncementsFlag remove(
95 long flagId)
96 throws com.liferay.portal.kernel.exception.SystemException,
97 com.liferay.portlet.announcements.NoSuchFlagException {
98 return getPersistence().remove(flagId);
99 }
100
101 public static com.liferay.portlet.announcements.model.AnnouncementsFlag updateImpl(
102 com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag,
103 boolean merge)
104 throws com.liferay.portal.kernel.exception.SystemException {
105 return getPersistence().updateImpl(announcementsFlag, merge);
106 }
107
108 public static com.liferay.portlet.announcements.model.AnnouncementsFlag findByPrimaryKey(
109 long flagId)
110 throws com.liferay.portal.kernel.exception.SystemException,
111 com.liferay.portlet.announcements.NoSuchFlagException {
112 return getPersistence().findByPrimaryKey(flagId);
113 }
114
115 public static com.liferay.portlet.announcements.model.AnnouncementsFlag fetchByPrimaryKey(
116 long flagId) throws com.liferay.portal.kernel.exception.SystemException {
117 return getPersistence().fetchByPrimaryKey(flagId);
118 }
119
120 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findByEntryId(
121 long entryId)
122 throws com.liferay.portal.kernel.exception.SystemException {
123 return getPersistence().findByEntryId(entryId);
124 }
125
126 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findByEntryId(
127 long entryId, int start, int end)
128 throws com.liferay.portal.kernel.exception.SystemException {
129 return getPersistence().findByEntryId(entryId, start, end);
130 }
131
132 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findByEntryId(
133 long entryId, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getPersistence()
137 .findByEntryId(entryId, start, end, orderByComparator);
138 }
139
140 public static com.liferay.portlet.announcements.model.AnnouncementsFlag findByEntryId_First(
141 long entryId,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.kernel.exception.SystemException,
144 com.liferay.portlet.announcements.NoSuchFlagException {
145 return getPersistence().findByEntryId_First(entryId, orderByComparator);
146 }
147
148 public static com.liferay.portlet.announcements.model.AnnouncementsFlag findByEntryId_Last(
149 long entryId,
150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151 throws com.liferay.portal.kernel.exception.SystemException,
152 com.liferay.portlet.announcements.NoSuchFlagException {
153 return getPersistence().findByEntryId_Last(entryId, orderByComparator);
154 }
155
156 public static com.liferay.portlet.announcements.model.AnnouncementsFlag[] findByEntryId_PrevAndNext(
157 long flagId, 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()
162 .findByEntryId_PrevAndNext(flagId, entryId, orderByComparator);
163 }
164
165 public static com.liferay.portlet.announcements.model.AnnouncementsFlag findByU_E_V(
166 long userId, long entryId, int value)
167 throws com.liferay.portal.kernel.exception.SystemException,
168 com.liferay.portlet.announcements.NoSuchFlagException {
169 return getPersistence().findByU_E_V(userId, entryId, value);
170 }
171
172 public static com.liferay.portlet.announcements.model.AnnouncementsFlag fetchByU_E_V(
173 long userId, long entryId, int value)
174 throws com.liferay.portal.kernel.exception.SystemException {
175 return getPersistence().fetchByU_E_V(userId, entryId, value);
176 }
177
178 public static com.liferay.portlet.announcements.model.AnnouncementsFlag fetchByU_E_V(
179 long userId, long entryId, int value, boolean retrieveFromCache)
180 throws com.liferay.portal.kernel.exception.SystemException {
181 return getPersistence()
182 .fetchByU_E_V(userId, entryId, value, retrieveFromCache);
183 }
184
185 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findAll()
186 throws com.liferay.portal.kernel.exception.SystemException {
187 return getPersistence().findAll();
188 }
189
190 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findAll(
191 int start, int end)
192 throws com.liferay.portal.kernel.exception.SystemException {
193 return getPersistence().findAll(start, end);
194 }
195
196 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findAll(
197 int start, int end,
198 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
199 throws com.liferay.portal.kernel.exception.SystemException {
200 return getPersistence().findAll(start, end, orderByComparator);
201 }
202
203 public static void removeByEntryId(long entryId)
204 throws com.liferay.portal.kernel.exception.SystemException {
205 getPersistence().removeByEntryId(entryId);
206 }
207
208 public static void removeByU_E_V(long userId, long entryId, int value)
209 throws com.liferay.portal.kernel.exception.SystemException,
210 com.liferay.portlet.announcements.NoSuchFlagException {
211 getPersistence().removeByU_E_V(userId, entryId, value);
212 }
213
214 public static void removeAll()
215 throws com.liferay.portal.kernel.exception.SystemException {
216 getPersistence().removeAll();
217 }
218
219 public static int countByEntryId(long entryId)
220 throws com.liferay.portal.kernel.exception.SystemException {
221 return getPersistence().countByEntryId(entryId);
222 }
223
224 public static int countByU_E_V(long userId, long entryId, int value)
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getPersistence().countByU_E_V(userId, entryId, value);
227 }
228
229 public static int countAll()
230 throws com.liferay.portal.kernel.exception.SystemException {
231 return getPersistence().countAll();
232 }
233
234 public static AnnouncementsFlagPersistence getPersistence() {
235 if (_persistence == null) {
236 _persistence = (AnnouncementsFlagPersistence)PortalBeanLocatorUtil.locate(AnnouncementsFlagPersistence.class.getName());
237 }
238
239 return _persistence;
240 }
241
242 public void setPersistence(AnnouncementsFlagPersistence persistence) {
243 _persistence = persistence;
244 }
245
246 private static AnnouncementsFlagPersistence _persistence;
247 }