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.DLFileVersion;
28  
29  /**
30   * <a href="DLFileVersionPersistence.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       DLFileVersionPersistenceImpl
39   * @see       DLFileVersionUtil
40   * @generated
41   */
42  public interface DLFileVersionPersistence extends BasePersistence<DLFileVersion> {
43      public void cacheResult(
44          com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion);
45  
46      public void cacheResult(
47          java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> dlFileVersions);
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      /**
58       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
59       */
60      public com.liferay.portlet.documentlibrary.model.DLFileVersion update(
61          com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion)
62          throws com.liferay.portal.SystemException;
63  
64      public com.liferay.portlet.documentlibrary.model.DLFileVersion updateImpl(
65          com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion,
66          boolean merge) throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.documentlibrary.model.DLFileVersion findByPrimaryKey(
69          long fileVersionId)
70          throws com.liferay.portal.SystemException,
71              com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
72  
73      public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByPrimaryKey(
74          long fileVersionId) throws com.liferay.portal.SystemException;
75  
76      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_N(
77          long folderId, java.lang.String name)
78          throws com.liferay.portal.SystemException;
79  
80      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_N(
81          long folderId, java.lang.String name, int start, int end)
82          throws com.liferay.portal.SystemException;
83  
84      public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_N(
85          long folderId, java.lang.String name, int start, int end,
86          com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.SystemException;
88  
89      public com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_First(
90          long folderId, java.lang.String name,
91          com.liferay.portal.kernel.util.OrderByComparator obc)
92          throws com.liferay.portal.SystemException,
93              com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
94  
95      public com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_Last(
96          long folderId, java.lang.String name,
97          com.liferay.portal.kernel.util.OrderByComparator obc)
98          throws com.liferay.portal.SystemException,
99              com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
100 
101     public com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByF_N_PrevAndNext(
102         long fileVersionId, long folderId, java.lang.String name,
103         com.liferay.portal.kernel.util.OrderByComparator obc)
104         throws com.liferay.portal.SystemException,
105             com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
106 
107     public com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_V(
108         long folderId, java.lang.String name, double version)
109         throws com.liferay.portal.SystemException,
110             com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
111 
112     public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_N_V(
113         long folderId, java.lang.String name, double version)
114         throws com.liferay.portal.SystemException;
115 
116     public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_N_V(
117         long folderId, java.lang.String name, double version,
118         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
119 
120     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll()
121         throws com.liferay.portal.SystemException;
122 
123     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
124         int start, int end) throws com.liferay.portal.SystemException;
125 
126     public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
127         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
128         throws com.liferay.portal.SystemException;
129 
130     public void removeByF_N(long folderId, java.lang.String name)
131         throws com.liferay.portal.SystemException;
132 
133     public void removeByF_N_V(long folderId, java.lang.String name,
134         double version)
135         throws com.liferay.portal.SystemException,
136             com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
137 
138     public void removeAll() throws com.liferay.portal.SystemException;
139 
140     public int countByF_N(long folderId, java.lang.String name)
141         throws com.liferay.portal.SystemException;
142 
143     public int countByF_N_V(long folderId, java.lang.String name, double version)
144         throws com.liferay.portal.SystemException;
145 
146     public int countAll() throws com.liferay.portal.SystemException;
147 }