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 ExpandoColumnLocalService {
50 public com.liferay.portlet.expando.model.ExpandoColumn addExpandoColumn(
51 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.expando.model.ExpandoColumn createExpandoColumn(
55 long columnId);
56
57 public void deleteExpandoColumn(long columnId)
58 throws com.liferay.portal.kernel.exception.PortalException,
59 com.liferay.portal.kernel.exception.SystemException;
60
61 public void deleteExpandoColumn(
62 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
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 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
74 public com.liferay.portlet.expando.model.ExpandoColumn getExpandoColumn(
75 long columnId)
76 throws com.liferay.portal.kernel.exception.PortalException,
77 com.liferay.portal.kernel.exception.SystemException;
78
79 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getExpandoColumns(
81 int start, int end)
82 throws com.liferay.portal.kernel.exception.SystemException;
83
84 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85 public int getExpandoColumnsCount()
86 throws com.liferay.portal.kernel.exception.SystemException;
87
88 public com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
89 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
90 throws com.liferay.portal.kernel.exception.SystemException;
91
92 public com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
93 com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
94 boolean merge)
95 throws com.liferay.portal.kernel.exception.SystemException;
96
97 public com.liferay.portlet.expando.model.ExpandoColumn addColumn(
98 long tableId, java.lang.String name, int type)
99 throws com.liferay.portal.kernel.exception.PortalException,
100 com.liferay.portal.kernel.exception.SystemException;
101
102 public com.liferay.portlet.expando.model.ExpandoColumn addColumn(
103 long tableId, java.lang.String name, int type,
104 java.lang.Object defaultData)
105 throws com.liferay.portal.kernel.exception.PortalException,
106 com.liferay.portal.kernel.exception.SystemException;
107
108 public void deleteColumn(
109 com.liferay.portlet.expando.model.ExpandoColumn column)
110 throws com.liferay.portal.kernel.exception.SystemException;
111
112 public void deleteColumn(long columnId)
113 throws com.liferay.portal.kernel.exception.PortalException,
114 com.liferay.portal.kernel.exception.SystemException;
115
116 public void deleteColumn(long companyId, long classNameId,
117 java.lang.String tableName, java.lang.String name)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException;
120
121 public void deleteColumn(long tableId, java.lang.String name)
122 throws com.liferay.portal.kernel.exception.PortalException,
123 com.liferay.portal.kernel.exception.SystemException;
124
125 public void deleteColumn(long companyId, java.lang.String className,
126 java.lang.String tableName, java.lang.String name)
127 throws com.liferay.portal.kernel.exception.PortalException,
128 com.liferay.portal.kernel.exception.SystemException;
129
130 public void deleteColumns(long tableId)
131 throws com.liferay.portal.kernel.exception.SystemException;
132
133 public void deleteColumns(long companyId, long classNameId,
134 java.lang.String tableName)
135 throws com.liferay.portal.kernel.exception.PortalException,
136 com.liferay.portal.kernel.exception.SystemException;
137
138 public void deleteColumns(long companyId, java.lang.String className,
139 java.lang.String tableName)
140 throws com.liferay.portal.kernel.exception.PortalException,
141 com.liferay.portal.kernel.exception.SystemException;
142
143 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144 public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
145 long columnId)
146 throws com.liferay.portal.kernel.exception.PortalException,
147 com.liferay.portal.kernel.exception.SystemException;
148
149 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150 public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
151 long companyId, long classNameId, java.lang.String tableName,
152 java.lang.String name)
153 throws com.liferay.portal.kernel.exception.SystemException;
154
155 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156 public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
157 long tableId, java.lang.String name)
158 throws com.liferay.portal.kernel.exception.PortalException,
159 com.liferay.portal.kernel.exception.SystemException;
160
161 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162 public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
163 long companyId, java.lang.String className, java.lang.String tableName,
164 java.lang.String name)
165 throws com.liferay.portal.kernel.exception.SystemException;
166
167 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
169 long tableId)
170 throws com.liferay.portal.kernel.exception.SystemException;
171
172 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
174 long companyId, long classNameId, java.lang.String tableName)
175 throws com.liferay.portal.kernel.exception.SystemException;
176
177 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
179 long companyId, java.lang.String className, java.lang.String tableName)
180 throws com.liferay.portal.kernel.exception.SystemException;
181
182 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183 public int getColumnsCount(long tableId)
184 throws com.liferay.portal.kernel.exception.SystemException;
185
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public int getColumnsCount(long companyId, long classNameId,
188 java.lang.String tableName)
189 throws com.liferay.portal.kernel.exception.SystemException;
190
191 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192 public int getColumnsCount(long companyId, java.lang.String className,
193 java.lang.String tableName)
194 throws com.liferay.portal.kernel.exception.SystemException;
195
196 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197 public com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
198 long companyId, long classNameId, java.lang.String name)
199 throws com.liferay.portal.kernel.exception.SystemException;
200
201 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202 public com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
203 long companyId, java.lang.String className, java.lang.String name)
204 throws com.liferay.portal.kernel.exception.SystemException;
205
206 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
208 long companyId, long classNameId)
209 throws com.liferay.portal.kernel.exception.SystemException;
210
211 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212 public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
213 long companyId, java.lang.String className)
214 throws com.liferay.portal.kernel.exception.SystemException;
215
216 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217 public int getDefaultTableColumnsCount(long companyId, long classNameId)
218 throws com.liferay.portal.kernel.exception.SystemException;
219
220 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221 public int getDefaultTableColumnsCount(long companyId,
222 java.lang.String className)
223 throws com.liferay.portal.kernel.exception.SystemException;
224
225 public com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
226 long columnId, java.lang.String name, int type)
227 throws com.liferay.portal.kernel.exception.PortalException,
228 com.liferay.portal.kernel.exception.SystemException;
229
230 public com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
231 long columnId, java.lang.String name, int type,
232 java.lang.Object defaultData)
233 throws com.liferay.portal.kernel.exception.PortalException,
234 com.liferay.portal.kernel.exception.SystemException;
235
236 public com.liferay.portlet.expando.model.ExpandoColumn updateTypeSettings(
237 long columnId, java.lang.String typeSettings)
238 throws com.liferay.portal.kernel.exception.PortalException,
239 com.liferay.portal.kernel.exception.SystemException;
240 }