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