1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.expando.service;
21  
22  import com.liferay.portal.PortalException;
23  import com.liferay.portal.SystemException;
24  import com.liferay.portal.kernel.annotation.Isolation;
25  import com.liferay.portal.kernel.annotation.Propagation;
26  import com.liferay.portal.kernel.annotation.Transactional;
27  
28  /**
29   * <a href="ExpandoValueLocalService.java.html"><b><i>View Source</i></b></a>
30   *
31   * <p>
32   * ServiceBuilder generated this class. Modifications in this class will be
33   * overwritten the next time is generated.
34   * </p>
35   *
36   * <p>
37   * This interface defines the service. The default implementation is
38   * <code>com.liferay.portlet.expando.service.impl.ExpandoValueLocalServiceImpl</code>.
39   * Modify methods in that class and rerun ServiceBuilder to populate this class
40   * and all other generated classes.
41   * </p>
42   *
43   * <p>
44   * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
45   * </p>
46   *
47   * @author Brian Wing Shun Chan
48   *
49   * @see com.liferay.portlet.expando.service.ExpandoValueLocalServiceUtil
50   *
51   */
52  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
53      PortalException.class, SystemException.class})
54  public interface ExpandoValueLocalService {
55      public com.liferay.portlet.expando.model.ExpandoValue addExpandoValue(
56          com.liferay.portlet.expando.model.ExpandoValue expandoValue)
57          throws com.liferay.portal.SystemException;
58  
59      public com.liferay.portlet.expando.model.ExpandoValue createExpandoValue(
60          long valueId);
61  
62      public void deleteExpandoValue(long valueId)
63          throws com.liferay.portal.SystemException,
64              com.liferay.portal.PortalException;
65  
66      public void deleteExpandoValue(
67          com.liferay.portlet.expando.model.ExpandoValue expandoValue)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List<Object> dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
72          throws com.liferay.portal.SystemException;
73  
74      public java.util.List<Object> dynamicQuery(
75          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76          int end) throws com.liferay.portal.SystemException;
77  
78      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
79      public com.liferay.portlet.expando.model.ExpandoValue getExpandoValue(
80          long valueId)
81          throws com.liferay.portal.SystemException,
82              com.liferay.portal.PortalException;
83  
84      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85      public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getExpandoValues(
86          int start, int end) throws com.liferay.portal.SystemException;
87  
88      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89      public int getExpandoValuesCount()
90          throws com.liferay.portal.SystemException;
91  
92      public com.liferay.portlet.expando.model.ExpandoValue updateExpandoValue(
93          com.liferay.portlet.expando.model.ExpandoValue expandoValue)
94          throws com.liferay.portal.SystemException;
95  
96      public com.liferay.portlet.expando.model.ExpandoValue updateExpandoValue(
97          com.liferay.portlet.expando.model.ExpandoValue expandoValue,
98          boolean merge) throws com.liferay.portal.SystemException;
99  
100     public com.liferay.portlet.expando.model.ExpandoValue addValue(
101         long classNameId, long tableId, long columnId, long classPK,
102         java.lang.String data) throws com.liferay.portal.SystemException;
103 
104     public com.liferay.portlet.expando.model.ExpandoValue addValue(
105         java.lang.String className, java.lang.String tableName,
106         java.lang.String columnName, long classPK, boolean data)
107         throws com.liferay.portal.PortalException,
108             com.liferay.portal.SystemException;
109 
110     public com.liferay.portlet.expando.model.ExpandoValue addValue(
111         java.lang.String className, java.lang.String tableName,
112         java.lang.String columnName, long classPK, boolean[] data)
113         throws com.liferay.portal.PortalException,
114             com.liferay.portal.SystemException;
115 
116     public com.liferay.portlet.expando.model.ExpandoValue addValue(
117         java.lang.String className, java.lang.String tableName,
118         java.lang.String columnName, long classPK, java.util.Date data)
119         throws com.liferay.portal.PortalException,
120             com.liferay.portal.SystemException;
121 
122     public com.liferay.portlet.expando.model.ExpandoValue addValue(
123         java.lang.String className, java.lang.String tableName,
124         java.lang.String columnName, long classPK, java.util.Date[] data)
125         throws com.liferay.portal.PortalException,
126             com.liferay.portal.SystemException;
127 
128     public com.liferay.portlet.expando.model.ExpandoValue addValue(
129         java.lang.String className, java.lang.String tableName,
130         java.lang.String columnName, long classPK, double data)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException;
133 
134     public com.liferay.portlet.expando.model.ExpandoValue addValue(
135         java.lang.String className, java.lang.String tableName,
136         java.lang.String columnName, long classPK, double[] data)
137         throws com.liferay.portal.PortalException,
138             com.liferay.portal.SystemException;
139 
140     public com.liferay.portlet.expando.model.ExpandoValue addValue(
141         java.lang.String className, java.lang.String tableName,
142         java.lang.String columnName, long classPK, float data)
143         throws com.liferay.portal.PortalException,
144             com.liferay.portal.SystemException;
145 
146     public com.liferay.portlet.expando.model.ExpandoValue addValue(
147         java.lang.String className, java.lang.String tableName,
148         java.lang.String columnName, long classPK, float[] data)
149         throws com.liferay.portal.PortalException,
150             com.liferay.portal.SystemException;
151 
152     public com.liferay.portlet.expando.model.ExpandoValue addValue(
153         java.lang.String className, java.lang.String tableName,
154         java.lang.String columnName, long classPK, int data)
155         throws com.liferay.portal.PortalException,
156             com.liferay.portal.SystemException;
157 
158     public com.liferay.portlet.expando.model.ExpandoValue addValue(
159         java.lang.String className, java.lang.String tableName,
160         java.lang.String columnName, long classPK, int[] data)
161         throws com.liferay.portal.PortalException,
162             com.liferay.portal.SystemException;
163 
164     public com.liferay.portlet.expando.model.ExpandoValue addValue(
165         java.lang.String className, java.lang.String tableName,
166         java.lang.String columnName, long classPK, long data)
167         throws com.liferay.portal.PortalException,
168             com.liferay.portal.SystemException;
169 
170     public com.liferay.portlet.expando.model.ExpandoValue addValue(
171         java.lang.String className, java.lang.String tableName,
172         java.lang.String columnName, long classPK, long[] data)
173         throws com.liferay.portal.PortalException,
174             com.liferay.portal.SystemException;
175 
176     public com.liferay.portlet.expando.model.ExpandoValue addValue(
177         java.lang.String className, java.lang.String tableName,
178         java.lang.String columnName, long classPK, java.lang.Object data)
179         throws com.liferay.portal.PortalException,
180             com.liferay.portal.SystemException;
181 
182     public com.liferay.portlet.expando.model.ExpandoValue addValue(
183         java.lang.String className, java.lang.String tableName,
184         java.lang.String columnName, long classPK, short data)
185         throws com.liferay.portal.PortalException,
186             com.liferay.portal.SystemException;
187 
188     public com.liferay.portlet.expando.model.ExpandoValue addValue(
189         java.lang.String className, java.lang.String tableName,
190         java.lang.String columnName, long classPK, short[] data)
191         throws com.liferay.portal.PortalException,
192             com.liferay.portal.SystemException;
193 
194     public com.liferay.portlet.expando.model.ExpandoValue addValue(
195         java.lang.String className, java.lang.String tableName,
196         java.lang.String columnName, long classPK, java.lang.String data)
197         throws com.liferay.portal.PortalException,
198             com.liferay.portal.SystemException;
199 
200     public com.liferay.portlet.expando.model.ExpandoValue addValue(
201         java.lang.String className, java.lang.String tableName,
202         java.lang.String columnName, long classPK, java.lang.String[] data)
203         throws com.liferay.portal.PortalException,
204             com.liferay.portal.SystemException;
205 
206     public void addValues(long classNameId, long tableId,
207         java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> columns,
208         long classPK, java.util.Map<String, String> data)
209         throws com.liferay.portal.SystemException;
210 
211     public void deleteColumnValues(long columnId)
212         throws com.liferay.portal.SystemException;
213 
214     public void deleteRowValues(long rowId)
215         throws com.liferay.portal.SystemException;
216 
217     public void deleteTableValues(long tableId)
218         throws com.liferay.portal.SystemException;
219 
220     public void deleteValue(long valueId)
221         throws com.liferay.portal.PortalException,
222             com.liferay.portal.SystemException;
223 
224     public void deleteValue(long columnId, long rowId)
225         throws com.liferay.portal.PortalException,
226             com.liferay.portal.SystemException;
227 
228     public void deleteValue(long classNameId, java.lang.String tableName,
229         java.lang.String columnName, long classPK)
230         throws com.liferay.portal.PortalException,
231             com.liferay.portal.SystemException;
232 
233     public void deleteValue(java.lang.String className,
234         java.lang.String tableName, java.lang.String columnName, long classPK)
235         throws com.liferay.portal.PortalException,
236             com.liferay.portal.SystemException;
237 
238     public void deleteValues(long classNameId, long classPK)
239         throws com.liferay.portal.SystemException;
240 
241     public void deleteValues(java.lang.String className, long classPK)
242         throws com.liferay.portal.SystemException;
243 
244     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
246         long columnId, int start, int end)
247         throws com.liferay.portal.SystemException;
248 
249     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
250     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
251         long classNameId, java.lang.String tableName,
252         java.lang.String columnName, int start, int end)
253         throws com.liferay.portal.SystemException;
254 
255     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
256     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
257         long classNameId, java.lang.String tableName,
258         java.lang.String columnName, java.lang.String data, int start, int end)
259         throws com.liferay.portal.SystemException;
260 
261     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
262     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
263         java.lang.String className, java.lang.String tableName,
264         java.lang.String columnName, int start, int end)
265         throws com.liferay.portal.SystemException;
266 
267     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
268     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
269         java.lang.String className, java.lang.String tableName,
270         java.lang.String columnName, java.lang.String data, int start, int end)
271         throws com.liferay.portal.SystemException;
272 
273     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
274     public int getColumnValuesCount(long columnId)
275         throws com.liferay.portal.SystemException;
276 
277     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
278     public int getColumnValuesCount(long classNameId,
279         java.lang.String tableName, java.lang.String columnName)
280         throws com.liferay.portal.SystemException;
281 
282     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283     public int getColumnValuesCount(long classNameId,
284         java.lang.String tableName, java.lang.String columnName,
285         java.lang.String data) throws com.liferay.portal.SystemException;
286 
287     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
288     public int getColumnValuesCount(java.lang.String className,
289         java.lang.String tableName, java.lang.String columnName)
290         throws com.liferay.portal.SystemException;
291 
292     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
293     public int getColumnValuesCount(java.lang.String className,
294         java.lang.String tableName, java.lang.String columnName,
295         java.lang.String data) throws com.liferay.portal.SystemException;
296 
297     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298     public java.io.Serializable getData(java.lang.String className,
299         java.lang.String tableName, java.lang.String columnName, long classPK)
300         throws com.liferay.portal.PortalException,
301             com.liferay.portal.SystemException;
302 
303     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
304     public boolean getData(java.lang.String className,
305         java.lang.String tableName, java.lang.String columnName, long classPK,
306         boolean defaultData)
307         throws com.liferay.portal.PortalException,
308             com.liferay.portal.SystemException;
309 
310     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311     public boolean[] getData(java.lang.String className,
312         java.lang.String tableName, java.lang.String columnName, long classPK,
313         boolean[] defaultData)
314         throws com.liferay.portal.PortalException,
315             com.liferay.portal.SystemException;
316 
317     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318     public java.util.Date getData(java.lang.String className,
319         java.lang.String tableName, java.lang.String columnName, long classPK,
320         java.util.Date defaultData)
321         throws com.liferay.portal.PortalException,
322             com.liferay.portal.SystemException;
323 
324     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
325     public java.util.Date[] getData(java.lang.String className,
326         java.lang.String tableName, java.lang.String columnName, long classPK,
327         java.util.Date[] defaultData)
328         throws com.liferay.portal.PortalException,
329             com.liferay.portal.SystemException;
330 
331     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
332     public double getData(java.lang.String className,
333         java.lang.String tableName, java.lang.String columnName, long classPK,
334         double defaultData)
335         throws com.liferay.portal.PortalException,
336             com.liferay.portal.SystemException;
337 
338     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
339     public double[] getData(java.lang.String className,
340         java.lang.String tableName, java.lang.String columnName, long classPK,
341         double[] defaultData)
342         throws com.liferay.portal.PortalException,
343             com.liferay.portal.SystemException;
344 
345     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
346     public float getData(java.lang.String className,
347         java.lang.String tableName, java.lang.String columnName, long classPK,
348         float defaultData)
349         throws com.liferay.portal.PortalException,
350             com.liferay.portal.SystemException;
351 
352     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
353     public float[] getData(java.lang.String className,
354         java.lang.String tableName, java.lang.String columnName, long classPK,
355         float[] defaultData)
356         throws com.liferay.portal.PortalException,
357             com.liferay.portal.SystemException;
358 
359     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
360     public int getData(java.lang.String className, java.lang.String tableName,
361         java.lang.String columnName, long classPK, int defaultData)
362         throws com.liferay.portal.PortalException,
363             com.liferay.portal.SystemException;
364 
365     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
366     public int[] getData(java.lang.String className,
367         java.lang.String tableName, java.lang.String columnName, long classPK,
368         int[] defaultData)
369         throws com.liferay.portal.PortalException,
370             com.liferay.portal.SystemException;
371 
372     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
373     public long getData(java.lang.String className, java.lang.String tableName,
374         java.lang.String columnName, long classPK, long defaultData)
375         throws com.liferay.portal.PortalException,
376             com.liferay.portal.SystemException;
377 
378     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
379     public long[] getData(java.lang.String className,
380         java.lang.String tableName, java.lang.String columnName, long classPK,
381         long[] defaultData)
382         throws com.liferay.portal.PortalException,
383             com.liferay.portal.SystemException;
384 
385     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
386     public short getData(java.lang.String className,
387         java.lang.String tableName, java.lang.String columnName, long classPK,
388         short defaultData)
389         throws com.liferay.portal.PortalException,
390             com.liferay.portal.SystemException;
391 
392     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
393     public short[] getData(java.lang.String className,
394         java.lang.String tableName, java.lang.String columnName, long classPK,
395         short[] defaultData)
396         throws com.liferay.portal.PortalException,
397             com.liferay.portal.SystemException;
398 
399     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
400     public java.lang.String getData(java.lang.String className,
401         java.lang.String tableName, java.lang.String columnName, long classPK,
402         java.lang.String defaultData)
403         throws com.liferay.portal.PortalException,
404             com.liferay.portal.SystemException;
405 
406     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
407     public java.lang.String[] getData(java.lang.String className,
408         java.lang.String tableName, java.lang.String columnName, long classPK,
409         java.lang.String[] defaultData)
410         throws com.liferay.portal.PortalException,
411             com.liferay.portal.SystemException;
412 
413     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
414     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getDefaultTableColumnValues(
415         long classNameId, java.lang.String columnName, int start, int end)
416         throws com.liferay.portal.SystemException;
417 
418     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
419     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getDefaultTableColumnValues(
420         java.lang.String className, java.lang.String columnName, int start,
421         int end) throws com.liferay.portal.SystemException;
422 
423     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
424     public int getDefaultTableColumnValuesCount(long classNameId,
425         java.lang.String columnName) throws com.liferay.portal.SystemException;
426 
427     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
428     public int getDefaultTableColumnValuesCount(java.lang.String className,
429         java.lang.String columnName) 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 rowId) throws com.liferay.portal.SystemException;
434 
435     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
436     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getRowValues(
437         long rowId, int start, int end)
438         throws com.liferay.portal.SystemException;
439 
440     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
441     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getRowValues(
442         long classNameId, java.lang.String tableName, long classPK, int start,
443         int end) throws com.liferay.portal.SystemException;
444 
445     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
446     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getRowValues(
447         java.lang.String className, java.lang.String tableName, long classPK,
448         int start, int end) throws com.liferay.portal.SystemException;
449 
450     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
451     public int getRowValuesCount(long rowId)
452         throws com.liferay.portal.SystemException;
453 
454     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
455     public int getRowValuesCount(long classNameId, java.lang.String tableName,
456         long classPK) throws com.liferay.portal.SystemException;
457 
458     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
459     public int getRowValuesCount(java.lang.String className,
460         java.lang.String tableName, long classPK)
461         throws com.liferay.portal.SystemException;
462 
463     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
464     public com.liferay.portlet.expando.model.ExpandoValue getValue(long valueId)
465         throws com.liferay.portal.PortalException,
466             com.liferay.portal.SystemException;
467 
468     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
469     public com.liferay.portlet.expando.model.ExpandoValue getValue(
470         long columnId, long rowId)
471         throws com.liferay.portal.PortalException,
472             com.liferay.portal.SystemException;
473 
474     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
475     public com.liferay.portlet.expando.model.ExpandoValue getValue(
476         long tableId, long columnId, long classPK)
477         throws com.liferay.portal.SystemException;
478 
479     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
480     public com.liferay.portlet.expando.model.ExpandoValue getValue(
481         long classNameId, java.lang.String tableName,
482         java.lang.String columnName, long classPK)
483         throws com.liferay.portal.SystemException;
484 
485     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
486     public com.liferay.portlet.expando.model.ExpandoValue getValue(
487         java.lang.String className, java.lang.String tableName,
488         java.lang.String columnName, long classPK)
489         throws com.liferay.portal.SystemException;
490 }