1
22
23 package com.liferay.portlet.expando.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Isolation;
28 import com.liferay.portal.kernel.annotation.Propagation;
29 import com.liferay.portal.kernel.annotation.Transactional;
30
31
55 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
56 PortalException.class, SystemException.class})
57 public interface ExpandoValueLocalService {
58 public com.liferay.portlet.expando.model.ExpandoValue addExpandoValue(
59 com.liferay.portlet.expando.model.ExpandoValue expandoValue)
60 throws com.liferay.portal.SystemException;
61
62 public com.liferay.portlet.expando.model.ExpandoValue createExpandoValue(
63 long valueId);
64
65 public void deleteExpandoValue(long valueId)
66 throws com.liferay.portal.PortalException,
67 com.liferay.portal.SystemException;
68
69 public void deleteExpandoValue(
70 com.liferay.portlet.expando.model.ExpandoValue expandoValue)
71 throws com.liferay.portal.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
75 throws com.liferay.portal.SystemException;
76
77 public java.util.List<Object> dynamicQuery(
78 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79 int end) throws com.liferay.portal.SystemException;
80
81 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82 public com.liferay.portlet.expando.model.ExpandoValue getExpandoValue(
83 long valueId)
84 throws com.liferay.portal.PortalException,
85 com.liferay.portal.SystemException;
86
87 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88 public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getExpandoValues(
89 int start, int end) throws com.liferay.portal.SystemException;
90
91 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
92 public int getExpandoValuesCount()
93 throws com.liferay.portal.SystemException;
94
95 public com.liferay.portlet.expando.model.ExpandoValue updateExpandoValue(
96 com.liferay.portlet.expando.model.ExpandoValue expandoValue)
97 throws com.liferay.portal.SystemException;
98
99 public com.liferay.portlet.expando.model.ExpandoValue updateExpandoValue(
100 com.liferay.portlet.expando.model.ExpandoValue expandoValue,
101 boolean merge) throws com.liferay.portal.SystemException;
102
103 public com.liferay.portlet.expando.model.ExpandoValue addValue(
104 long classNameId, long tableId, long columnId, long classPK,
105 java.lang.String data) throws com.liferay.portal.SystemException;
106
107 public com.liferay.portlet.expando.model.ExpandoValue addValue(
108 java.lang.String className, java.lang.String tableName,
109 java.lang.String columnName, long classPK, boolean data)
110 throws com.liferay.portal.PortalException,
111 com.liferay.portal.SystemException;
112
113 public com.liferay.portlet.expando.model.ExpandoValue addValue(
114 java.lang.String className, java.lang.String tableName,
115 java.lang.String columnName, long classPK, boolean[] data)
116 throws com.liferay.portal.PortalException,
117 com.liferay.portal.SystemException;
118
119 public com.liferay.portlet.expando.model.ExpandoValue addValue(
120 java.lang.String className, java.lang.String tableName,
121 java.lang.String columnName, long classPK, java.util.Date data)
122 throws com.liferay.portal.PortalException,
123 com.liferay.portal.SystemException;
124
125 public com.liferay.portlet.expando.model.ExpandoValue addValue(
126 java.lang.String className, java.lang.String tableName,
127 java.lang.String columnName, long classPK, java.util.Date[] data)
128 throws com.liferay.portal.PortalException,
129 com.liferay.portal.SystemException;
130
131 public com.liferay.portlet.expando.model.ExpandoValue addValue(
132 java.lang.String className, java.lang.String tableName,
133 java.lang.String columnName, long classPK, double data)
134 throws com.liferay.portal.PortalException,
135 com.liferay.portal.SystemException;
136
137 public com.liferay.portlet.expando.model.ExpandoValue addValue(
138 java.lang.String className, java.lang.String tableName,
139 java.lang.String columnName, long classPK, double[] data)
140 throws com.liferay.portal.PortalException,
141 com.liferay.portal.SystemException;
142
143 public com.liferay.portlet.expando.model.ExpandoValue addValue(
144 java.lang.String className, java.lang.String tableName,
145 java.lang.String columnName, long classPK, float data)
146 throws com.liferay.portal.PortalException,
147 com.liferay.portal.SystemException;
148
149 public com.liferay.portlet.expando.model.ExpandoValue addValue(
150 java.lang.String className, java.lang.String tableName,
151 java.lang.String columnName, long classPK, float[] data)
152 throws com.liferay.portal.PortalException,
153 com.liferay.portal.SystemException;
154
155 public com.liferay.portlet.expando.model.ExpandoValue addValue(
156 java.lang.String className, java.lang.String tableName,
157 java.lang.String columnName, long classPK, int data)
158 throws com.liferay.portal.PortalException,
159 com.liferay.portal.SystemException;
160
161 public com.liferay.portlet.expando.model.ExpandoValue addValue(
162 java.lang.String className, java.lang.String tableName,
163 java.lang.String columnName, long classPK, int[] data)
164 throws com.liferay.portal.PortalException,
165 com.liferay.portal.SystemException;
166
167 public com.liferay.portlet.expando.model.ExpandoValue addValue(
168 java.lang.String className, java.lang.String tableName,
169 java.lang.String columnName, long classPK, long data)
170 throws com.liferay.portal.PortalException,
171 com.liferay.portal.SystemException;
172
173 public com.liferay.portlet.expando.model.ExpandoValue addValue(
174 java.lang.String className, java.lang.String tableName,
175 java.lang.String columnName, long classPK, long[] data)
176 throws com.liferay.portal.PortalException,
177 com.liferay.portal.SystemException;
178
179 public com.liferay.portlet.expando.model.ExpandoValue addValue(
180 java.lang.String className, java.lang.String tableName,
181 java.lang.String columnName, long classPK, short data)
182 throws com.liferay.portal.PortalException,
183 com.liferay.portal.SystemException;
184
185 public com.liferay.portlet.expando.model.ExpandoValue addValue(
186 java.lang.String className, java.lang.String tableName,
187 java.lang.String columnName, long classPK, short[] data)
188 throws com.liferay.portal.PortalException,
189 com.liferay.portal.SystemException;
190
191 public com.liferay.portlet.expando.model.ExpandoValue addValue(
192 java.lang.String className, java.lang.String tableName,
193 java.lang.String columnName, long classPK, java.lang.String data)
194 throws com.liferay.portal.PortalException,
195 com.liferay.portal.SystemException;
196
197 public com.liferay.portlet.expando.model.ExpandoValue addValue(
198 java.lang.String className, java.lang.String tableName,
199 java.lang.String columnName, long classPK, java.lang.String[] data)
200 throws com.liferay.portal.PortalException,
201 com.liferay.portal.SystemException;
202
203 public void addValues(long classNameId, long tableId,
204 java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> columns,
205 long classPK, java.util.Map<String, String> data)
206 throws com.liferay.portal.SystemException;
207
208 public void deleteColumnValues(long columnId)
209 throws com.liferay.portal.SystemException;
210
211 public void deleteRowValues(long rowId)
212 throws com.liferay.portal.SystemException;
213
214 public void deleteTableValues(long tableId)
215 throws com.liferay.portal.SystemException;
216
217 public void deleteValue(long valueId)
218 throws com.liferay.portal.PortalException,
219 com.liferay.portal.SystemException;
220
221 public void deleteValue(long columnId, long rowId)
222 throws com.liferay.portal.PortalException,
223 com.liferay.portal.SystemException;
224
225 public void deleteValue(long classNameId, java.lang.String tableName,
226 java.lang.String columnName, long classPK)
227 throws com.liferay.portal.PortalException,
228 com.liferay.portal.SystemException;
229
230 public void deleteValue(java.lang.String className,
231 java.lang.String tableName, java.lang.String columnName, long classPK)
232 throws com.liferay.portal.PortalException,
233 com.liferay.portal.SystemException;
234
235 public void deleteValues(long classNameId, long classPK)
236 throws com.liferay.portal.SystemException;
237
238 public void deleteValues(java.lang.String className, long classPK)
239 throws com.liferay.portal.SystemException;
240
241 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
242 public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
243 long columnId, int start, int end)
244 throws com.liferay.portal.SystemException;
245
246 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247 public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
248 long classNameId, java.lang.String tableName,
249 java.lang.String columnName, int start, int end)
250 throws com.liferay.portal.SystemException;
251
252 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253 public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
254 long classNameId, java.lang.String tableName,
255 java.lang.String columnName, java.lang.String data, int start, int end)
256 throws com.liferay.portal.SystemException;
257
258 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
259 public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
260 java.lang.String className, java.lang.String tableName,
261 java.lang.String columnName, int start, int end)
262 throws com.liferay.portal.SystemException;
263
264 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
265 public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
266 java.lang.String className, java.lang.String tableName,
267 java.lang.String columnName, java.lang.String data, int start, int end)
268 throws com.liferay.portal.SystemException;
269
270 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
271 public int getColumnValuesCount(long columnId)
272 throws com.liferay.portal.SystemException;
273
274 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
275 public int getColumnValuesCount(long classNameId,
276 java.lang.String tableName, java.lang.String columnName)
277 throws com.liferay.portal.SystemException;
278
279 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
280 public int getColumnValuesCount(long classNameId,
281 java.lang.String tableName, java.lang.String columnName,
282 java.lang.String data) throws com.liferay.portal.SystemException;
283
284 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285 public int getColumnValuesCount(java.lang.String className,
286 java.lang.String tableName, java.lang.String columnName)
287 throws com.liferay.portal.SystemException;
288
289 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290 public int getColumnValuesCount(java.lang.String className,
291 java.lang.String tableName, java.lang.String columnName,
292 java.lang.String data) throws com.liferay.portal.SystemException;
293
294 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
295 public boolean getData(java.lang.String className,
296 java.lang.String tableName, java.lang.String columnName, long classPK,
297 boolean defaultData)
298 throws com.liferay.portal.PortalException,
299 com.liferay.portal.SystemException;
300
301 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302 public boolean[] getData(java.lang.String className,
303 java.lang.String tableName, java.lang.String columnName, long classPK,
304 boolean[] defaultData)
305 throws com.liferay.portal.PortalException,
306 com.liferay.portal.SystemException;
307
308 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309 public java.util.Date getData(java.lang.String className,
310 java.lang.String tableName, java.lang.String columnName, long classPK,
311 java.util.Date defaultData)
312 throws com.liferay.portal.PortalException,
313 com.liferay.portal.SystemException;
314
315 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
316 public java.util.Date[] getData(java.lang.String className,
317 java.lang.String tableName, java.lang.String columnName, long classPK,
318 java.util.Date[] defaultData)
319 throws com.liferay.portal.PortalException,
320 com.liferay.portal.SystemException;
321
322 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
323 public double getData(java.lang.String className,
324 java.lang.String tableName, java.lang.String columnName, long classPK,
325 double defaultData)
326 throws com.liferay.portal.PortalException,
327 com.liferay.portal.SystemException;
328
329 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
330 public double[] getData(java.lang.String className,
331 java.lang.String tableName, java.lang.String columnName, long classPK,
332 double[] defaultData)
333 throws com.liferay.portal.PortalException,
334 com.liferay.portal.SystemException;
335
336 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
337 public float getData(java.lang.String className,
338 java.lang.String tableName, java.lang.String columnName, long classPK,
339 float defaultData)
340 throws com.liferay.portal.PortalException,
341 com.liferay.portal.SystemException;
342
343 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
344 public float[] getData(java.lang.String className,
345 java.lang.String tableName, java.lang.String columnName, long classPK,
346 float[] defaultData)
347 throws com.liferay.portal.PortalException,
348 com.liferay.portal.SystemException;
349
350 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
351 public int getData(java.lang.String className, java.lang.String tableName,
352 java.lang.String columnName, long classPK, int defaultData)
353 throws com.liferay.portal.PortalException,
354 com.liferay.portal.SystemException;
355
356 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
357 public int[] getData(java.lang.String className,
358 java.lang.String tableName, java.lang.String columnName, long classPK,
359 int[] defaultData)
360 throws com.liferay.portal.PortalException,
361 com.liferay.portal.SystemException;
362
363 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
364 public long getData(java.lang.String className, java.lang.String tableName,
365 java.lang.String columnName, long classPK, long defaultData)
366 throws com.liferay.portal.PortalException,
367 com.liferay.portal.SystemException;
368
369 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
370 public long[] getData(java.lang.String className,
371 java.lang.String tableName, java.lang.String columnName, long classPK,
372 long[] defaultData)
373 throws com.liferay.portal.PortalException,
374 com.liferay.portal.SystemException;
375
376 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
377 public short getData(java.lang.String className,
378 java.lang.String tableName, java.lang.String columnName, long classPK,
379 short defaultData)
380 throws com.liferay.portal.PortalException,
381 com.liferay.portal.SystemException;
382
383 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
384 public short[] getData(java.lang.String className,
385 java.lang.String tableName, java.lang.String columnName, long classPK,
386 short[] defaultData)
387 throws com.liferay.portal.PortalException,
388 com.liferay.portal.SystemException;
389
390 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
391 public java.lang.String getData(java.lang.String className,
392 java.lang.String tableName, java.lang.String columnName, long classPK,
393 java.lang.String defaultData)
394 throws com.liferay.portal.PortalException,
395 com.liferay.portal.SystemException;
396
397 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
398 public java.lang.String[] getData(java.lang.String className,
399 java.lang.String tableName, java.lang.String columnName, long classPK,
400 java.lang.String[] defaultData)
401 throws com.liferay.portal.PortalException,
402 com.liferay.portal.SystemException;
403
404 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
405 public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getDefaultTableColumnValues(
406 long classNameId, java.lang.String columnName, int start, int end)
407 throws com.liferay.portal.SystemException;
408
409 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
410 public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getDefaultTableColumnValues(
411 java.lang.String className, java.lang.String columnName, int start,
412 int end) throws com.liferay.portal.SystemException;
413
414 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
415 public int getDefaultTableColumnValuesCount(long classNameId,
416 java.lang.String columnName) throws com.liferay.portal.SystemException;
417
418 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
419 public int getDefaultTableColumnValuesCount(java.lang.String className,
420 java.lang.String columnName) throws com.liferay.portal.SystemException;
421
422 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
423 public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getRowValues(
424 long rowId) throws com.liferay.portal.SystemException;
425
426 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
427 public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getRowValues(
428 long rowId, int start, int end)
429 throws com.liferay.portal.SystemException;
430
431 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
432 public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getRowValues(
433 long classNameId, java.lang.String tableName, long classPK, int start,
434 int end) throws com.liferay.portal.SystemException;
435
436 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
437 public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getRowValues(
438 java.lang.String className, java.lang.String tableName, long classPK,
439 int start, int end) throws com.liferay.portal.SystemException;
440
441 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
442 public int getRowValuesCount(long rowId)
443 throws com.liferay.portal.SystemException;
444
445 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
446 public int getRowValuesCount(long classNameId, java.lang.String tableName,
447 long classPK) throws com.liferay.portal.SystemException;
448
449 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
450 public int getRowValuesCount(java.lang.String className,
451 java.lang.String tableName, long classPK)
452 throws com.liferay.portal.SystemException;
453
454 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
455 public com.liferay.portlet.expando.model.ExpandoValue getValue(long valueId)
456 throws com.liferay.portal.PortalException,
457 com.liferay.portal.SystemException;
458
459 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
460 public com.liferay.portlet.expando.model.ExpandoValue getValue(
461 long columnId, long rowId)
462 throws com.liferay.portal.PortalException,
463 com.liferay.portal.SystemException;
464
465 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
466 public com.liferay.portlet.expando.model.ExpandoValue getValue(
467 long tableId, long columnId, long classPK)
468 throws com.liferay.portal.SystemException;
469
470 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
471 public com.liferay.portlet.expando.model.ExpandoValue getValue(
472 long classNameId, java.lang.String tableName,
473 java.lang.String columnName, long classPK)
474 throws com.liferay.portal.SystemException;
475
476 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
477 public com.liferay.portlet.expando.model.ExpandoValue getValue(
478 java.lang.String className, java.lang.String tableName,
479 java.lang.String columnName, long classPK)
480 throws com.liferay.portal.SystemException;
481 }