1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.documentlibrary.service.persistence;
24  
25  /**
26   * <a href="DLFileShortcutPersistence.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public interface DLFileShortcutPersistence {
32      public com.liferay.portlet.documentlibrary.model.DLFileShortcut create(
33          long fileShortcutId);
34  
35      public com.liferay.portlet.documentlibrary.model.DLFileShortcut remove(
36          long fileShortcutId)
37          throws com.liferay.portal.SystemException, 
38              com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
39  
40      public com.liferay.portlet.documentlibrary.model.DLFileShortcut remove(
41          com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
42          throws com.liferay.portal.SystemException;
43  
44      public com.liferay.portlet.documentlibrary.model.DLFileShortcut update(
45          com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
46          throws com.liferay.portal.SystemException;
47  
48      public com.liferay.portlet.documentlibrary.model.DLFileShortcut update(
49          com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
50          boolean merge) throws com.liferay.portal.SystemException;
51  
52      public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateImpl(
53          com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
54          boolean merge) throws com.liferay.portal.SystemException;
55  
56      public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByPrimaryKey(
57          long fileShortcutId)
58          throws com.liferay.portal.SystemException, 
59              com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
60  
61      public com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByPrimaryKey(
62          long fileShortcutId) throws com.liferay.portal.SystemException;
63  
64      public java.util.List findByUuid(java.lang.String uuid)
65          throws com.liferay.portal.SystemException;
66  
67      public java.util.List findByUuid(java.lang.String uuid, int begin, int end)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List findByUuid(java.lang.String uuid, int begin, int end,
71          com.liferay.portal.kernel.util.OrderByComparator obc)
72          throws com.liferay.portal.SystemException;
73  
74      public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUuid_First(
75          java.lang.String uuid,
76          com.liferay.portal.kernel.util.OrderByComparator obc)
77          throws com.liferay.portal.SystemException, 
78              com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
79  
80      public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUuid_Last(
81          java.lang.String uuid,
82          com.liferay.portal.kernel.util.OrderByComparator obc)
83          throws com.liferay.portal.SystemException, 
84              com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
85  
86      public com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByUuid_PrevAndNext(
87          long fileShortcutId, java.lang.String uuid,
88          com.liferay.portal.kernel.util.OrderByComparator obc)
89          throws com.liferay.portal.SystemException, 
90              com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
91  
92      public java.util.List findByFolderId(long folderId)
93          throws com.liferay.portal.SystemException;
94  
95      public java.util.List findByFolderId(long folderId, int begin, int end)
96          throws com.liferay.portal.SystemException;
97  
98      public java.util.List findByFolderId(long folderId, int begin, int end,
99          com.liferay.portal.kernel.util.OrderByComparator obc)
100         throws com.liferay.portal.SystemException;
101 
102     public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByFolderId_First(
103         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
104         throws com.liferay.portal.SystemException, 
105             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
106 
107     public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByFolderId_Last(
108         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
109         throws com.liferay.portal.SystemException, 
110             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
111 
112     public com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByFolderId_PrevAndNext(
113         long fileShortcutId, long folderId,
114         com.liferay.portal.kernel.util.OrderByComparator obc)
115         throws com.liferay.portal.SystemException, 
116             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
117 
118     public java.util.List findByTF_TN(long toFolderId, java.lang.String toName)
119         throws com.liferay.portal.SystemException;
120 
121     public java.util.List findByTF_TN(long toFolderId, java.lang.String toName,
122         int begin, int end) throws com.liferay.portal.SystemException;
123 
124     public java.util.List findByTF_TN(long toFolderId, java.lang.String toName,
125         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
126         throws com.liferay.portal.SystemException;
127 
128     public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByTF_TN_First(
129         long toFolderId, java.lang.String toName,
130         com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.SystemException, 
132             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
133 
134     public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByTF_TN_Last(
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_PrevAndNext(
141         long fileShortcutId, 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 java.util.List findWithDynamicQuery(
147         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
148         throws com.liferay.portal.SystemException;
149 
150     public java.util.List findWithDynamicQuery(
151         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
152         int begin, int end) throws com.liferay.portal.SystemException;
153 
154     public java.util.List findAll() throws com.liferay.portal.SystemException;
155 
156     public java.util.List findAll(int begin, int end)
157         throws com.liferay.portal.SystemException;
158 
159     public java.util.List findAll(int begin, int end,
160         com.liferay.portal.kernel.util.OrderByComparator obc)
161         throws com.liferay.portal.SystemException;
162 
163     public void removeByUuid(java.lang.String uuid)
164         throws com.liferay.portal.SystemException;
165 
166     public void removeByFolderId(long folderId)
167         throws com.liferay.portal.SystemException;
168 
169     public void removeByTF_TN(long toFolderId, java.lang.String toName)
170         throws com.liferay.portal.SystemException;
171 
172     public void removeAll() throws com.liferay.portal.SystemException;
173 
174     public int countByUuid(java.lang.String uuid)
175         throws com.liferay.portal.SystemException;
176 
177     public int countByFolderId(long folderId)
178         throws com.liferay.portal.SystemException;
179 
180     public int countByTF_TN(long toFolderId, java.lang.String toName)
181         throws com.liferay.portal.SystemException;
182 
183     public int countAll() throws com.liferay.portal.SystemException;
184 }