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 obc)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getPersistence().findByEntryId(entryId, start, end, obc);
137 }
138
139 public static com.liferay.portlet.announcements.model.AnnouncementsFlag findByEntryId_First(
140 long entryId, com.liferay.portal.kernel.util.OrderByComparator obc)
141 throws com.liferay.portal.kernel.exception.SystemException,
142 com.liferay.portlet.announcements.NoSuchFlagException {
143 return getPersistence().findByEntryId_First(entryId, obc);
144 }
145
146 public static com.liferay.portlet.announcements.model.AnnouncementsFlag findByEntryId_Last(
147 long entryId, com.liferay.portal.kernel.util.OrderByComparator obc)
148 throws com.liferay.portal.kernel.exception.SystemException,
149 com.liferay.portlet.announcements.NoSuchFlagException {
150 return getPersistence().findByEntryId_Last(entryId, obc);
151 }
152
153 public static com.liferay.portlet.announcements.model.AnnouncementsFlag[] findByEntryId_PrevAndNext(
154 long flagId, long entryId,
155 com.liferay.portal.kernel.util.OrderByComparator obc)
156 throws com.liferay.portal.kernel.exception.SystemException,
157 com.liferay.portlet.announcements.NoSuchFlagException {
158 return getPersistence().findByEntryId_PrevAndNext(flagId, entryId, obc);
159 }
160
161 public static com.liferay.portlet.announcements.model.AnnouncementsFlag findByU_E_V(
162 long userId, long entryId, int value)
163 throws com.liferay.portal.kernel.exception.SystemException,
164 com.liferay.portlet.announcements.NoSuchFlagException {
165 return getPersistence().findByU_E_V(userId, entryId, value);
166 }
167
168 public static com.liferay.portlet.announcements.model.AnnouncementsFlag fetchByU_E_V(
169 long userId, long entryId, int value)
170 throws com.liferay.portal.kernel.exception.SystemException {
171 return getPersistence().fetchByU_E_V(userId, entryId, value);
172 }
173
174 public static com.liferay.portlet.announcements.model.AnnouncementsFlag fetchByU_E_V(
175 long userId, long entryId, int value, boolean retrieveFromCache)
176 throws com.liferay.portal.kernel.exception.SystemException {
177 return getPersistence()
178 .fetchByU_E_V(userId, entryId, value, retrieveFromCache);
179 }
180
181 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findAll()
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return getPersistence().findAll();
184 }
185
186 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findAll(
187 int start, int end)
188 throws com.liferay.portal.kernel.exception.SystemException {
189 return getPersistence().findAll(start, end);
190 }
191
192 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsFlag> findAll(
193 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
194 throws com.liferay.portal.kernel.exception.SystemException {
195 return getPersistence().findAll(start, end, obc);
196 }
197
198 public static void removeByEntryId(long entryId)
199 throws com.liferay.portal.kernel.exception.SystemException {
200 getPersistence().removeByEntryId(entryId);
201 }
202
203 public static void removeByU_E_V(long userId, long entryId, int value)
204 throws com.liferay.portal.kernel.exception.SystemException,
205 com.liferay.portlet.announcements.NoSuchFlagException {
206 getPersistence().removeByU_E_V(userId, entryId, value);
207 }
208
209 public static void removeAll()
210 throws com.liferay.portal.kernel.exception.SystemException {
211 getPersistence().removeAll();
212 }
213
214 public static int countByEntryId(long entryId)
215 throws com.liferay.portal.kernel.exception.SystemException {
216 return getPersistence().countByEntryId(entryId);
217 }
218
219 public static int countByU_E_V(long userId, long entryId, int value)
220 throws com.liferay.portal.kernel.exception.SystemException {
221 return getPersistence().countByU_E_V(userId, entryId, value);
222 }
223
224 public static int countAll()
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getPersistence().countAll();
227 }
228
229 public static AnnouncementsFlagPersistence getPersistence() {
230 if (_persistence == null) {
231 _persistence = (AnnouncementsFlagPersistence)PortalBeanLocatorUtil.locate(AnnouncementsFlagPersistence.class.getName());
232 }
233
234 return _persistence;
235 }
236
237 public void setPersistence(AnnouncementsFlagPersistence persistence) {
238 _persistence = persistence;
239 }
240
241 private static AnnouncementsFlagPersistence _persistence;
242 }