1
22
23 package com.liferay.portlet.documentlibrary.service.persistence;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Propagation;
28 import com.liferay.portal.kernel.annotation.Transactional;
29
30
36 @Transactional(rollbackFor = {
37 PortalException.class, SystemException.class})
38 public interface DLFileVersionPersistence {
39 public com.liferay.portlet.documentlibrary.model.DLFileVersion create(
40 long fileVersionId);
41
42 public com.liferay.portlet.documentlibrary.model.DLFileVersion remove(
43 long fileVersionId)
44 throws com.liferay.portal.SystemException,
45 com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
46
47 public com.liferay.portlet.documentlibrary.model.DLFileVersion remove(
48 com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion)
49 throws com.liferay.portal.SystemException;
50
51
54 public com.liferay.portlet.documentlibrary.model.DLFileVersion update(
55 com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion)
56 throws com.liferay.portal.SystemException;
57
58
71 public com.liferay.portlet.documentlibrary.model.DLFileVersion update(
72 com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion,
73 boolean merge) throws com.liferay.portal.SystemException;
74
75 public com.liferay.portlet.documentlibrary.model.DLFileVersion updateImpl(
76 com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion,
77 boolean merge) throws com.liferay.portal.SystemException;
78
79 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80 public com.liferay.portlet.documentlibrary.model.DLFileVersion findByPrimaryKey(
81 long fileVersionId)
82 throws com.liferay.portal.SystemException,
83 com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
84
85 public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByPrimaryKey(
86 long fileVersionId) throws com.liferay.portal.SystemException;
87
88 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_N(
90 long folderId, java.lang.String name)
91 throws com.liferay.portal.SystemException;
92
93 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
94 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_N(
95 long folderId, java.lang.String name, int start, int end)
96 throws com.liferay.portal.SystemException;
97
98 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
99 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_N(
100 long folderId, java.lang.String name, int start, int end,
101 com.liferay.portal.kernel.util.OrderByComparator obc)
102 throws com.liferay.portal.SystemException;
103
104 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
105 public com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_First(
106 long folderId, java.lang.String name,
107 com.liferay.portal.kernel.util.OrderByComparator obc)
108 throws com.liferay.portal.SystemException,
109 com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
110
111 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112 public com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_Last(
113 long folderId, java.lang.String name,
114 com.liferay.portal.kernel.util.OrderByComparator obc)
115 throws com.liferay.portal.SystemException,
116 com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
117
118 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
119 public com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByF_N_PrevAndNext(
120 long fileVersionId, long folderId, java.lang.String name,
121 com.liferay.portal.kernel.util.OrderByComparator obc)
122 throws com.liferay.portal.SystemException,
123 com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
124
125 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126 public com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_V(
127 long folderId, java.lang.String name, double version)
128 throws com.liferay.portal.SystemException,
129 com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
130
131 public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_N_V(
132 long folderId, java.lang.String name, double version)
133 throws com.liferay.portal.SystemException;
134
135 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136 public java.util.List<Object> findWithDynamicQuery(
137 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
138 throws com.liferay.portal.SystemException;
139
140 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
141 public java.util.List<Object> findWithDynamicQuery(
142 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
143 int end) throws com.liferay.portal.SystemException;
144
145 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll()
147 throws com.liferay.portal.SystemException;
148
149 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
151 int start, int end) throws com.liferay.portal.SystemException;
152
153 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
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 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public int countByF_N(long folderId, java.lang.String name)
170 throws com.liferay.portal.SystemException;
171
172 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173 public int countByF_N_V(long folderId, java.lang.String name, double version)
174 throws com.liferay.portal.SystemException;
175
176 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177 public int countAll() throws com.liferay.portal.SystemException;
178
179 public void registerListener(
180 com.liferay.portal.model.ModelListener listener);
181
182 public void unregisterListener(
183 com.liferay.portal.model.ModelListener listener);
184 }