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  /**
28   * <a href="DLFileVersionPersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       DLFileVersionPersistenceImpl
37   * @see       DLFileVersionUtil
38   * @generated
39   */
40  public interface DLFileVersionPersistence extends BasePersistence {
41      public void cacheResult(
42          com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion);
43  
44      public void cacheResult(
45          java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> dlFileVersions);
46  
47      public void clearCache();
48  
49      public com.liferay.portlet.documentlibrary.model.DLFileVersion create(
50          long fileVersionId);
51  
52      public com.liferay.portlet.documentlibrary.model.DLFileVersion remove(
53          long fileVersionId)
54          throws com.liferay.portal.SystemException,
55              com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
56  
57      public com.liferay.portlet.documentlibrary.model.DLFileVersion remove(
58          com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion)
59          throws com.liferay.portal.SystemException;
60  
61      /**
62       * @deprecated Use {@link #update(DLFileVersion, boolean merge)}.
63       */
64      public com.liferay.portlet.documentlibrary.model.DLFileVersion update(
65          com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion)
66          throws com.liferay.portal.SystemException;
67  
68      /**
69       * Add, update, or merge, the entity. This method also calls the model
70       * listeners to trigger the proper events associated with adding, deleting,
71       * or updating an entity.
72       *
73       * @param  dlFileVersion the entity to add, update, or merge
74       * @param  merge boolean value for whether to merge the entity. The default
75       *         value is false. Setting merge to true is more expensive and
76       *         should only be true when dlFileVersion is transient. See
77       *         LEP-5473 for a detailed discussion of this method.
78       * @return the entity that was added, updated, or merged
79       */
80      public com.liferay.portlet.documentlibrary.model.DLFileVersion update(
81          com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion,
82          boolean merge) throws com.liferay.portal.SystemException;
83  
84      public com.liferay.portlet.documentlibrary.model.DLFileVersion updateImpl(
85          com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion,
86          boolean merge) throws com.liferay.portal.SystemException;
87  
88      public com.liferay.portlet.documentlibrary.model.DLFileVersion findByPrimaryKey(
89          long fileVersionId)
90          throws com.liferay.portal.SystemException,
91              com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
92  
93      public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByPrimaryKey(
94          long fileVersionId) throws com.liferay.portal.SystemException;
95  
96      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_N(
97          long folderId, java.lang.String name)
98          throws com.liferay.portal.SystemException;
99  
100     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_N(
101         long folderId, java.lang.String name, int start, int end)
102         throws com.liferay.portal.SystemException;
103 
104     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_N(
105         long folderId, java.lang.String name, int start, int end,
106         com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.SystemException;
108 
109     public com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_First(
110         long folderId, java.lang.String name,
111         com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.SystemException,
113             com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
114 
115     public com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_Last(
116         long folderId, java.lang.String name,
117         com.liferay.portal.kernel.util.OrderByComparator obc)
118         throws com.liferay.portal.SystemException,
119             com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
120 
121     public com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByF_N_PrevAndNext(
122         long fileVersionId, long folderId, java.lang.String name,
123         com.liferay.portal.kernel.util.OrderByComparator obc)
124         throws com.liferay.portal.SystemException,
125             com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
126 
127     public com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_V(
128         long folderId, java.lang.String name, double version)
129         throws com.liferay.portal.SystemException,
130             com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
131 
132     public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_N_V(
133         long folderId, java.lang.String name, double version)
134         throws com.liferay.portal.SystemException;
135 
136     public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_N_V(
137         long folderId, java.lang.String name, double version,
138         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
139 
140     public java.util.List<Object> findWithDynamicQuery(
141         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
142         throws com.liferay.portal.SystemException;
143 
144     public java.util.List<Object> findWithDynamicQuery(
145         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
146         int end) throws com.liferay.portal.SystemException;
147 
148     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll()
149         throws com.liferay.portal.SystemException;
150 
151     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
152         int start, int end) throws com.liferay.portal.SystemException;
153 
154     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
155         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.SystemException;
157 
158     public void removeByF_N(long folderId, java.lang.String name)
159         throws com.liferay.portal.SystemException;
160 
161     public void removeByF_N_V(long folderId, java.lang.String name,
162         double version)
163         throws com.liferay.portal.SystemException,
164             com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
165 
166     public void removeAll() throws com.liferay.portal.SystemException;
167 
168     public int countByF_N(long folderId, java.lang.String name)
169         throws com.liferay.portal.SystemException;
170 
171     public int countByF_N_V(long folderId, java.lang.String name, double version)
172         throws com.liferay.portal.SystemException;
173 
174     public int countAll() throws com.liferay.portal.SystemException;
175 }