1
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
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.kernel.exception.SystemException,
47 com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
48
49 public com.liferay.portlet.documentlibrary.model.DLFileVersion updateImpl(
50 com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion,
51 boolean merge)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.documentlibrary.model.DLFileVersion findByPrimaryKey(
55 long fileVersionId)
56 throws com.liferay.portal.kernel.exception.SystemException,
57 com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
58
59 public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByPrimaryKey(
60 long fileVersionId)
61 throws com.liferay.portal.kernel.exception.SystemException;
62
63 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N(
64 long groupId, long folderId, java.lang.String name)
65 throws com.liferay.portal.kernel.exception.SystemException;
66
67 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N(
68 long groupId, long folderId, java.lang.String name, int start, int end)
69 throws com.liferay.portal.kernel.exception.SystemException;
70
71 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N(
72 long groupId, long folderId, java.lang.String name, int start, int end,
73 com.liferay.portal.kernel.util.OrderByComparator obc)
74 throws com.liferay.portal.kernel.exception.SystemException;
75
76 public com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_First(
77 long groupId, long folderId, java.lang.String name,
78 com.liferay.portal.kernel.util.OrderByComparator obc)
79 throws com.liferay.portal.kernel.exception.SystemException,
80 com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
81
82 public com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_Last(
83 long groupId, long folderId, java.lang.String name,
84 com.liferay.portal.kernel.util.OrderByComparator obc)
85 throws com.liferay.portal.kernel.exception.SystemException,
86 com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
87
88 public com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_N_PrevAndNext(
89 long fileVersionId, long groupId, long folderId, java.lang.String name,
90 com.liferay.portal.kernel.util.OrderByComparator obc)
91 throws com.liferay.portal.kernel.exception.SystemException,
92 com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
93
94 public com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_V(
95 long groupId, long folderId, java.lang.String name,
96 java.lang.String version)
97 throws com.liferay.portal.kernel.exception.SystemException,
98 com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
99
100 public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_N_V(
101 long groupId, long folderId, java.lang.String name,
102 java.lang.String version)
103 throws com.liferay.portal.kernel.exception.SystemException;
104
105 public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_N_V(
106 long groupId, long folderId, java.lang.String name,
107 java.lang.String version, boolean retrieveFromCache)
108 throws com.liferay.portal.kernel.exception.SystemException;
109
110 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N_S(
111 long groupId, long folderId, java.lang.String name, int status)
112 throws com.liferay.portal.kernel.exception.SystemException;
113
114 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N_S(
115 long groupId, long folderId, java.lang.String name, int status,
116 int start, int end)
117 throws com.liferay.portal.kernel.exception.SystemException;
118
119 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N_S(
120 long groupId, long folderId, java.lang.String name, int status,
121 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
122 throws com.liferay.portal.kernel.exception.SystemException;
123
124 public com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_S_First(
125 long groupId, long folderId, java.lang.String name, int status,
126 com.liferay.portal.kernel.util.OrderByComparator obc)
127 throws com.liferay.portal.kernel.exception.SystemException,
128 com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
129
130 public com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_S_Last(
131 long groupId, long folderId, java.lang.String name, int status,
132 com.liferay.portal.kernel.util.OrderByComparator obc)
133 throws com.liferay.portal.kernel.exception.SystemException,
134 com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
135
136 public com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_N_S_PrevAndNext(
137 long fileVersionId, long groupId, long folderId, java.lang.String name,
138 int status, com.liferay.portal.kernel.util.OrderByComparator obc)
139 throws com.liferay.portal.kernel.exception.SystemException,
140 com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
141
142 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll()
143 throws com.liferay.portal.kernel.exception.SystemException;
144
145 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
146 int start, int end)
147 throws com.liferay.portal.kernel.exception.SystemException;
148
149 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
150 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
151 throws com.liferay.portal.kernel.exception.SystemException;
152
153 public void removeByG_F_N(long groupId, long folderId, java.lang.String name)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156 public void removeByG_F_N_V(long groupId, long folderId,
157 java.lang.String name, java.lang.String version)
158 throws com.liferay.portal.kernel.exception.SystemException,
159 com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
160
161 public void removeByG_F_N_S(long groupId, long folderId,
162 java.lang.String name, int status)
163 throws com.liferay.portal.kernel.exception.SystemException;
164
165 public void removeAll()
166 throws com.liferay.portal.kernel.exception.SystemException;
167
168 public int countByG_F_N(long groupId, long folderId, java.lang.String name)
169 throws com.liferay.portal.kernel.exception.SystemException;
170
171 public int countByG_F_N_V(long groupId, long folderId,
172 java.lang.String name, java.lang.String version)
173 throws com.liferay.portal.kernel.exception.SystemException;
174
175 public int countByG_F_N_S(long groupId, long folderId,
176 java.lang.String name, int status)
177 throws com.liferay.portal.kernel.exception.SystemException;
178
179 public int countAll()
180 throws com.liferay.portal.kernel.exception.SystemException;
181 }