/portal-impl/src/com/liferay/portlet/expando/service/base/ExpandoValueServiceBaseImpl.java

https://github.com/viktorkovacs/liferay-portal-trunk · Java · 494 lines · 210 code · 50 blank · 234 comment · 0 complexity · ba7e40d9e75d47c7dd989ef028ad80c3 MD5 · raw file

  1. /**
  2. * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
  3. *
  4. * This library is free software; you can redistribute it and/or modify it under
  5. * the terms of the GNU Lesser General Public License as published by the Free
  6. * Software Foundation; either version 2.1 of the License, or (at your option)
  7. * any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  11. * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
  12. * details.
  13. */
  14. package com.liferay.portlet.expando.service.base;
  15. import com.liferay.counter.service.CounterLocalService;
  16. import com.liferay.portal.kernel.bean.BeanReference;
  17. import com.liferay.portal.kernel.bean.IdentifiableBean;
  18. import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
  19. import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
  20. import com.liferay.portal.kernel.exception.SystemException;
  21. import com.liferay.portal.service.ResourceLocalService;
  22. import com.liferay.portal.service.ResourceService;
  23. import com.liferay.portal.service.UserLocalService;
  24. import com.liferay.portal.service.UserService;
  25. import com.liferay.portal.service.base.PrincipalBean;
  26. import com.liferay.portal.service.persistence.ResourceFinder;
  27. import com.liferay.portal.service.persistence.ResourcePersistence;
  28. import com.liferay.portal.service.persistence.UserFinder;
  29. import com.liferay.portal.service.persistence.UserPersistence;
  30. import com.liferay.portlet.expando.service.ExpandoColumnLocalService;
  31. import com.liferay.portlet.expando.service.ExpandoColumnService;
  32. import com.liferay.portlet.expando.service.ExpandoRowLocalService;
  33. import com.liferay.portlet.expando.service.ExpandoTableLocalService;
  34. import com.liferay.portlet.expando.service.ExpandoValueLocalService;
  35. import com.liferay.portlet.expando.service.ExpandoValueService;
  36. import com.liferay.portlet.expando.service.persistence.ExpandoColumnPersistence;
  37. import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
  38. import com.liferay.portlet.expando.service.persistence.ExpandoTablePersistence;
  39. import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
  40. import javax.sql.DataSource;
  41. /**
  42. * The base implementation of the expando value remote service.
  43. *
  44. * <p>
  45. * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.liferay.portlet.expando.service.impl.ExpandoValueServiceImpl}.
  46. *
  47. * @author Brian Wing Shun Chan
  48. * @see com.liferay.portlet.expando.service.impl.ExpandoValueServiceImpl
  49. * @see com.liferay.portlet.expando.service.ExpandoValueServiceUtil
  50. * @generated
  51. */
  52. public abstract class ExpandoValueServiceBaseImpl extends PrincipalBean
  53. implements ExpandoValueService, IdentifiableBean {
  54. /*
  55. * NOTE FOR DEVELOPERS:
  56. *
  57. * Never modify or reference this class directly. Always use {@link com.liferay.portlet.expando.service.ExpandoValueServiceUtil} to access the expando value remote service.
  58. */
  59. /**
  60. * Gets the expando column local service.
  61. *
  62. * @return the expando column local service
  63. */
  64. public ExpandoColumnLocalService getExpandoColumnLocalService() {
  65. return expandoColumnLocalService;
  66. }
  67. /**
  68. * Sets the expando column local service.
  69. *
  70. * @param expandoColumnLocalService the expando column local service
  71. */
  72. public void setExpandoColumnLocalService(
  73. ExpandoColumnLocalService expandoColumnLocalService) {
  74. this.expandoColumnLocalService = expandoColumnLocalService;
  75. }
  76. /**
  77. * Gets the expando column remote service.
  78. *
  79. * @return the expando column remote service
  80. */
  81. public ExpandoColumnService getExpandoColumnService() {
  82. return expandoColumnService;
  83. }
  84. /**
  85. * Sets the expando column remote service.
  86. *
  87. * @param expandoColumnService the expando column remote service
  88. */
  89. public void setExpandoColumnService(
  90. ExpandoColumnService expandoColumnService) {
  91. this.expandoColumnService = expandoColumnService;
  92. }
  93. /**
  94. * Gets the expando column persistence.
  95. *
  96. * @return the expando column persistence
  97. */
  98. public ExpandoColumnPersistence getExpandoColumnPersistence() {
  99. return expandoColumnPersistence;
  100. }
  101. /**
  102. * Sets the expando column persistence.
  103. *
  104. * @param expandoColumnPersistence the expando column persistence
  105. */
  106. public void setExpandoColumnPersistence(
  107. ExpandoColumnPersistence expandoColumnPersistence) {
  108. this.expandoColumnPersistence = expandoColumnPersistence;
  109. }
  110. /**
  111. * Gets the expando row local service.
  112. *
  113. * @return the expando row local service
  114. */
  115. public ExpandoRowLocalService getExpandoRowLocalService() {
  116. return expandoRowLocalService;
  117. }
  118. /**
  119. * Sets the expando row local service.
  120. *
  121. * @param expandoRowLocalService the expando row local service
  122. */
  123. public void setExpandoRowLocalService(
  124. ExpandoRowLocalService expandoRowLocalService) {
  125. this.expandoRowLocalService = expandoRowLocalService;
  126. }
  127. /**
  128. * Gets the expando row persistence.
  129. *
  130. * @return the expando row persistence
  131. */
  132. public ExpandoRowPersistence getExpandoRowPersistence() {
  133. return expandoRowPersistence;
  134. }
  135. /**
  136. * Sets the expando row persistence.
  137. *
  138. * @param expandoRowPersistence the expando row persistence
  139. */
  140. public void setExpandoRowPersistence(
  141. ExpandoRowPersistence expandoRowPersistence) {
  142. this.expandoRowPersistence = expandoRowPersistence;
  143. }
  144. /**
  145. * Gets the expando table local service.
  146. *
  147. * @return the expando table local service
  148. */
  149. public ExpandoTableLocalService getExpandoTableLocalService() {
  150. return expandoTableLocalService;
  151. }
  152. /**
  153. * Sets the expando table local service.
  154. *
  155. * @param expandoTableLocalService the expando table local service
  156. */
  157. public void setExpandoTableLocalService(
  158. ExpandoTableLocalService expandoTableLocalService) {
  159. this.expandoTableLocalService = expandoTableLocalService;
  160. }
  161. /**
  162. * Gets the expando table persistence.
  163. *
  164. * @return the expando table persistence
  165. */
  166. public ExpandoTablePersistence getExpandoTablePersistence() {
  167. return expandoTablePersistence;
  168. }
  169. /**
  170. * Sets the expando table persistence.
  171. *
  172. * @param expandoTablePersistence the expando table persistence
  173. */
  174. public void setExpandoTablePersistence(
  175. ExpandoTablePersistence expandoTablePersistence) {
  176. this.expandoTablePersistence = expandoTablePersistence;
  177. }
  178. /**
  179. * Gets the expando value local service.
  180. *
  181. * @return the expando value local service
  182. */
  183. public ExpandoValueLocalService getExpandoValueLocalService() {
  184. return expandoValueLocalService;
  185. }
  186. /**
  187. * Sets the expando value local service.
  188. *
  189. * @param expandoValueLocalService the expando value local service
  190. */
  191. public void setExpandoValueLocalService(
  192. ExpandoValueLocalService expandoValueLocalService) {
  193. this.expandoValueLocalService = expandoValueLocalService;
  194. }
  195. /**
  196. * Gets the expando value remote service.
  197. *
  198. * @return the expando value remote service
  199. */
  200. public ExpandoValueService getExpandoValueService() {
  201. return expandoValueService;
  202. }
  203. /**
  204. * Sets the expando value remote service.
  205. *
  206. * @param expandoValueService the expando value remote service
  207. */
  208. public void setExpandoValueService(ExpandoValueService expandoValueService) {
  209. this.expandoValueService = expandoValueService;
  210. }
  211. /**
  212. * Gets the expando value persistence.
  213. *
  214. * @return the expando value persistence
  215. */
  216. public ExpandoValuePersistence getExpandoValuePersistence() {
  217. return expandoValuePersistence;
  218. }
  219. /**
  220. * Sets the expando value persistence.
  221. *
  222. * @param expandoValuePersistence the expando value persistence
  223. */
  224. public void setExpandoValuePersistence(
  225. ExpandoValuePersistence expandoValuePersistence) {
  226. this.expandoValuePersistence = expandoValuePersistence;
  227. }
  228. /**
  229. * Gets the counter local service.
  230. *
  231. * @return the counter local service
  232. */
  233. public CounterLocalService getCounterLocalService() {
  234. return counterLocalService;
  235. }
  236. /**
  237. * Sets the counter local service.
  238. *
  239. * @param counterLocalService the counter local service
  240. */
  241. public void setCounterLocalService(CounterLocalService counterLocalService) {
  242. this.counterLocalService = counterLocalService;
  243. }
  244. /**
  245. * Gets the resource local service.
  246. *
  247. * @return the resource local service
  248. */
  249. public ResourceLocalService getResourceLocalService() {
  250. return resourceLocalService;
  251. }
  252. /**
  253. * Sets the resource local service.
  254. *
  255. * @param resourceLocalService the resource local service
  256. */
  257. public void setResourceLocalService(
  258. ResourceLocalService resourceLocalService) {
  259. this.resourceLocalService = resourceLocalService;
  260. }
  261. /**
  262. * Gets the resource remote service.
  263. *
  264. * @return the resource remote service
  265. */
  266. public ResourceService getResourceService() {
  267. return resourceService;
  268. }
  269. /**
  270. * Sets the resource remote service.
  271. *
  272. * @param resourceService the resource remote service
  273. */
  274. public void setResourceService(ResourceService resourceService) {
  275. this.resourceService = resourceService;
  276. }
  277. /**
  278. * Gets the resource persistence.
  279. *
  280. * @return the resource persistence
  281. */
  282. public ResourcePersistence getResourcePersistence() {
  283. return resourcePersistence;
  284. }
  285. /**
  286. * Sets the resource persistence.
  287. *
  288. * @param resourcePersistence the resource persistence
  289. */
  290. public void setResourcePersistence(ResourcePersistence resourcePersistence) {
  291. this.resourcePersistence = resourcePersistence;
  292. }
  293. /**
  294. * Gets the resource finder.
  295. *
  296. * @return the resource finder
  297. */
  298. public ResourceFinder getResourceFinder() {
  299. return resourceFinder;
  300. }
  301. /**
  302. * Sets the resource finder.
  303. *
  304. * @param resourceFinder the resource finder
  305. */
  306. public void setResourceFinder(ResourceFinder resourceFinder) {
  307. this.resourceFinder = resourceFinder;
  308. }
  309. /**
  310. * Gets the user local service.
  311. *
  312. * @return the user local service
  313. */
  314. public UserLocalService getUserLocalService() {
  315. return userLocalService;
  316. }
  317. /**
  318. * Sets the user local service.
  319. *
  320. * @param userLocalService the user local service
  321. */
  322. public void setUserLocalService(UserLocalService userLocalService) {
  323. this.userLocalService = userLocalService;
  324. }
  325. /**
  326. * Gets the user remote service.
  327. *
  328. * @return the user remote service
  329. */
  330. public UserService getUserService() {
  331. return userService;
  332. }
  333. /**
  334. * Sets the user remote service.
  335. *
  336. * @param userService the user remote service
  337. */
  338. public void setUserService(UserService userService) {
  339. this.userService = userService;
  340. }
  341. /**
  342. * Gets the user persistence.
  343. *
  344. * @return the user persistence
  345. */
  346. public UserPersistence getUserPersistence() {
  347. return userPersistence;
  348. }
  349. /**
  350. * Sets the user persistence.
  351. *
  352. * @param userPersistence the user persistence
  353. */
  354. public void setUserPersistence(UserPersistence userPersistence) {
  355. this.userPersistence = userPersistence;
  356. }
  357. /**
  358. * Gets the user finder.
  359. *
  360. * @return the user finder
  361. */
  362. public UserFinder getUserFinder() {
  363. return userFinder;
  364. }
  365. /**
  366. * Sets the user finder.
  367. *
  368. * @param userFinder the user finder
  369. */
  370. public void setUserFinder(UserFinder userFinder) {
  371. this.userFinder = userFinder;
  372. }
  373. /**
  374. * Gets the Spring bean ID for this bean.
  375. *
  376. * @return the Spring bean ID for this bean
  377. */
  378. public String getBeanIdentifier() {
  379. return _beanIdentifier;
  380. }
  381. /**
  382. * Sets the Spring bean ID for this bean.
  383. *
  384. * @param beanIdentifier the Spring bean ID for this bean
  385. */
  386. public void setBeanIdentifier(String beanIdentifier) {
  387. _beanIdentifier = beanIdentifier;
  388. }
  389. /**
  390. * Performs an SQL query.
  391. *
  392. * @param sql the sql query to perform
  393. */
  394. protected void runSQL(String sql) throws SystemException {
  395. try {
  396. DataSource dataSource = expandoValuePersistence.getDataSource();
  397. SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
  398. sql, new int[0]);
  399. sqlUpdate.update();
  400. }
  401. catch (Exception e) {
  402. throw new SystemException(e);
  403. }
  404. }
  405. @BeanReference(type = ExpandoColumnLocalService.class)
  406. protected ExpandoColumnLocalService expandoColumnLocalService;
  407. @BeanReference(type = ExpandoColumnService.class)
  408. protected ExpandoColumnService expandoColumnService;
  409. @BeanReference(type = ExpandoColumnPersistence.class)
  410. protected ExpandoColumnPersistence expandoColumnPersistence;
  411. @BeanReference(type = ExpandoRowLocalService.class)
  412. protected ExpandoRowLocalService expandoRowLocalService;
  413. @BeanReference(type = ExpandoRowPersistence.class)
  414. protected ExpandoRowPersistence expandoRowPersistence;
  415. @BeanReference(type = ExpandoTableLocalService.class)
  416. protected ExpandoTableLocalService expandoTableLocalService;
  417. @BeanReference(type = ExpandoTablePersistence.class)
  418. protected ExpandoTablePersistence expandoTablePersistence;
  419. @BeanReference(type = ExpandoValueLocalService.class)
  420. protected ExpandoValueLocalService expandoValueLocalService;
  421. @BeanReference(type = ExpandoValueService.class)
  422. protected ExpandoValueService expandoValueService;
  423. @BeanReference(type = ExpandoValuePersistence.class)
  424. protected ExpandoValuePersistence expandoValuePersistence;
  425. @BeanReference(type = CounterLocalService.class)
  426. protected CounterLocalService counterLocalService;
  427. @BeanReference(type = ResourceLocalService.class)
  428. protected ResourceLocalService resourceLocalService;
  429. @BeanReference(type = ResourceService.class)
  430. protected ResourceService resourceService;
  431. @BeanReference(type = ResourcePersistence.class)
  432. protected ResourcePersistence resourcePersistence;
  433. @BeanReference(type = ResourceFinder.class)
  434. protected ResourceFinder resourceFinder;
  435. @BeanReference(type = UserLocalService.class)
  436. protected UserLocalService userLocalService;
  437. @BeanReference(type = UserService.class)
  438. protected UserService userService;
  439. @BeanReference(type = UserPersistence.class)
  440. protected UserPersistence userPersistence;
  441. @BeanReference(type = UserFinder.class)
  442. protected UserFinder userFinder;
  443. private String _beanIdentifier;
  444. }