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="DLFileRankPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface DLFileRankPersistence {
030: public com.liferay.portlet.documentlibrary.model.DLFileRank create(
031: long fileRankId);
032:
033: public com.liferay.portlet.documentlibrary.model.DLFileRank remove(
034: long fileRankId) throws com.liferay.portal.SystemException,
035: com.liferay.portlet.documentlibrary.NoSuchFileRankException;
036:
037: public com.liferay.portlet.documentlibrary.model.DLFileRank remove(
038: com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank)
039: throws com.liferay.portal.SystemException;
040:
041: public com.liferay.portlet.documentlibrary.model.DLFileRank update(
042: com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank)
043: throws com.liferay.portal.SystemException;
044:
045: public com.liferay.portlet.documentlibrary.model.DLFileRank update(
046: com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank,
047: boolean merge) throws com.liferay.portal.SystemException;
048:
049: public com.liferay.portlet.documentlibrary.model.DLFileRank updateImpl(
050: com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank,
051: boolean merge) throws com.liferay.portal.SystemException;
052:
053: public com.liferay.portlet.documentlibrary.model.DLFileRank findByPrimaryKey(
054: long fileRankId) throws com.liferay.portal.SystemException,
055: com.liferay.portlet.documentlibrary.NoSuchFileRankException;
056:
057: public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByPrimaryKey(
058: long fileRankId) throws com.liferay.portal.SystemException;
059:
060: public java.util.List findByUserId(long userId)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByUserId(long userId, int begin, int end)
064: throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByUserId(long userId, int begin, int end,
067: com.liferay.portal.kernel.util.OrderByComparator obc)
068: throws com.liferay.portal.SystemException;
069:
070: public com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_First(
071: long userId,
072: com.liferay.portal.kernel.util.OrderByComparator obc)
073: throws com.liferay.portal.SystemException,
074: com.liferay.portlet.documentlibrary.NoSuchFileRankException;
075:
076: public com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_Last(
077: long userId,
078: com.liferay.portal.kernel.util.OrderByComparator obc)
079: throws com.liferay.portal.SystemException,
080: com.liferay.portlet.documentlibrary.NoSuchFileRankException;
081:
082: public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByUserId_PrevAndNext(
083: long fileRankId, long userId,
084: com.liferay.portal.kernel.util.OrderByComparator obc)
085: throws com.liferay.portal.SystemException,
086: com.liferay.portlet.documentlibrary.NoSuchFileRankException;
087:
088: public java.util.List findByF_N(long folderId, java.lang.String name)
089: throws com.liferay.portal.SystemException;
090:
091: public java.util.List findByF_N(long folderId,
092: java.lang.String name, int begin, int end)
093: throws com.liferay.portal.SystemException;
094:
095: public java.util.List findByF_N(long folderId,
096: java.lang.String name, int begin, int end,
097: com.liferay.portal.kernel.util.OrderByComparator obc)
098: throws com.liferay.portal.SystemException;
099:
100: public com.liferay.portlet.documentlibrary.model.DLFileRank findByF_N_First(
101: long folderId, java.lang.String name,
102: com.liferay.portal.kernel.util.OrderByComparator obc)
103: throws com.liferay.portal.SystemException,
104: com.liferay.portlet.documentlibrary.NoSuchFileRankException;
105:
106: public com.liferay.portlet.documentlibrary.model.DLFileRank findByF_N_Last(
107: long folderId, java.lang.String name,
108: com.liferay.portal.kernel.util.OrderByComparator obc)
109: throws com.liferay.portal.SystemException,
110: com.liferay.portlet.documentlibrary.NoSuchFileRankException;
111:
112: public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByF_N_PrevAndNext(
113: long fileRankId, long folderId, java.lang.String name,
114: com.liferay.portal.kernel.util.OrderByComparator obc)
115: throws com.liferay.portal.SystemException,
116: com.liferay.portlet.documentlibrary.NoSuchFileRankException;
117:
118: public com.liferay.portlet.documentlibrary.model.DLFileRank findByC_U_F_N(
119: long companyId, long userId, long folderId,
120: java.lang.String name)
121: throws com.liferay.portal.SystemException,
122: com.liferay.portlet.documentlibrary.NoSuchFileRankException;
123:
124: public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F_N(
125: long companyId, long userId, long folderId,
126: java.lang.String name)
127: throws com.liferay.portal.SystemException;
128:
129: public java.util.List findWithDynamicQuery(
130: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
131: throws com.liferay.portal.SystemException;
132:
133: public java.util.List findWithDynamicQuery(
134: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
135: int begin, int end)
136: throws com.liferay.portal.SystemException;
137:
138: public java.util.List findAll()
139: throws com.liferay.portal.SystemException;
140:
141: public java.util.List findAll(int begin, int end)
142: throws com.liferay.portal.SystemException;
143:
144: public java.util.List findAll(int begin, int end,
145: com.liferay.portal.kernel.util.OrderByComparator obc)
146: throws com.liferay.portal.SystemException;
147:
148: public void removeByUserId(long userId)
149: throws com.liferay.portal.SystemException;
150:
151: public void removeByF_N(long folderId, java.lang.String name)
152: throws com.liferay.portal.SystemException;
153:
154: public void removeByC_U_F_N(long companyId, long userId,
155: long folderId, java.lang.String name)
156: throws com.liferay.portal.SystemException,
157: com.liferay.portlet.documentlibrary.NoSuchFileRankException;
158:
159: public void removeAll() throws com.liferay.portal.SystemException;
160:
161: public int countByUserId(long userId)
162: throws com.liferay.portal.SystemException;
163:
164: public int countByF_N(long folderId, java.lang.String name)
165: throws com.liferay.portal.SystemException;
166:
167: public int countByC_U_F_N(long companyId, long userId,
168: long folderId, java.lang.String name)
169: throws com.liferay.portal.SystemException;
170:
171: public int countAll() throws com.liferay.portal.SystemException;
172: }
|