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