1
14
15 package com.liferay.portlet.expando.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface ExpandoRowLocalService {
50 public com.liferay.portlet.expando.model.ExpandoRow addExpandoRow(
51 com.liferay.portlet.expando.model.ExpandoRow expandoRow)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.expando.model.ExpandoRow createExpandoRow(
55 long rowId);
56
57 public void deleteExpandoRow(long rowId)
58 throws com.liferay.portal.kernel.exception.PortalException,
59 com.liferay.portal.kernel.exception.SystemException;
60
61 public void deleteExpandoRow(
62 com.liferay.portlet.expando.model.ExpandoRow expandoRow)
63 throws com.liferay.portal.kernel.exception.SystemException;
64
65 public java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.kernel.exception.SystemException;
68
69 public java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end,
76 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77 throws com.liferay.portal.kernel.exception.SystemException;
78
79 public int dynamicQueryCount(
80 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81 throws com.liferay.portal.kernel.exception.SystemException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public com.liferay.portlet.expando.model.ExpandoRow getExpandoRow(
85 long rowId)
86 throws com.liferay.portal.kernel.exception.PortalException,
87 com.liferay.portal.kernel.exception.SystemException;
88
89 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90 public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getExpandoRows(
91 int start, int end)
92 throws com.liferay.portal.kernel.exception.SystemException;
93
94 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95 public int getExpandoRowsCount()
96 throws com.liferay.portal.kernel.exception.SystemException;
97
98 public com.liferay.portlet.expando.model.ExpandoRow updateExpandoRow(
99 com.liferay.portlet.expando.model.ExpandoRow expandoRow)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 public com.liferay.portlet.expando.model.ExpandoRow updateExpandoRow(
103 com.liferay.portlet.expando.model.ExpandoRow expandoRow, boolean merge)
104 throws com.liferay.portal.kernel.exception.SystemException;
105
106 public com.liferay.portlet.expando.model.ExpandoRow addRow(long tableId,
107 long classPK)
108 throws com.liferay.portal.kernel.exception.PortalException,
109 com.liferay.portal.kernel.exception.SystemException;
110
111 public void deleteRow(long rowId)
112 throws com.liferay.portal.kernel.exception.PortalException,
113 com.liferay.portal.kernel.exception.SystemException;
114
115 public void deleteRow(long tableId, long classPK)
116 throws com.liferay.portal.kernel.exception.PortalException,
117 com.liferay.portal.kernel.exception.SystemException;
118
119 public void deleteRow(long companyId, long classNameId,
120 java.lang.String tableName, long classPK)
121 throws com.liferay.portal.kernel.exception.PortalException,
122 com.liferay.portal.kernel.exception.SystemException;
123
124 public void deleteRow(long companyId, java.lang.String className,
125 java.lang.String tableName, long classPK)
126 throws com.liferay.portal.kernel.exception.PortalException,
127 com.liferay.portal.kernel.exception.SystemException;
128
129 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
130 public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getDefaultTableRows(
131 long companyId, long classNameId, int start, int end)
132 throws com.liferay.portal.kernel.exception.SystemException;
133
134 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
135 public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getDefaultTableRows(
136 long companyId, java.lang.String className, int start, int end)
137 throws com.liferay.portal.kernel.exception.SystemException;
138
139 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
140 public int getDefaultTableRowsCount(long companyId, long classNameId)
141 throws com.liferay.portal.kernel.exception.SystemException;
142
143 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144 public int getDefaultTableRowsCount(long companyId,
145 java.lang.String className)
146 throws com.liferay.portal.kernel.exception.SystemException;
147
148 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
149 public com.liferay.portlet.expando.model.ExpandoRow getRow(long rowId)
150 throws com.liferay.portal.kernel.exception.PortalException,
151 com.liferay.portal.kernel.exception.SystemException;
152
153 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154 public com.liferay.portlet.expando.model.ExpandoRow getRow(long tableId,
155 long classPK)
156 throws com.liferay.portal.kernel.exception.PortalException,
157 com.liferay.portal.kernel.exception.SystemException;
158
159 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160 public com.liferay.portlet.expando.model.ExpandoRow getRow(long companyId,
161 long classNameId, java.lang.String tableName, long classPK)
162 throws com.liferay.portal.kernel.exception.SystemException;
163
164 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165 public com.liferay.portlet.expando.model.ExpandoRow getRow(long companyId,
166 java.lang.String className, java.lang.String tableName, long classPK)
167 throws com.liferay.portal.kernel.exception.SystemException;
168
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
171 long tableId, int start, int end)
172 throws com.liferay.portal.kernel.exception.SystemException;
173
174 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175 public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
176 long companyId, long classNameId, java.lang.String tableName,
177 int start, int end)
178 throws com.liferay.portal.kernel.exception.SystemException;
179
180 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181 public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
182 long companyId, java.lang.String className, java.lang.String tableName,
183 int start, int end)
184 throws com.liferay.portal.kernel.exception.SystemException;
185
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public int getRowsCount(long tableId)
188 throws com.liferay.portal.kernel.exception.SystemException;
189
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public int getRowsCount(long companyId, long classNameId,
192 java.lang.String tableName)
193 throws com.liferay.portal.kernel.exception.SystemException;
194
195 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196 public int getRowsCount(long companyId, java.lang.String className,
197 java.lang.String tableName)
198 throws com.liferay.portal.kernel.exception.SystemException;
199 }