1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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  import com.liferay.portal.service.persistence.BasePersistence;
26  
27  import com.liferay.portlet.documentlibrary.model.DLFileShortcut;
28  
29  /**
30   * <a href="DLFileShortcutPersistence.java.html"><b><i>View Source</i></b></a>
31   *
32   * <p>
33   * ServiceBuilder generated this class. Modifications in this class will be
34   * overwritten the next time is generated.
35   * </p>
36   *
37   * @author    Brian Wing Shun Chan
38   * @see       DLFileShortcutPersistenceImpl
39   * @see       DLFileShortcutUtil
40   * @generated
41   */
42  public interface DLFileShortcutPersistence extends BasePersistence<DLFileShortcut> {
43      public void cacheResult(
44          com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut);
45  
46      public void cacheResult(
47          java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> dlFileShortcuts);
48  
49      public com.liferay.portlet.documentlibrary.model.DLFileShortcut create(
50          long fileShortcutId);
51  
52      public com.liferay.portlet.documentlibrary.model.DLFileShortcut remove(
53          long fileShortcutId)
54          throws com.liferay.portal.SystemException,
55              com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
56  
57      /**
58       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
59       */
60      public com.liferay.portlet.documentlibrary.model.DLFileShortcut update(
61          com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
62          throws com.liferay.portal.SystemException;
63  
64      public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateImpl(
65          com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
66          boolean merge) throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByPrimaryKey(
69          long fileShortcutId)
70          throws com.liferay.portal.SystemException,
71              com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
72  
73      public com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByPrimaryKey(
74          long fileShortcutId) throws com.liferay.portal.SystemException;
75  
76      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByUuid(
77          java.lang.String uuid) throws com.liferay.portal.SystemException;
78  
79      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByUuid(
80          java.lang.String uuid, int start, int end)
81          throws com.liferay.portal.SystemException;
82  
83      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByUuid(
84          java.lang.String uuid, int start, int end,
85          com.liferay.portal.kernel.util.OrderByComparator obc)
86          throws com.liferay.portal.SystemException;
87  
88      public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUuid_First(
89          java.lang.String uuid,
90          com.liferay.portal.kernel.util.OrderByComparator obc)
91          throws com.liferay.portal.SystemException,
92              com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
93  
94      public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUuid_Last(
95          java.lang.String uuid,
96          com.liferay.portal.kernel.util.OrderByComparator obc)
97          throws com.liferay.portal.SystemException,
98              com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
99  
100     public com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByUuid_PrevAndNext(
101         long fileShortcutId, java.lang.String uuid,
102         com.liferay.portal.kernel.util.OrderByComparator obc)
103         throws com.liferay.portal.SystemException,
104             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
105 
106     public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUUID_G(
107         java.lang.String uuid, long groupId)
108         throws com.liferay.portal.SystemException,
109             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
110 
111     public com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByUUID_G(
112         java.lang.String uuid, long groupId)
113         throws com.liferay.portal.SystemException;
114 
115     public com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByUUID_G(
116         java.lang.String uuid, long groupId, boolean retrieveFromCache)
117         throws com.liferay.portal.SystemException;
118 
119     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByFolderId(
120         long folderId) throws com.liferay.portal.SystemException;
121 
122     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByFolderId(
123         long folderId, int start, int end)
124         throws com.liferay.portal.SystemException;
125 
126     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByFolderId(
127         long folderId, int start, int end,
128         com.liferay.portal.kernel.util.OrderByComparator obc)
129         throws com.liferay.portal.SystemException;
130 
131     public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByFolderId_First(
132         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
133         throws com.liferay.portal.SystemException,
134             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
135 
136     public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByFolderId_Last(
137         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.SystemException,
139             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
140 
141     public com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByFolderId_PrevAndNext(
142         long fileShortcutId, long folderId,
143         com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.SystemException,
145             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
146 
147     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByTF_TN(
148         long toFolderId, java.lang.String toName)
149         throws com.liferay.portal.SystemException;
150 
151     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByTF_TN(
152         long toFolderId, java.lang.String toName, int start, int end)
153         throws com.liferay.portal.SystemException;
154 
155     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByTF_TN(
156         long toFolderId, java.lang.String toName, int start, int end,
157         com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.SystemException;
159 
160     public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByTF_TN_First(
161         long toFolderId, java.lang.String toName,
162         com.liferay.portal.kernel.util.OrderByComparator obc)
163         throws com.liferay.portal.SystemException,
164             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
165 
166     public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByTF_TN_Last(
167         long toFolderId, java.lang.String toName,
168         com.liferay.portal.kernel.util.OrderByComparator obc)
169         throws com.liferay.portal.SystemException,
170             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
171 
172     public com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByTF_TN_PrevAndNext(
173         long fileShortcutId, long toFolderId, java.lang.String toName,
174         com.liferay.portal.kernel.util.OrderByComparator obc)
175         throws com.liferay.portal.SystemException,
176             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
177 
178     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll()
179         throws com.liferay.portal.SystemException;
180 
181     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll(
182         int start, int end) throws com.liferay.portal.SystemException;
183 
184     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll(
185         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
186         throws com.liferay.portal.SystemException;
187 
188     public void removeByUuid(java.lang.String uuid)
189         throws com.liferay.portal.SystemException;
190 
191     public void removeByUUID_G(java.lang.String uuid, long groupId)
192         throws com.liferay.portal.SystemException,
193             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
194 
195     public void removeByFolderId(long folderId)
196         throws com.liferay.portal.SystemException;
197 
198     public void removeByTF_TN(long toFolderId, java.lang.String toName)
199         throws com.liferay.portal.SystemException;
200 
201     public void removeAll() throws com.liferay.portal.SystemException;
202 
203     public int countByUuid(java.lang.String uuid)
204         throws com.liferay.portal.SystemException;
205 
206     public int countByUUID_G(java.lang.String uuid, long groupId)
207         throws com.liferay.portal.SystemException;
208 
209     public int countByFolderId(long folderId)
210         throws com.liferay.portal.SystemException;
211 
212     public int countByTF_TN(long toFolderId, java.lang.String toName)
213         throws com.liferay.portal.SystemException;
214 
215     public int countAll() throws com.liferay.portal.SystemException;
216 }