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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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,
122 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
123 throws com.liferay.portal.kernel.exception.SystemException;
124
125 public com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_S_First(
126 long groupId, long folderId, java.lang.String name, int status,
127 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
128 throws com.liferay.portal.kernel.exception.SystemException,
129 com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
130
131 public com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_S_Last(
132 long groupId, long folderId, java.lang.String name, int status,
133 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134 throws com.liferay.portal.kernel.exception.SystemException,
135 com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
136
137 public com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_N_S_PrevAndNext(
138 long fileVersionId, long groupId, long folderId, java.lang.String name,
139 int status,
140 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141 throws com.liferay.portal.kernel.exception.SystemException,
142 com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
143
144 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll()
145 throws com.liferay.portal.kernel.exception.SystemException;
146
147 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
148 int start, int end)
149 throws com.liferay.portal.kernel.exception.SystemException;
150
151 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
152 int start, int end,
153 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156 public void removeByG_F_N(long groupId, long folderId, java.lang.String name)
157 throws com.liferay.portal.kernel.exception.SystemException;
158
159 public void removeByG_F_N_V(long groupId, long folderId,
160 java.lang.String name, java.lang.String version)
161 throws com.liferay.portal.kernel.exception.SystemException,
162 com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
163
164 public void removeByG_F_N_S(long groupId, long folderId,
165 java.lang.String name, int status)
166 throws com.liferay.portal.kernel.exception.SystemException;
167
168 public void removeAll()
169 throws com.liferay.portal.kernel.exception.SystemException;
170
171 public int countByG_F_N(long groupId, long folderId, java.lang.String name)
172 throws com.liferay.portal.kernel.exception.SystemException;
173
174 public int countByG_F_N_V(long groupId, long folderId,
175 java.lang.String name, java.lang.String version)
176 throws com.liferay.portal.kernel.exception.SystemException;
177
178 public int countByG_F_N_S(long groupId, long folderId,
179 java.lang.String name, int status)
180 throws com.liferay.portal.kernel.exception.SystemException;
181
182 public int countAll()
183 throws com.liferay.portal.kernel.exception.SystemException;
184 }