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      /**
45       * @deprecated Use <code>update(DLFileShortcut dlFileShortcut, boolean merge)</code>.
46       */
47      public com.liferay.portlet.documentlibrary.model.DLFileShortcut update(
48          com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
49          throws com.liferay.portal.SystemException;
50  
51      /**
52       * Add, update, or merge, the entity. This method also calls the model
53       * listeners to trigger the proper events associated with adding, deleting,
54       * or updating an entity.
55       *
56       * @param        dlFileShortcut the entity to add, update, or merge
57       * @param        merge boolean value for whether to merge the entity. The
58       *                default value is false. Setting merge to true is more
59       *                expensive and should only be true when dlFileShortcut is
60       *                transient. See LEP-5473 for a detailed discussion of this
61       *                method.
62       * @return        true if the portlet can be displayed via Ajax
63       */
64      public com.liferay.portlet.documentlibrary.model.DLFileShortcut update(
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 updateImpl(
69          com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
70          boolean merge) throws com.liferay.portal.SystemException;
71  
72      public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByPrimaryKey(
73          long fileShortcutId)
74          throws com.liferay.portal.SystemException,
75              com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
76  
77      public com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByPrimaryKey(
78          long fileShortcutId) throws com.liferay.portal.SystemException;
79  
80      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByUuid(
81          java.lang.String uuid) throws com.liferay.portal.SystemException;
82  
83      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByUuid(
84          java.lang.String uuid, int begin, int end)
85          throws com.liferay.portal.SystemException;
86  
87      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByUuid(
88          java.lang.String uuid, int begin, int end,
89          com.liferay.portal.kernel.util.OrderByComparator obc)
90          throws com.liferay.portal.SystemException;
91  
92      public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUuid_First(
93          java.lang.String uuid,
94          com.liferay.portal.kernel.util.OrderByComparator obc)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
97  
98      public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUuid_Last(
99          java.lang.String uuid,
100         com.liferay.portal.kernel.util.OrderByComparator obc)
101         throws com.liferay.portal.SystemException,
102             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
103 
104     public com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByUuid_PrevAndNext(
105         long fileShortcutId, java.lang.String uuid,
106         com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.SystemException,
108             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
109 
110     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByFolderId(
111         long folderId) throws com.liferay.portal.SystemException;
112 
113     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByFolderId(
114         long folderId, int begin, int end)
115         throws com.liferay.portal.SystemException;
116 
117     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByFolderId(
118         long folderId, int begin, int end,
119         com.liferay.portal.kernel.util.OrderByComparator obc)
120         throws com.liferay.portal.SystemException;
121 
122     public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByFolderId_First(
123         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
124         throws com.liferay.portal.SystemException,
125             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
126 
127     public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByFolderId_Last(
128         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
129         throws com.liferay.portal.SystemException,
130             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
131 
132     public com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByFolderId_PrevAndNext(
133         long fileShortcutId, long folderId,
134         com.liferay.portal.kernel.util.OrderByComparator obc)
135         throws com.liferay.portal.SystemException,
136             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
137 
138     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByTF_TN(
139         long toFolderId, java.lang.String toName)
140         throws com.liferay.portal.SystemException;
141 
142     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByTF_TN(
143         long toFolderId, java.lang.String toName, int begin, int end)
144         throws com.liferay.portal.SystemException;
145 
146     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByTF_TN(
147         long toFolderId, java.lang.String toName, int begin, int end,
148         com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException;
150 
151     public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByTF_TN_First(
152         long toFolderId, java.lang.String toName,
153         com.liferay.portal.kernel.util.OrderByComparator obc)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
156 
157     public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByTF_TN_Last(
158         long toFolderId, java.lang.String toName,
159         com.liferay.portal.kernel.util.OrderByComparator obc)
160         throws com.liferay.portal.SystemException,
161             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
162 
163     public com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByTF_TN_PrevAndNext(
164         long fileShortcutId, long toFolderId, java.lang.String toName,
165         com.liferay.portal.kernel.util.OrderByComparator obc)
166         throws com.liferay.portal.SystemException,
167             com.liferay.portlet.documentlibrary.NoSuchFileShortcutException;
168 
169     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findWithDynamicQuery(
170         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
171         throws com.liferay.portal.SystemException;
172 
173     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findWithDynamicQuery(
174         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
175         int begin, int end) throws com.liferay.portal.SystemException;
176 
177     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll()
178         throws com.liferay.portal.SystemException;
179 
180     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll(
181         int begin, int end) throws com.liferay.portal.SystemException;
182 
183     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll(
184         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
185         throws com.liferay.portal.SystemException;
186 
187     public void removeByUuid(java.lang.String uuid)
188         throws com.liferay.portal.SystemException;
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 countByFolderId(long folderId)
202         throws com.liferay.portal.SystemException;
203 
204     public int countByTF_TN(long toFolderId, java.lang.String toName)
205         throws com.liferay.portal.SystemException;
206 
207     public int countAll() throws com.liferay.portal.SystemException;
208 }