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="DLFileEntryPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface DLFileEntryPersistence {
030: public com.liferay.portlet.documentlibrary.model.DLFileEntry create(
031: long fileEntryId);
032:
033: public com.liferay.portlet.documentlibrary.model.DLFileEntry remove(
034: long fileEntryId)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
037:
038: public com.liferay.portlet.documentlibrary.model.DLFileEntry remove(
039: com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portlet.documentlibrary.model.DLFileEntry update(
043: com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portlet.documentlibrary.model.DLFileEntry update(
047: com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portlet.documentlibrary.model.DLFileEntry updateImpl(
051: com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portlet.documentlibrary.model.DLFileEntry findByPrimaryKey(
055: long fileEntryId)
056: throws com.liferay.portal.SystemException,
057: com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
058:
059: public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByPrimaryKey(
060: long fileEntryId) throws com.liferay.portal.SystemException;
061:
062: public java.util.List findByUuid(java.lang.String uuid)
063: throws com.liferay.portal.SystemException;
064:
065: public java.util.List findByUuid(java.lang.String uuid, int begin,
066: int end) throws com.liferay.portal.SystemException;
067:
068: public java.util.List findByUuid(java.lang.String uuid, int begin,
069: int end,
070: com.liferay.portal.kernel.util.OrderByComparator obc)
071: throws com.liferay.portal.SystemException;
072:
073: public com.liferay.portlet.documentlibrary.model.DLFileEntry findByUuid_First(
074: java.lang.String uuid,
075: com.liferay.portal.kernel.util.OrderByComparator obc)
076: throws com.liferay.portal.SystemException,
077: com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
078:
079: public com.liferay.portlet.documentlibrary.model.DLFileEntry findByUuid_Last(
080: java.lang.String uuid,
081: com.liferay.portal.kernel.util.OrderByComparator obc)
082: throws com.liferay.portal.SystemException,
083: com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
084:
085: public com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByUuid_PrevAndNext(
086: long fileEntryId, java.lang.String uuid,
087: com.liferay.portal.kernel.util.OrderByComparator obc)
088: throws com.liferay.portal.SystemException,
089: com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
090:
091: public java.util.List findByCompanyId(long companyId)
092: throws com.liferay.portal.SystemException;
093:
094: public java.util.List findByCompanyId(long companyId, int begin,
095: int end) throws com.liferay.portal.SystemException;
096:
097: public java.util.List findByCompanyId(long companyId, int begin,
098: int end,
099: com.liferay.portal.kernel.util.OrderByComparator obc)
100: throws com.liferay.portal.SystemException;
101:
102: public com.liferay.portlet.documentlibrary.model.DLFileEntry findByCompanyId_First(
103: long companyId,
104: com.liferay.portal.kernel.util.OrderByComparator obc)
105: throws com.liferay.portal.SystemException,
106: com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
107:
108: public com.liferay.portlet.documentlibrary.model.DLFileEntry findByCompanyId_Last(
109: long companyId,
110: com.liferay.portal.kernel.util.OrderByComparator obc)
111: throws com.liferay.portal.SystemException,
112: com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
113:
114: public com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByCompanyId_PrevAndNext(
115: long fileEntryId, long companyId,
116: com.liferay.portal.kernel.util.OrderByComparator obc)
117: throws com.liferay.portal.SystemException,
118: com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
119:
120: public java.util.List findByFolderId(long folderId)
121: throws com.liferay.portal.SystemException;
122:
123: public java.util.List findByFolderId(long folderId, int begin,
124: int end) throws com.liferay.portal.SystemException;
125:
126: public java.util.List findByFolderId(long folderId, int begin,
127: int end,
128: com.liferay.portal.kernel.util.OrderByComparator obc)
129: throws com.liferay.portal.SystemException;
130:
131: public com.liferay.portlet.documentlibrary.model.DLFileEntry findByFolderId_First(
132: long folderId,
133: com.liferay.portal.kernel.util.OrderByComparator obc)
134: throws com.liferay.portal.SystemException,
135: com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
136:
137: public com.liferay.portlet.documentlibrary.model.DLFileEntry findByFolderId_Last(
138: long folderId,
139: com.liferay.portal.kernel.util.OrderByComparator obc)
140: throws com.liferay.portal.SystemException,
141: com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
142:
143: public com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByFolderId_PrevAndNext(
144: long fileEntryId, long folderId,
145: com.liferay.portal.kernel.util.OrderByComparator obc)
146: throws com.liferay.portal.SystemException,
147: com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
148:
149: public com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_N(
150: long folderId, java.lang.String name)
151: throws com.liferay.portal.SystemException,
152: com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
153:
154: public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByF_N(
155: long folderId, java.lang.String name)
156: throws com.liferay.portal.SystemException;
157:
158: public java.util.List findByF_T(long folderId,
159: java.lang.String title)
160: throws com.liferay.portal.SystemException;
161:
162: public java.util.List findByF_T(long folderId,
163: java.lang.String title, int begin, int end)
164: throws com.liferay.portal.SystemException;
165:
166: public java.util.List findByF_T(long folderId,
167: java.lang.String title, int begin, int end,
168: com.liferay.portal.kernel.util.OrderByComparator obc)
169: throws com.liferay.portal.SystemException;
170:
171: public com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_T_First(
172: long folderId, java.lang.String title,
173: com.liferay.portal.kernel.util.OrderByComparator obc)
174: throws com.liferay.portal.SystemException,
175: com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
176:
177: public com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_T_Last(
178: long folderId, java.lang.String title,
179: com.liferay.portal.kernel.util.OrderByComparator obc)
180: throws com.liferay.portal.SystemException,
181: com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
182:
183: public com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByF_T_PrevAndNext(
184: long fileEntryId, long folderId, java.lang.String title,
185: com.liferay.portal.kernel.util.OrderByComparator obc)
186: throws com.liferay.portal.SystemException,
187: com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
188:
189: public java.util.List findWithDynamicQuery(
190: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
191: throws com.liferay.portal.SystemException;
192:
193: public java.util.List findWithDynamicQuery(
194: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
195: int begin, int end)
196: throws com.liferay.portal.SystemException;
197:
198: public java.util.List findAll()
199: throws com.liferay.portal.SystemException;
200:
201: public java.util.List findAll(int begin, int end)
202: throws com.liferay.portal.SystemException;
203:
204: public java.util.List findAll(int begin, int end,
205: com.liferay.portal.kernel.util.OrderByComparator obc)
206: throws com.liferay.portal.SystemException;
207:
208: public void removeByUuid(java.lang.String uuid)
209: throws com.liferay.portal.SystemException;
210:
211: public void removeByCompanyId(long companyId)
212: throws com.liferay.portal.SystemException;
213:
214: public void removeByFolderId(long folderId)
215: throws com.liferay.portal.SystemException;
216:
217: public void removeByF_N(long folderId, java.lang.String name)
218: throws com.liferay.portal.SystemException,
219: com.liferay.portlet.documentlibrary.NoSuchFileEntryException;
220:
221: public void removeByF_T(long folderId, java.lang.String title)
222: throws com.liferay.portal.SystemException;
223:
224: public void removeAll() throws com.liferay.portal.SystemException;
225:
226: public int countByUuid(java.lang.String uuid)
227: throws com.liferay.portal.SystemException;
228:
229: public int countByCompanyId(long companyId)
230: throws com.liferay.portal.SystemException;
231:
232: public int countByFolderId(long folderId)
233: throws com.liferay.portal.SystemException;
234:
235: public int countByF_N(long folderId, java.lang.String name)
236: throws com.liferay.portal.SystemException;
237:
238: public int countByF_T(long folderId, java.lang.String title)
239: throws com.liferay.portal.SystemException;
240:
241: public int countAll() throws com.liferay.portal.SystemException;
242: }
|