1
22
23 package com.liferay.portlet.expando.service.base;
24
25 import com.liferay.counter.service.CounterLocalService;
26 import com.liferay.counter.service.CounterService;
27
28 import com.liferay.portal.PortalException;
29 import com.liferay.portal.SystemException;
30 import com.liferay.portal.kernel.annotation.BeanReference;
31 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
32
33 import com.liferay.portlet.expando.model.ExpandoTable;
34 import com.liferay.portlet.expando.service.ExpandoColumnLocalService;
35 import com.liferay.portlet.expando.service.ExpandoRowLocalService;
36 import com.liferay.portlet.expando.service.ExpandoTableLocalService;
37 import com.liferay.portlet.expando.service.ExpandoValueLocalService;
38 import com.liferay.portlet.expando.service.persistence.ExpandoColumnFinder;
39 import com.liferay.portlet.expando.service.persistence.ExpandoColumnPersistence;
40 import com.liferay.portlet.expando.service.persistence.ExpandoRowFinder;
41 import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
42 import com.liferay.portlet.expando.service.persistence.ExpandoTablePersistence;
43 import com.liferay.portlet.expando.service.persistence.ExpandoValueFinder;
44 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
45
46 import java.util.List;
47
48
54 public abstract class ExpandoTableLocalServiceBaseImpl
55 implements ExpandoTableLocalService {
56 public ExpandoTable addExpandoTable(ExpandoTable expandoTable)
57 throws SystemException {
58 expandoTable.setNew(true);
59
60 return expandoTablePersistence.update(expandoTable, false);
61 }
62
63 public ExpandoTable createExpandoTable(long tableId) {
64 return expandoTablePersistence.create(tableId);
65 }
66
67 public void deleteExpandoTable(long tableId)
68 throws PortalException, SystemException {
69 expandoTablePersistence.remove(tableId);
70 }
71
72 public void deleteExpandoTable(ExpandoTable expandoTable)
73 throws SystemException {
74 expandoTablePersistence.remove(expandoTable);
75 }
76
77 public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
78 throws SystemException {
79 return expandoTablePersistence.findWithDynamicQuery(dynamicQuery);
80 }
81
82 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
83 int end) throws SystemException {
84 return expandoTablePersistence.findWithDynamicQuery(dynamicQuery,
85 start, end);
86 }
87
88 public ExpandoTable getExpandoTable(long tableId)
89 throws PortalException, SystemException {
90 return expandoTablePersistence.findByPrimaryKey(tableId);
91 }
92
93 public List<ExpandoTable> getExpandoTables(int start, int end)
94 throws SystemException {
95 return expandoTablePersistence.findAll(start, end);
96 }
97
98 public int getExpandoTablesCount() throws SystemException {
99 return expandoTablePersistence.countAll();
100 }
101
102 public ExpandoTable updateExpandoTable(ExpandoTable expandoTable)
103 throws SystemException {
104 expandoTable.setNew(false);
105
106 return expandoTablePersistence.update(expandoTable, true);
107 }
108
109 public ExpandoColumnLocalService getExpandoColumnLocalService() {
110 return expandoColumnLocalService;
111 }
112
113 public void setExpandoColumnLocalService(
114 ExpandoColumnLocalService expandoColumnLocalService) {
115 this.expandoColumnLocalService = expandoColumnLocalService;
116 }
117
118 public ExpandoColumnPersistence getExpandoColumnPersistence() {
119 return expandoColumnPersistence;
120 }
121
122 public void setExpandoColumnPersistence(
123 ExpandoColumnPersistence expandoColumnPersistence) {
124 this.expandoColumnPersistence = expandoColumnPersistence;
125 }
126
127 public ExpandoColumnFinder getExpandoColumnFinder() {
128 return expandoColumnFinder;
129 }
130
131 public void setExpandoColumnFinder(ExpandoColumnFinder expandoColumnFinder) {
132 this.expandoColumnFinder = expandoColumnFinder;
133 }
134
135 public ExpandoRowLocalService getExpandoRowLocalService() {
136 return expandoRowLocalService;
137 }
138
139 public void setExpandoRowLocalService(
140 ExpandoRowLocalService expandoRowLocalService) {
141 this.expandoRowLocalService = expandoRowLocalService;
142 }
143
144 public ExpandoRowPersistence getExpandoRowPersistence() {
145 return expandoRowPersistence;
146 }
147
148 public void setExpandoRowPersistence(
149 ExpandoRowPersistence expandoRowPersistence) {
150 this.expandoRowPersistence = expandoRowPersistence;
151 }
152
153 public ExpandoRowFinder getExpandoRowFinder() {
154 return expandoRowFinder;
155 }
156
157 public void setExpandoRowFinder(ExpandoRowFinder expandoRowFinder) {
158 this.expandoRowFinder = expandoRowFinder;
159 }
160
161 public ExpandoTableLocalService getExpandoTableLocalService() {
162 return expandoTableLocalService;
163 }
164
165 public void setExpandoTableLocalService(
166 ExpandoTableLocalService expandoTableLocalService) {
167 this.expandoTableLocalService = expandoTableLocalService;
168 }
169
170 public ExpandoTablePersistence getExpandoTablePersistence() {
171 return expandoTablePersistence;
172 }
173
174 public void setExpandoTablePersistence(
175 ExpandoTablePersistence expandoTablePersistence) {
176 this.expandoTablePersistence = expandoTablePersistence;
177 }
178
179 public ExpandoValueLocalService getExpandoValueLocalService() {
180 return expandoValueLocalService;
181 }
182
183 public void setExpandoValueLocalService(
184 ExpandoValueLocalService expandoValueLocalService) {
185 this.expandoValueLocalService = expandoValueLocalService;
186 }
187
188 public ExpandoValuePersistence getExpandoValuePersistence() {
189 return expandoValuePersistence;
190 }
191
192 public void setExpandoValuePersistence(
193 ExpandoValuePersistence expandoValuePersistence) {
194 this.expandoValuePersistence = expandoValuePersistence;
195 }
196
197 public ExpandoValueFinder getExpandoValueFinder() {
198 return expandoValueFinder;
199 }
200
201 public void setExpandoValueFinder(ExpandoValueFinder expandoValueFinder) {
202 this.expandoValueFinder = expandoValueFinder;
203 }
204
205 public CounterLocalService getCounterLocalService() {
206 return counterLocalService;
207 }
208
209 public void setCounterLocalService(CounterLocalService counterLocalService) {
210 this.counterLocalService = counterLocalService;
211 }
212
213 public CounterService getCounterService() {
214 return counterService;
215 }
216
217 public void setCounterService(CounterService counterService) {
218 this.counterService = counterService;
219 }
220
221 @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoColumnLocalService.impl")
222 protected ExpandoColumnLocalService expandoColumnLocalService;
223 @BeanReference(name = "com.liferay.portlet.expando.service.persistence.ExpandoColumnPersistence.impl")
224 protected ExpandoColumnPersistence expandoColumnPersistence;
225 @BeanReference(name = "com.liferay.portlet.expando.service.persistence.ExpandoColumnFinder.impl")
226 protected ExpandoColumnFinder expandoColumnFinder;
227 @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoRowLocalService.impl")
228 protected ExpandoRowLocalService expandoRowLocalService;
229 @BeanReference(name = "com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence.impl")
230 protected ExpandoRowPersistence expandoRowPersistence;
231 @BeanReference(name = "com.liferay.portlet.expando.service.persistence.ExpandoRowFinder.impl")
232 protected ExpandoRowFinder expandoRowFinder;
233 @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoTableLocalService.impl")
234 protected ExpandoTableLocalService expandoTableLocalService;
235 @BeanReference(name = "com.liferay.portlet.expando.service.persistence.ExpandoTablePersistence.impl")
236 protected ExpandoTablePersistence expandoTablePersistence;
237 @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoValueLocalService.impl")
238 protected ExpandoValueLocalService expandoValueLocalService;
239 @BeanReference(name = "com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence.impl")
240 protected ExpandoValuePersistence expandoValuePersistence;
241 @BeanReference(name = "com.liferay.portlet.expando.service.persistence.ExpandoValueFinder.impl")
242 protected ExpandoValueFinder expandoValueFinder;
243 @BeanReference(name = "com.liferay.counter.service.CounterLocalService.impl")
244 protected CounterLocalService counterLocalService;
245 @BeanReference(name = "com.liferay.counter.service.CounterService.impl")
246 protected CounterService counterService;
247 }