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="DLFileShortcutPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface DLFileShortcutPersistence {
030: public com.liferay.portlet.documentlibrary.model.DLFileShortcut create(
031: long fileShortcutId);
032:
033: public com.liferay.portlet.documentlibrary.model.DLFileShortcut remove(
034: long fileShortcutId)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
037:
038: public com.liferay.portlet.documentlibrary.model.DLFileShortcut remove(
039: com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portlet.documentlibrary.model.DLFileShortcut update(
043: com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portlet.documentlibrary.model.DLFileShortcut update(
047: com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateImpl(
051: com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByPrimaryKey(
055: long fileShortcutId)
056: throws com.liferay.portal.SystemException,
057: com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
058:
059: public com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByPrimaryKey(
060: long fileShortcutId)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByUuid(java.lang.String uuid)
064: throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByUuid(java.lang.String uuid, int begin,
067: int end) throws com.liferay.portal.SystemException;
068:
069: public java.util.List findByUuid(java.lang.String uuid, int begin,
070: int end,
071: com.liferay.portal.kernel.util.OrderByComparator obc)
072: throws com.liferay.portal.SystemException;
073:
074: public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUuid_First(
075: java.lang.String uuid,
076: com.liferay.portal.kernel.util.OrderByComparator obc)
077: throws com.liferay.portal.SystemException,
078: com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
079:
080: public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUuid_Last(
081: java.lang.String uuid,
082: com.liferay.portal.kernel.util.OrderByComparator obc)
083: throws com.liferay.portal.SystemException,
084: com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
085:
086: public com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByUuid_PrevAndNext(
087: long fileShortcutId, java.lang.String uuid,
088: com.liferay.portal.kernel.util.OrderByComparator obc)
089: throws com.liferay.portal.SystemException,
090: com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
091:
092: public java.util.List findByFolderId(long folderId)
093: throws com.liferay.portal.SystemException;
094:
095: public java.util.List findByFolderId(long folderId, int begin,
096: int end) throws com.liferay.portal.SystemException;
097:
098: public java.util.List findByFolderId(long folderId, int begin,
099: int end,
100: com.liferay.portal.kernel.util.OrderByComparator obc)
101: throws com.liferay.portal.SystemException;
102:
103: public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByFolderId_First(
104: long folderId,
105: com.liferay.portal.kernel.util.OrderByComparator obc)
106: throws com.liferay.portal.SystemException,
107: com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
108:
109: public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByFolderId_Last(
110: long folderId,
111: com.liferay.portal.kernel.util.OrderByComparator obc)
112: throws com.liferay.portal.SystemException,
113: com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
114:
115: public com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByFolderId_PrevAndNext(
116: long fileShortcutId, long folderId,
117: com.liferay.portal.kernel.util.OrderByComparator obc)
118: throws com.liferay.portal.SystemException,
119: com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
120:
121: public java.util.List findByTF_TN(long toFolderId,
122: java.lang.String toName)
123: throws com.liferay.portal.SystemException;
124:
125: public java.util.List findByTF_TN(long toFolderId,
126: java.lang.String toName, int begin, int end)
127: throws com.liferay.portal.SystemException;
128:
129: public java.util.List findByTF_TN(long toFolderId,
130: java.lang.String toName, int begin, int end,
131: com.liferay.portal.kernel.util.OrderByComparator obc)
132: throws com.liferay.portal.SystemException;
133:
134: public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByTF_TN_First(
135: long toFolderId, java.lang.String toName,
136: com.liferay.portal.kernel.util.OrderByComparator obc)
137: throws com.liferay.portal.SystemException,
138: com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
139:
140: public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByTF_TN_Last(
141: long toFolderId, java.lang.String toName,
142: com.liferay.portal.kernel.util.OrderByComparator obc)
143: throws com.liferay.portal.SystemException,
144: com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
145:
146: public com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByTF_TN_PrevAndNext(
147: long fileShortcutId, long toFolderId,
148: java.lang.String toName,
149: com.liferay.portal.kernel.util.OrderByComparator obc)
150: throws com.liferay.portal.SystemException,
151: com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
152:
153: public java.util.List findWithDynamicQuery(
154: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
155: throws com.liferay.portal.SystemException;
156:
157: public java.util.List findWithDynamicQuery(
158: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
159: int begin, int end)
160: throws com.liferay.portal.SystemException;
161:
162: public java.util.List findAll()
163: throws com.liferay.portal.SystemException;
164:
165: public java.util.List findAll(int begin, int end)
166: throws com.liferay.portal.SystemException;
167:
168: public java.util.List findAll(int begin, int end,
169: com.liferay.portal.kernel.util.OrderByComparator obc)
170: throws com.liferay.portal.SystemException;
171:
172: public void removeByUuid(java.lang.String uuid)
173: throws com.liferay.portal.SystemException;
174:
175: public void removeByFolderId(long folderId)
176: throws com.liferay.portal.SystemException;
177:
178: public void removeByTF_TN(long toFolderId, java.lang.String toName)
179: throws com.liferay.portal.SystemException;
180:
181: public void removeAll() throws com.liferay.portal.SystemException;
182:
183: public int countByUuid(java.lang.String uuid)
184: throws com.liferay.portal.SystemException;
185:
186: public int countByFolderId(long folderId)
187: throws com.liferay.portal.SystemException;
188:
189: public int countByTF_TN(long toFolderId, java.lang.String toName)
190: throws com.liferay.portal.SystemException;
191:
192: public int countAll() throws com.liferay.portal.SystemException;
193: }
|