001
014
015 package com.liferay.portlet.expando.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface ExpandoRowLocalService {
043
050 public com.liferay.portlet.expando.model.ExpandoRow addExpandoRow(
051 com.liferay.portlet.expando.model.ExpandoRow expandoRow)
052 throws com.liferay.portal.kernel.exception.SystemException;
053
054
060 public com.liferay.portlet.expando.model.ExpandoRow createExpandoRow(
061 long rowId);
062
063
070 public void deleteExpandoRow(long rowId)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException;
073
074
080 public void deleteExpandoRow(
081 com.liferay.portlet.expando.model.ExpandoRow expandoRow)
082 throws com.liferay.portal.kernel.exception.SystemException;
083
084
091 @SuppressWarnings("rawtypes")
092 public java.util.List dynamicQuery(
093 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096
109 @SuppressWarnings("rawtypes")
110 public java.util.List dynamicQuery(
111 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112 int end) throws com.liferay.portal.kernel.exception.SystemException;
113
114
128 @SuppressWarnings("rawtypes")
129 public java.util.List dynamicQuery(
130 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
131 int end,
132 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135
142 public long dynamicQueryCount(
143 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portlet.expando.model.ExpandoRow getExpandoRow(
156 long rowId)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException;
159
160
172 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173 public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getExpandoRows(
174 int start, int end)
175 throws com.liferay.portal.kernel.exception.SystemException;
176
177
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public int getExpandoRowsCount()
185 throws com.liferay.portal.kernel.exception.SystemException;
186
187
194 public com.liferay.portlet.expando.model.ExpandoRow updateExpandoRow(
195 com.liferay.portlet.expando.model.ExpandoRow expandoRow)
196 throws com.liferay.portal.kernel.exception.SystemException;
197
198
206 public com.liferay.portlet.expando.model.ExpandoRow updateExpandoRow(
207 com.liferay.portlet.expando.model.ExpandoRow expandoRow, boolean merge)
208 throws com.liferay.portal.kernel.exception.SystemException;
209
210 public com.liferay.portlet.expando.model.ExpandoRow addRow(long tableId,
211 long classPK)
212 throws com.liferay.portal.kernel.exception.PortalException,
213 com.liferay.portal.kernel.exception.SystemException;
214
215 public void deleteRow(long rowId)
216 throws com.liferay.portal.kernel.exception.PortalException,
217 com.liferay.portal.kernel.exception.SystemException;
218
219 public void deleteRow(long tableId, long classPK)
220 throws com.liferay.portal.kernel.exception.PortalException,
221 com.liferay.portal.kernel.exception.SystemException;
222
223 public void deleteRow(long companyId, long classNameId,
224 java.lang.String tableName, long classPK)
225 throws com.liferay.portal.kernel.exception.PortalException,
226 com.liferay.portal.kernel.exception.SystemException;
227
228 public void deleteRow(long companyId, java.lang.String className,
229 java.lang.String tableName, long classPK)
230 throws com.liferay.portal.kernel.exception.PortalException,
231 com.liferay.portal.kernel.exception.SystemException;
232
233 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
234 public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getDefaultTableRows(
235 long companyId, long classNameId, int start, int end)
236 throws com.liferay.portal.kernel.exception.SystemException;
237
238 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239 public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getDefaultTableRows(
240 long companyId, java.lang.String className, int start, int end)
241 throws com.liferay.portal.kernel.exception.SystemException;
242
243 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
244 public int getDefaultTableRowsCount(long companyId, long classNameId)
245 throws com.liferay.portal.kernel.exception.SystemException;
246
247 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248 public int getDefaultTableRowsCount(long companyId,
249 java.lang.String className)
250 throws com.liferay.portal.kernel.exception.SystemException;
251
252 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253 public com.liferay.portlet.expando.model.ExpandoRow getRow(long rowId)
254 throws com.liferay.portal.kernel.exception.PortalException,
255 com.liferay.portal.kernel.exception.SystemException;
256
257 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
258 public com.liferay.portlet.expando.model.ExpandoRow getRow(long tableId,
259 long classPK)
260 throws com.liferay.portal.kernel.exception.PortalException,
261 com.liferay.portal.kernel.exception.SystemException;
262
263 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264 public com.liferay.portlet.expando.model.ExpandoRow getRow(long companyId,
265 long classNameId, java.lang.String tableName, long classPK)
266 throws com.liferay.portal.kernel.exception.SystemException;
267
268 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
269 public com.liferay.portlet.expando.model.ExpandoRow getRow(long companyId,
270 java.lang.String className, java.lang.String tableName, long classPK)
271 throws com.liferay.portal.kernel.exception.SystemException;
272
273 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
274 public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
275 long tableId, int start, int end)
276 throws com.liferay.portal.kernel.exception.SystemException;
277
278 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279 public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
280 long companyId, long classNameId, java.lang.String tableName,
281 int start, int end)
282 throws com.liferay.portal.kernel.exception.SystemException;
283
284 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285 public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
286 long companyId, java.lang.String className, java.lang.String tableName,
287 int start, int end)
288 throws com.liferay.portal.kernel.exception.SystemException;
289
290
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
295 java.lang.String className, java.lang.String tableName, int start,
296 int end) throws com.liferay.portal.kernel.exception.SystemException;
297
298 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299 public int getRowsCount(long tableId)
300 throws com.liferay.portal.kernel.exception.SystemException;
301
302 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303 public int getRowsCount(long companyId, long classNameId,
304 java.lang.String tableName)
305 throws com.liferay.portal.kernel.exception.SystemException;
306
307 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
308 public int getRowsCount(long companyId, java.lang.String className,
309 java.lang.String tableName)
310 throws com.liferay.portal.kernel.exception.SystemException;
311
312
315 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
316 public int getRowsCount(java.lang.String className,
317 java.lang.String tableName)
318 throws com.liferay.portal.kernel.exception.SystemException;
319 }