001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.journal.service.persistence;
022:
023: /**
024: * <a href="JournalStructureUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class JournalStructureUtil {
030: public static com.liferay.portlet.journal.model.JournalStructure create(
031: long id) {
032: return getPersistence().create(id);
033: }
034:
035: public static com.liferay.portlet.journal.model.JournalStructure remove(
036: long id) throws com.liferay.portal.SystemException,
037: com.liferay.portlet.journal.NoSuchStructureException {
038: return getPersistence().remove(id);
039: }
040:
041: public static com.liferay.portlet.journal.model.JournalStructure remove(
042: com.liferay.portlet.journal.model.JournalStructure journalStructure)
043: throws com.liferay.portal.SystemException {
044: return getPersistence().remove(journalStructure);
045: }
046:
047: public static com.liferay.portlet.journal.model.JournalStructure update(
048: com.liferay.portlet.journal.model.JournalStructure journalStructure)
049: throws com.liferay.portal.SystemException {
050: return getPersistence().update(journalStructure);
051: }
052:
053: public static com.liferay.portlet.journal.model.JournalStructure update(
054: com.liferay.portlet.journal.model.JournalStructure journalStructure,
055: boolean merge) throws com.liferay.portal.SystemException {
056: return getPersistence().update(journalStructure, merge);
057: }
058:
059: public static com.liferay.portlet.journal.model.JournalStructure updateImpl(
060: com.liferay.portlet.journal.model.JournalStructure journalStructure,
061: boolean merge) throws com.liferay.portal.SystemException {
062: return getPersistence().updateImpl(journalStructure, merge);
063: }
064:
065: public static com.liferay.portlet.journal.model.JournalStructure findByPrimaryKey(
066: long id) throws com.liferay.portal.SystemException,
067: com.liferay.portlet.journal.NoSuchStructureException {
068: return getPersistence().findByPrimaryKey(id);
069: }
070:
071: public static com.liferay.portlet.journal.model.JournalStructure fetchByPrimaryKey(
072: long id) throws com.liferay.portal.SystemException {
073: return getPersistence().fetchByPrimaryKey(id);
074: }
075:
076: public static java.util.List findByUuid(java.lang.String uuid)
077: throws com.liferay.portal.SystemException {
078: return getPersistence().findByUuid(uuid);
079: }
080:
081: public static java.util.List findByUuid(java.lang.String uuid,
082: int begin, int end)
083: throws com.liferay.portal.SystemException {
084: return getPersistence().findByUuid(uuid, begin, end);
085: }
086:
087: public static java.util.List findByUuid(java.lang.String uuid,
088: int begin, int end,
089: com.liferay.portal.kernel.util.OrderByComparator obc)
090: throws com.liferay.portal.SystemException {
091: return getPersistence().findByUuid(uuid, begin, end, obc);
092: }
093:
094: public static com.liferay.portlet.journal.model.JournalStructure findByUuid_First(
095: java.lang.String uuid,
096: com.liferay.portal.kernel.util.OrderByComparator obc)
097: throws com.liferay.portal.SystemException,
098: com.liferay.portlet.journal.NoSuchStructureException {
099: return getPersistence().findByUuid_First(uuid, obc);
100: }
101:
102: public static com.liferay.portlet.journal.model.JournalStructure findByUuid_Last(
103: java.lang.String uuid,
104: com.liferay.portal.kernel.util.OrderByComparator obc)
105: throws com.liferay.portal.SystemException,
106: com.liferay.portlet.journal.NoSuchStructureException {
107: return getPersistence().findByUuid_Last(uuid, obc);
108: }
109:
110: public static com.liferay.portlet.journal.model.JournalStructure[] findByUuid_PrevAndNext(
111: long id, java.lang.String uuid,
112: com.liferay.portal.kernel.util.OrderByComparator obc)
113: throws com.liferay.portal.SystemException,
114: com.liferay.portlet.journal.NoSuchStructureException {
115: return getPersistence().findByUuid_PrevAndNext(id, uuid, obc);
116: }
117:
118: public static com.liferay.portlet.journal.model.JournalStructure findByUUID_G(
119: java.lang.String uuid, long groupId)
120: throws com.liferay.portal.SystemException,
121: com.liferay.portlet.journal.NoSuchStructureException {
122: return getPersistence().findByUUID_G(uuid, groupId);
123: }
124:
125: public static com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
126: java.lang.String uuid, long groupId)
127: throws com.liferay.portal.SystemException {
128: return getPersistence().fetchByUUID_G(uuid, groupId);
129: }
130:
131: public static java.util.List findByGroupId(long groupId)
132: throws com.liferay.portal.SystemException {
133: return getPersistence().findByGroupId(groupId);
134: }
135:
136: public static java.util.List findByGroupId(long groupId, int begin,
137: int end) throws com.liferay.portal.SystemException {
138: return getPersistence().findByGroupId(groupId, begin, end);
139: }
140:
141: public static java.util.List findByGroupId(long groupId, int begin,
142: int end,
143: com.liferay.portal.kernel.util.OrderByComparator obc)
144: throws com.liferay.portal.SystemException {
145: return getPersistence().findByGroupId(groupId, begin, end, obc);
146: }
147:
148: public static com.liferay.portlet.journal.model.JournalStructure findByGroupId_First(
149: long groupId,
150: com.liferay.portal.kernel.util.OrderByComparator obc)
151: throws com.liferay.portal.SystemException,
152: com.liferay.portlet.journal.NoSuchStructureException {
153: return getPersistence().findByGroupId_First(groupId, obc);
154: }
155:
156: public static com.liferay.portlet.journal.model.JournalStructure findByGroupId_Last(
157: long groupId,
158: com.liferay.portal.kernel.util.OrderByComparator obc)
159: throws com.liferay.portal.SystemException,
160: com.liferay.portlet.journal.NoSuchStructureException {
161: return getPersistence().findByGroupId_Last(groupId, obc);
162: }
163:
164: public static com.liferay.portlet.journal.model.JournalStructure[] findByGroupId_PrevAndNext(
165: long id, long groupId,
166: com.liferay.portal.kernel.util.OrderByComparator obc)
167: throws com.liferay.portal.SystemException,
168: com.liferay.portlet.journal.NoSuchStructureException {
169: return getPersistence().findByGroupId_PrevAndNext(id, groupId,
170: obc);
171: }
172:
173: public static java.util.List findByStructureId(
174: java.lang.String structureId)
175: throws com.liferay.portal.SystemException {
176: return getPersistence().findByStructureId(structureId);
177: }
178:
179: public static java.util.List findByStructureId(
180: java.lang.String structureId, int begin, int end)
181: throws com.liferay.portal.SystemException {
182: return getPersistence().findByStructureId(structureId, begin,
183: end);
184: }
185:
186: public static java.util.List findByStructureId(
187: java.lang.String structureId, int begin, int end,
188: com.liferay.portal.kernel.util.OrderByComparator obc)
189: throws com.liferay.portal.SystemException {
190: return getPersistence().findByStructureId(structureId, begin,
191: end, obc);
192: }
193:
194: public static com.liferay.portlet.journal.model.JournalStructure findByStructureId_First(
195: java.lang.String structureId,
196: com.liferay.portal.kernel.util.OrderByComparator obc)
197: throws com.liferay.portal.SystemException,
198: com.liferay.portlet.journal.NoSuchStructureException {
199: return getPersistence().findByStructureId_First(structureId,
200: obc);
201: }
202:
203: public static com.liferay.portlet.journal.model.JournalStructure findByStructureId_Last(
204: java.lang.String structureId,
205: com.liferay.portal.kernel.util.OrderByComparator obc)
206: throws com.liferay.portal.SystemException,
207: com.liferay.portlet.journal.NoSuchStructureException {
208: return getPersistence()
209: .findByStructureId_Last(structureId, obc);
210: }
211:
212: public static com.liferay.portlet.journal.model.JournalStructure[] findByStructureId_PrevAndNext(
213: long id, java.lang.String structureId,
214: com.liferay.portal.kernel.util.OrderByComparator obc)
215: throws com.liferay.portal.SystemException,
216: com.liferay.portlet.journal.NoSuchStructureException {
217: return getPersistence().findByStructureId_PrevAndNext(id,
218: structureId, obc);
219: }
220:
221: public static com.liferay.portlet.journal.model.JournalStructure findByG_S(
222: long groupId, java.lang.String structureId)
223: throws com.liferay.portal.SystemException,
224: com.liferay.portlet.journal.NoSuchStructureException {
225: return getPersistence().findByG_S(groupId, structureId);
226: }
227:
228: public static com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
229: long groupId, java.lang.String structureId)
230: throws com.liferay.portal.SystemException {
231: return getPersistence().fetchByG_S(groupId, structureId);
232: }
233:
234: public static java.util.List findWithDynamicQuery(
235: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
236: throws com.liferay.portal.SystemException {
237: return getPersistence().findWithDynamicQuery(queryInitializer);
238: }
239:
240: public static java.util.List findWithDynamicQuery(
241: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
242: int begin, int end)
243: throws com.liferay.portal.SystemException {
244: return getPersistence().findWithDynamicQuery(queryInitializer,
245: begin, end);
246: }
247:
248: public static java.util.List findAll()
249: throws com.liferay.portal.SystemException {
250: return getPersistence().findAll();
251: }
252:
253: public static java.util.List findAll(int begin, int end)
254: throws com.liferay.portal.SystemException {
255: return getPersistence().findAll(begin, end);
256: }
257:
258: public static java.util.List findAll(int begin, int end,
259: com.liferay.portal.kernel.util.OrderByComparator obc)
260: throws com.liferay.portal.SystemException {
261: return getPersistence().findAll(begin, end, obc);
262: }
263:
264: public static void removeByUuid(java.lang.String uuid)
265: throws com.liferay.portal.SystemException {
266: getPersistence().removeByUuid(uuid);
267: }
268:
269: public static void removeByUUID_G(java.lang.String uuid,
270: long groupId) throws com.liferay.portal.SystemException,
271: com.liferay.portlet.journal.NoSuchStructureException {
272: getPersistence().removeByUUID_G(uuid, groupId);
273: }
274:
275: public static void removeByGroupId(long groupId)
276: throws com.liferay.portal.SystemException {
277: getPersistence().removeByGroupId(groupId);
278: }
279:
280: public static void removeByStructureId(java.lang.String structureId)
281: throws com.liferay.portal.SystemException {
282: getPersistence().removeByStructureId(structureId);
283: }
284:
285: public static void removeByG_S(long groupId,
286: java.lang.String structureId)
287: throws com.liferay.portal.SystemException,
288: com.liferay.portlet.journal.NoSuchStructureException {
289: getPersistence().removeByG_S(groupId, structureId);
290: }
291:
292: public static void removeAll()
293: throws com.liferay.portal.SystemException {
294: getPersistence().removeAll();
295: }
296:
297: public static int countByUuid(java.lang.String uuid)
298: throws com.liferay.portal.SystemException {
299: return getPersistence().countByUuid(uuid);
300: }
301:
302: public static int countByUUID_G(java.lang.String uuid, long groupId)
303: throws com.liferay.portal.SystemException {
304: return getPersistence().countByUUID_G(uuid, groupId);
305: }
306:
307: public static int countByGroupId(long groupId)
308: throws com.liferay.portal.SystemException {
309: return getPersistence().countByGroupId(groupId);
310: }
311:
312: public static int countByStructureId(java.lang.String structureId)
313: throws com.liferay.portal.SystemException {
314: return getPersistence().countByStructureId(structureId);
315: }
316:
317: public static int countByG_S(long groupId,
318: java.lang.String structureId)
319: throws com.liferay.portal.SystemException {
320: return getPersistence().countByG_S(groupId, structureId);
321: }
322:
323: public static int countAll()
324: throws com.liferay.portal.SystemException {
325: return getPersistence().countAll();
326: }
327:
328: public static JournalStructurePersistence getPersistence() {
329: return _getUtil()._persistence;
330: }
331:
332: public void setPersistence(JournalStructurePersistence persistence) {
333: _persistence = persistence;
334: }
335:
336: private static JournalStructureUtil _getUtil() {
337: if (_util == null) {
338: _util = (JournalStructureUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
339: .locate(_UTIL);
340: }
341:
342: return _util;
343: }
344:
345: private static final String _UTIL = JournalStructureUtil.class
346: .getName();
347: private static JournalStructureUtil _util;
348: private JournalStructurePersistence _persistence;
349: }
|