1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.documentlibrary.service.persistence;
21  
22  import com.liferay.portal.service.persistence.BasePersistence;
23  
24  /**
25   * <a href="DLFileShortcutPersistence.java.html"><b><i>View Source</i></b></a>
26   *
27   * @author Brian Wing Shun Chan
28   *
29   */
30  public interface DLFileShortcutPersistence extends BasePersistence {
31      public void cacheResult(
32          com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut);
33  
34      public void cacheResult(
35          java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> dlFileShortcuts);
36  
37      public void clearCache();
38  
39      public com.liferay.portlet.documentlibrary.model.DLFileShortcut create(
40          long fileShortcutId);
41  
42      public com.liferay.portlet.documentlibrary.model.DLFileShortcut remove(
43          long fileShortcutId)
44          throws com.liferay.portal.SystemException,
45              com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
46  
47      public com.liferay.portlet.documentlibrary.model.DLFileShortcut remove(
48          com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
49          throws com.liferay.portal.SystemException;
50  
51      /**
52       * @deprecated Use <code>update(DLFileShortcut dlFileShortcut, boolean merge)</code>.
53       */
54      public com.liferay.portlet.documentlibrary.model.DLFileShortcut update(
55          com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
56          throws com.liferay.portal.SystemException;
57  
58      /**
59       * Add, update, or merge, the entity. This method also calls the model
60       * listeners to trigger the proper events associated with adding, deleting,
61       * or updating an entity.
62       *
63       * @param        dlFileShortcut the entity to add, update, or merge
64       * @param        merge boolean value for whether to merge the entity. The
65       *                default value is false. Setting merge to true is more
66       *                expensive and should only be true when dlFileShortcut is
67       *                transient. See LEP-5473 for a detailed discussion of this
68       *                method.
69       * @return        true if the portlet can be displayed via Ajax
70       */
71      public com.liferay.portlet.documentlibrary.model.DLFileShortcut update(
72          com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
73          boolean merge) throws com.liferay.portal.SystemException;
74  
75      public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateImpl(
76          com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
77          boolean merge) throws com.liferay.portal.SystemException;
78  
79      public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByPrimaryKey(
80          long fileShortcutId)
81          throws com.liferay.portal.SystemException,
82              com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
83  
84      public com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByPrimaryKey(
85          long fileShortcutId) throws com.liferay.portal.SystemException;
86  
87      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByUuid(
88          java.lang.String uuid) throws com.liferay.portal.SystemException;
89  
90      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByUuid(
91          java.lang.String uuid, int start, int end)
92          throws com.liferay.portal.SystemException;
93  
94      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByUuid(
95          java.lang.String uuid, int start, int end,
96          com.liferay.portal.kernel.util.OrderByComparator obc)
97          throws com.liferay.portal.SystemException;
98  
99      public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUuid_First(
100         java.lang.String uuid,
101         com.liferay.portal.kernel.util.OrderByComparator obc)
102         throws com.liferay.portal.SystemException,
103             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
104 
105     public 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 
111     public com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByUuid_PrevAndNext(
112         long fileShortcutId, java.lang.String uuid,
113         com.liferay.portal.kernel.util.OrderByComparator obc)
114         throws com.liferay.portal.SystemException,
115             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
116 
117     public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUUID_G(
118         java.lang.String uuid, long groupId)
119         throws com.liferay.portal.SystemException,
120             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
121 
122     public com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByUUID_G(
123         java.lang.String uuid, long groupId)
124         throws com.liferay.portal.SystemException;
125 
126     public com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByUUID_G(
127         java.lang.String uuid, long groupId, boolean retrieveFromCache)
128         throws com.liferay.portal.SystemException;
129 
130     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByFolderId(
131         long folderId) throws com.liferay.portal.SystemException;
132 
133     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByFolderId(
134         long folderId, int start, int end)
135         throws com.liferay.portal.SystemException;
136 
137     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByFolderId(
138         long folderId, int start, int end,
139         com.liferay.portal.kernel.util.OrderByComparator obc)
140         throws com.liferay.portal.SystemException;
141 
142     public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByFolderId_First(
143         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.SystemException,
145             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
146 
147     public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByFolderId_Last(
148         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException,
150             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
151 
152     public com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByFolderId_PrevAndNext(
153         long fileShortcutId, long folderId,
154         com.liferay.portal.kernel.util.OrderByComparator obc)
155         throws com.liferay.portal.SystemException,
156             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
157 
158     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByTF_TN(
159         long toFolderId, java.lang.String toName)
160         throws com.liferay.portal.SystemException;
161 
162     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByTF_TN(
163         long toFolderId, java.lang.String toName, int start, int end)
164         throws com.liferay.portal.SystemException;
165 
166     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByTF_TN(
167         long toFolderId, java.lang.String toName, int start, int end,
168         com.liferay.portal.kernel.util.OrderByComparator obc)
169         throws com.liferay.portal.SystemException;
170 
171     public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByTF_TN_First(
172         long toFolderId, java.lang.String toName,
173         com.liferay.portal.kernel.util.OrderByComparator obc)
174         throws com.liferay.portal.SystemException,
175             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
176 
177     public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByTF_TN_Last(
178         long toFolderId, java.lang.String toName,
179         com.liferay.portal.kernel.util.OrderByComparator obc)
180         throws com.liferay.portal.SystemException,
181             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
182 
183     public com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByTF_TN_PrevAndNext(
184         long fileShortcutId, long toFolderId, java.lang.String toName,
185         com.liferay.portal.kernel.util.OrderByComparator obc)
186         throws com.liferay.portal.SystemException,
187             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
188 
189     public java.util.List<Object> findWithDynamicQuery(
190         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
191         throws com.liferay.portal.SystemException;
192 
193     public java.util.List<Object> findWithDynamicQuery(
194         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
195         int end) throws com.liferay.portal.SystemException;
196 
197     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll()
198         throws com.liferay.portal.SystemException;
199 
200     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll(
201         int start, int end) throws com.liferay.portal.SystemException;
202 
203     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll(
204         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
205         throws com.liferay.portal.SystemException;
206 
207     public void removeByUuid(java.lang.String uuid)
208         throws com.liferay.portal.SystemException;
209 
210     public void removeByUUID_G(java.lang.String uuid, long groupId)
211         throws com.liferay.portal.SystemException,
212             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
213 
214     public void removeByFolderId(long folderId)
215         throws com.liferay.portal.SystemException;
216 
217     public void removeByTF_TN(long toFolderId, java.lang.String toName)
218         throws com.liferay.portal.SystemException;
219 
220     public void removeAll() throws com.liferay.portal.SystemException;
221 
222     public int countByUuid(java.lang.String uuid)
223         throws com.liferay.portal.SystemException;
224 
225     public int countByUUID_G(java.lang.String uuid, long groupId)
226         throws com.liferay.portal.SystemException;
227 
228     public int countByFolderId(long folderId)
229         throws com.liferay.portal.SystemException;
230 
231     public int countByTF_TN(long toFolderId, java.lang.String toName)
232         throws com.liferay.portal.SystemException;
233 
234     public int countAll() throws com.liferay.portal.SystemException;
235 }