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.documentlibrary.service.persistence;
022:
023: /**
024: * <a href="DLFileShortcutUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class DLFileShortcutUtil {
030: public static com.liferay.portlet.documentlibrary.model.DLFileShortcut create(
031: long fileShortcutId) {
032: return getPersistence().create(fileShortcutId);
033: }
034:
035: public static com.liferay.portlet.documentlibrary.model.DLFileShortcut remove(
036: long fileShortcutId)
037: throws com.liferay.portal.SystemException,
038: com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
039: return getPersistence().remove(fileShortcutId);
040: }
041:
042: public static com.liferay.portlet.documentlibrary.model.DLFileShortcut remove(
043: com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
044: throws com.liferay.portal.SystemException {
045: return getPersistence().remove(dlFileShortcut);
046: }
047:
048: public static com.liferay.portlet.documentlibrary.model.DLFileShortcut update(
049: com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
050: throws com.liferay.portal.SystemException {
051: return getPersistence().update(dlFileShortcut);
052: }
053:
054: public static com.liferay.portlet.documentlibrary.model.DLFileShortcut update(
055: com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
056: boolean merge) throws com.liferay.portal.SystemException {
057: return getPersistence().update(dlFileShortcut, merge);
058: }
059:
060: public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateImpl(
061: com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
062: boolean merge) throws com.liferay.portal.SystemException {
063: return getPersistence().updateImpl(dlFileShortcut, merge);
064: }
065:
066: public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByPrimaryKey(
067: long fileShortcutId)
068: throws com.liferay.portal.SystemException,
069: com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
070: return getPersistence().findByPrimaryKey(fileShortcutId);
071: }
072:
073: public static com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByPrimaryKey(
074: long fileShortcutId)
075: throws com.liferay.portal.SystemException {
076: return getPersistence().fetchByPrimaryKey(fileShortcutId);
077: }
078:
079: public static java.util.List findByUuid(java.lang.String uuid)
080: throws com.liferay.portal.SystemException {
081: return getPersistence().findByUuid(uuid);
082: }
083:
084: public static java.util.List findByUuid(java.lang.String uuid,
085: int begin, int end)
086: throws com.liferay.portal.SystemException {
087: return getPersistence().findByUuid(uuid, begin, end);
088: }
089:
090: public static java.util.List findByUuid(java.lang.String uuid,
091: int begin, int end,
092: com.liferay.portal.kernel.util.OrderByComparator obc)
093: throws com.liferay.portal.SystemException {
094: return getPersistence().findByUuid(uuid, begin, end, obc);
095: }
096:
097: public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUuid_First(
098: java.lang.String uuid,
099: com.liferay.portal.kernel.util.OrderByComparator obc)
100: throws com.liferay.portal.SystemException,
101: com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
102: return getPersistence().findByUuid_First(uuid, obc);
103: }
104:
105: public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUuid_Last(
106: java.lang.String uuid,
107: com.liferay.portal.kernel.util.OrderByComparator obc)
108: throws com.liferay.portal.SystemException,
109: com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
110: return getPersistence().findByUuid_Last(uuid, obc);
111: }
112:
113: public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByUuid_PrevAndNext(
114: long fileShortcutId, java.lang.String uuid,
115: com.liferay.portal.kernel.util.OrderByComparator obc)
116: throws com.liferay.portal.SystemException,
117: com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
118: return getPersistence().findByUuid_PrevAndNext(fileShortcutId,
119: uuid, obc);
120: }
121:
122: public static java.util.List findByFolderId(long folderId)
123: throws com.liferay.portal.SystemException {
124: return getPersistence().findByFolderId(folderId);
125: }
126:
127: public static java.util.List findByFolderId(long folderId,
128: int begin, int end)
129: throws com.liferay.portal.SystemException {
130: return getPersistence().findByFolderId(folderId, begin, end);
131: }
132:
133: public static java.util.List findByFolderId(long folderId,
134: int begin, int end,
135: com.liferay.portal.kernel.util.OrderByComparator obc)
136: throws com.liferay.portal.SystemException {
137: return getPersistence().findByFolderId(folderId, begin, end,
138: obc);
139: }
140:
141: public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByFolderId_First(
142: long folderId,
143: com.liferay.portal.kernel.util.OrderByComparator obc)
144: throws com.liferay.portal.SystemException,
145: com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
146: return getPersistence().findByFolderId_First(folderId, obc);
147: }
148:
149: public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByFolderId_Last(
150: long folderId,
151: com.liferay.portal.kernel.util.OrderByComparator obc)
152: throws com.liferay.portal.SystemException,
153: com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
154: return getPersistence().findByFolderId_Last(folderId, obc);
155: }
156:
157: public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByFolderId_PrevAndNext(
158: long fileShortcutId, long folderId,
159: com.liferay.portal.kernel.util.OrderByComparator obc)
160: throws com.liferay.portal.SystemException,
161: com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
162: return getPersistence().findByFolderId_PrevAndNext(
163: fileShortcutId, folderId, obc);
164: }
165:
166: public static java.util.List findByTF_TN(long toFolderId,
167: java.lang.String toName)
168: throws com.liferay.portal.SystemException {
169: return getPersistence().findByTF_TN(toFolderId, toName);
170: }
171:
172: public static java.util.List findByTF_TN(long toFolderId,
173: java.lang.String toName, int begin, int end)
174: throws com.liferay.portal.SystemException {
175: return getPersistence().findByTF_TN(toFolderId, toName, begin,
176: end);
177: }
178:
179: public static java.util.List findByTF_TN(long toFolderId,
180: java.lang.String toName, int begin, int end,
181: com.liferay.portal.kernel.util.OrderByComparator obc)
182: throws com.liferay.portal.SystemException {
183: return getPersistence().findByTF_TN(toFolderId, toName, begin,
184: end, obc);
185: }
186:
187: public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByTF_TN_First(
188: long toFolderId, java.lang.String toName,
189: com.liferay.portal.kernel.util.OrderByComparator obc)
190: throws com.liferay.portal.SystemException,
191: com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
192: return getPersistence().findByTF_TN_First(toFolderId, toName,
193: obc);
194: }
195:
196: public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByTF_TN_Last(
197: long toFolderId, java.lang.String toName,
198: com.liferay.portal.kernel.util.OrderByComparator obc)
199: throws com.liferay.portal.SystemException,
200: com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
201: return getPersistence().findByTF_TN_Last(toFolderId, toName,
202: obc);
203: }
204:
205: public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByTF_TN_PrevAndNext(
206: long fileShortcutId, long toFolderId,
207: java.lang.String toName,
208: com.liferay.portal.kernel.util.OrderByComparator obc)
209: throws com.liferay.portal.SystemException,
210: com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
211: return getPersistence().findByTF_TN_PrevAndNext(fileShortcutId,
212: toFolderId, toName, obc);
213: }
214:
215: public static java.util.List findWithDynamicQuery(
216: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
217: throws com.liferay.portal.SystemException {
218: return getPersistence().findWithDynamicQuery(queryInitializer);
219: }
220:
221: public static java.util.List findWithDynamicQuery(
222: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
223: int begin, int end)
224: throws com.liferay.portal.SystemException {
225: return getPersistence().findWithDynamicQuery(queryInitializer,
226: begin, end);
227: }
228:
229: public static java.util.List findAll()
230: throws com.liferay.portal.SystemException {
231: return getPersistence().findAll();
232: }
233:
234: public static java.util.List findAll(int begin, int end)
235: throws com.liferay.portal.SystemException {
236: return getPersistence().findAll(begin, end);
237: }
238:
239: public static java.util.List findAll(int begin, int end,
240: com.liferay.portal.kernel.util.OrderByComparator obc)
241: throws com.liferay.portal.SystemException {
242: return getPersistence().findAll(begin, end, obc);
243: }
244:
245: public static void removeByUuid(java.lang.String uuid)
246: throws com.liferay.portal.SystemException {
247: getPersistence().removeByUuid(uuid);
248: }
249:
250: public static void removeByFolderId(long folderId)
251: throws com.liferay.portal.SystemException {
252: getPersistence().removeByFolderId(folderId);
253: }
254:
255: public static void removeByTF_TN(long toFolderId,
256: java.lang.String toName)
257: throws com.liferay.portal.SystemException {
258: getPersistence().removeByTF_TN(toFolderId, toName);
259: }
260:
261: public static void removeAll()
262: throws com.liferay.portal.SystemException {
263: getPersistence().removeAll();
264: }
265:
266: public static int countByUuid(java.lang.String uuid)
267: throws com.liferay.portal.SystemException {
268: return getPersistence().countByUuid(uuid);
269: }
270:
271: public static int countByFolderId(long folderId)
272: throws com.liferay.portal.SystemException {
273: return getPersistence().countByFolderId(folderId);
274: }
275:
276: public static int countByTF_TN(long toFolderId,
277: java.lang.String toName)
278: throws com.liferay.portal.SystemException {
279: return getPersistence().countByTF_TN(toFolderId, toName);
280: }
281:
282: public static int countAll()
283: throws com.liferay.portal.SystemException {
284: return getPersistence().countAll();
285: }
286:
287: public static DLFileShortcutPersistence getPersistence() {
288: return _getUtil()._persistence;
289: }
290:
291: public void setPersistence(DLFileShortcutPersistence persistence) {
292: _persistence = persistence;
293: }
294:
295: private static DLFileShortcutUtil _getUtil() {
296: if (_util == null) {
297: _util = (DLFileShortcutUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
298: .locate(_UTIL);
299: }
300:
301: return _util;
302: }
303:
304: private static final String _UTIL = DLFileShortcutUtil.class
305: .getName();
306: private static DLFileShortcutUtil _util;
307: private DLFileShortcutPersistence _persistence;
308: }
|