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="DLFileRankUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class DLFileRankUtil {
030: public static com.liferay.portlet.documentlibrary.model.DLFileRank create(
031: long fileRankId) {
032: return getPersistence().create(fileRankId);
033: }
034:
035: public static com.liferay.portlet.documentlibrary.model.DLFileRank remove(
036: long fileRankId) throws com.liferay.portal.SystemException,
037: com.liferay.portlet.documentlibrary.NoSuchFileRankException {
038: return getPersistence().remove(fileRankId);
039: }
040:
041: public static com.liferay.portlet.documentlibrary.model.DLFileRank remove(
042: com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank)
043: throws com.liferay.portal.SystemException {
044: return getPersistence().remove(dlFileRank);
045: }
046:
047: public static com.liferay.portlet.documentlibrary.model.DLFileRank update(
048: com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank)
049: throws com.liferay.portal.SystemException {
050: return getPersistence().update(dlFileRank);
051: }
052:
053: public static com.liferay.portlet.documentlibrary.model.DLFileRank update(
054: com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank,
055: boolean merge) throws com.liferay.portal.SystemException {
056: return getPersistence().update(dlFileRank, merge);
057: }
058:
059: public static com.liferay.portlet.documentlibrary.model.DLFileRank updateImpl(
060: com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank,
061: boolean merge) throws com.liferay.portal.SystemException {
062: return getPersistence().updateImpl(dlFileRank, merge);
063: }
064:
065: public static com.liferay.portlet.documentlibrary.model.DLFileRank findByPrimaryKey(
066: long fileRankId) throws com.liferay.portal.SystemException,
067: com.liferay.portlet.documentlibrary.NoSuchFileRankException {
068: return getPersistence().findByPrimaryKey(fileRankId);
069: }
070:
071: public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByPrimaryKey(
072: long fileRankId) throws com.liferay.portal.SystemException {
073: return getPersistence().fetchByPrimaryKey(fileRankId);
074: }
075:
076: public static java.util.List findByUserId(long userId)
077: throws com.liferay.portal.SystemException {
078: return getPersistence().findByUserId(userId);
079: }
080:
081: public static java.util.List findByUserId(long userId, int begin,
082: int end) throws com.liferay.portal.SystemException {
083: return getPersistence().findByUserId(userId, begin, end);
084: }
085:
086: public static java.util.List findByUserId(long userId, int begin,
087: int end,
088: com.liferay.portal.kernel.util.OrderByComparator obc)
089: throws com.liferay.portal.SystemException {
090: return getPersistence().findByUserId(userId, begin, end, obc);
091: }
092:
093: public static com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_First(
094: long userId,
095: com.liferay.portal.kernel.util.OrderByComparator obc)
096: throws com.liferay.portal.SystemException,
097: com.liferay.portlet.documentlibrary.NoSuchFileRankException {
098: return getPersistence().findByUserId_First(userId, obc);
099: }
100:
101: public static com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_Last(
102: long userId,
103: com.liferay.portal.kernel.util.OrderByComparator obc)
104: throws com.liferay.portal.SystemException,
105: com.liferay.portlet.documentlibrary.NoSuchFileRankException {
106: return getPersistence().findByUserId_Last(userId, obc);
107: }
108:
109: public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByUserId_PrevAndNext(
110: long fileRankId, long userId,
111: com.liferay.portal.kernel.util.OrderByComparator obc)
112: throws com.liferay.portal.SystemException,
113: com.liferay.portlet.documentlibrary.NoSuchFileRankException {
114: return getPersistence().findByUserId_PrevAndNext(fileRankId,
115: userId, obc);
116: }
117:
118: public static java.util.List findByF_N(long folderId,
119: java.lang.String name)
120: throws com.liferay.portal.SystemException {
121: return getPersistence().findByF_N(folderId, name);
122: }
123:
124: public static java.util.List findByF_N(long folderId,
125: java.lang.String name, int begin, int end)
126: throws com.liferay.portal.SystemException {
127: return getPersistence().findByF_N(folderId, name, begin, end);
128: }
129:
130: public static java.util.List findByF_N(long folderId,
131: java.lang.String name, int begin, int end,
132: com.liferay.portal.kernel.util.OrderByComparator obc)
133: throws com.liferay.portal.SystemException {
134: return getPersistence().findByF_N(folderId, name, begin, end,
135: obc);
136: }
137:
138: public static com.liferay.portlet.documentlibrary.model.DLFileRank findByF_N_First(
139: long folderId, java.lang.String name,
140: com.liferay.portal.kernel.util.OrderByComparator obc)
141: throws com.liferay.portal.SystemException,
142: com.liferay.portlet.documentlibrary.NoSuchFileRankException {
143: return getPersistence().findByF_N_First(folderId, name, obc);
144: }
145:
146: public static com.liferay.portlet.documentlibrary.model.DLFileRank findByF_N_Last(
147: long folderId, java.lang.String name,
148: com.liferay.portal.kernel.util.OrderByComparator obc)
149: throws com.liferay.portal.SystemException,
150: com.liferay.portlet.documentlibrary.NoSuchFileRankException {
151: return getPersistence().findByF_N_Last(folderId, name, obc);
152: }
153:
154: public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByF_N_PrevAndNext(
155: long fileRankId, long folderId, java.lang.String name,
156: com.liferay.portal.kernel.util.OrderByComparator obc)
157: throws com.liferay.portal.SystemException,
158: com.liferay.portlet.documentlibrary.NoSuchFileRankException {
159: return getPersistence().findByF_N_PrevAndNext(fileRankId,
160: folderId, name, obc);
161: }
162:
163: public static com.liferay.portlet.documentlibrary.model.DLFileRank findByC_U_F_N(
164: long companyId, long userId, long folderId,
165: java.lang.String name)
166: throws com.liferay.portal.SystemException,
167: com.liferay.portlet.documentlibrary.NoSuchFileRankException {
168: return getPersistence().findByC_U_F_N(companyId, userId,
169: folderId, name);
170: }
171:
172: public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F_N(
173: long companyId, long userId, long folderId,
174: java.lang.String name)
175: throws com.liferay.portal.SystemException {
176: return getPersistence().fetchByC_U_F_N(companyId, userId,
177: folderId, name);
178: }
179:
180: public static java.util.List findWithDynamicQuery(
181: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
182: throws com.liferay.portal.SystemException {
183: return getPersistence().findWithDynamicQuery(queryInitializer);
184: }
185:
186: public static java.util.List findWithDynamicQuery(
187: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
188: int begin, int end)
189: throws com.liferay.portal.SystemException {
190: return getPersistence().findWithDynamicQuery(queryInitializer,
191: begin, end);
192: }
193:
194: public static java.util.List findAll()
195: throws com.liferay.portal.SystemException {
196: return getPersistence().findAll();
197: }
198:
199: public static java.util.List findAll(int begin, int end)
200: throws com.liferay.portal.SystemException {
201: return getPersistence().findAll(begin, end);
202: }
203:
204: public static java.util.List findAll(int begin, int end,
205: com.liferay.portal.kernel.util.OrderByComparator obc)
206: throws com.liferay.portal.SystemException {
207: return getPersistence().findAll(begin, end, obc);
208: }
209:
210: public static void removeByUserId(long userId)
211: throws com.liferay.portal.SystemException {
212: getPersistence().removeByUserId(userId);
213: }
214:
215: public static void removeByF_N(long folderId, java.lang.String name)
216: throws com.liferay.portal.SystemException {
217: getPersistence().removeByF_N(folderId, name);
218: }
219:
220: public static void removeByC_U_F_N(long companyId, long userId,
221: long folderId, java.lang.String name)
222: throws com.liferay.portal.SystemException,
223: com.liferay.portlet.documentlibrary.NoSuchFileRankException {
224: getPersistence().removeByC_U_F_N(companyId, userId, folderId,
225: name);
226: }
227:
228: public static void removeAll()
229: throws com.liferay.portal.SystemException {
230: getPersistence().removeAll();
231: }
232:
233: public static int countByUserId(long userId)
234: throws com.liferay.portal.SystemException {
235: return getPersistence().countByUserId(userId);
236: }
237:
238: public static int countByF_N(long folderId, java.lang.String name)
239: throws com.liferay.portal.SystemException {
240: return getPersistence().countByF_N(folderId, name);
241: }
242:
243: public static int countByC_U_F_N(long companyId, long userId,
244: long folderId, java.lang.String name)
245: throws com.liferay.portal.SystemException {
246: return getPersistence().countByC_U_F_N(companyId, userId,
247: folderId, name);
248: }
249:
250: public static int countAll()
251: throws com.liferay.portal.SystemException {
252: return getPersistence().countAll();
253: }
254:
255: public static DLFileRankPersistence getPersistence() {
256: return _getUtil()._persistence;
257: }
258:
259: public void setPersistence(DLFileRankPersistence persistence) {
260: _persistence = persistence;
261: }
262:
263: private static DLFileRankUtil _getUtil() {
264: if (_util == null) {
265: _util = (DLFileRankUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
266: .locate(_UTIL);
267: }
268:
269: return _util;
270: }
271:
272: private static final String _UTIL = DLFileRankUtil.class.getName();
273: private static DLFileRankUtil _util;
274: private DLFileRankPersistence _persistence;
275: }
|