/portlets/ns-me-portlet/docroot/WEB-INF/src/vn/dtt/sol/ns/baocaodli/dao/service/base/BaoCaoDLIServiceBaseImpl.java

https://gitlab.com/bruce.ng/lunar-resort-ce-theme · Java · 405 lines · 184 code · 46 blank · 175 comment · 4 complexity · c64d4f88c24c1d787cf3fb782867b341 MD5 · raw file

  1. /**
  2. * Copyright (c) 2000-2013 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 vn.dtt.sol.ns.baocaodli.dao.service.base;
  15. import com.liferay.portal.kernel.bean.BeanReference;
  16. import com.liferay.portal.kernel.bean.IdentifiableBean;
  17. import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
  18. import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
  19. import com.liferay.portal.kernel.exception.SystemException;
  20. import com.liferay.portal.service.BaseServiceImpl;
  21. import com.liferay.portal.service.persistence.UserPersistence;
  22. import vn.dtt.sol.ns.baocaodli.dao.model.BaoCaoDLI;
  23. import vn.dtt.sol.ns.baocaodli.dao.service.BaoCaoDLIService;
  24. import vn.dtt.sol.ns.baocaodli.dao.service.persistence.BaoCaoDLIFinder;
  25. import vn.dtt.sol.ns.baocaodli.dao.service.persistence.BaoCaoDLIPersistence;
  26. import vn.dtt.sol.ns.baocaodli.dao.service.persistence.BaoCaoDLITongHopFinder;
  27. import vn.dtt.sol.ns.baocaodli.dao.service.persistence.BaoCaoDLITongHopPersistence;
  28. import javax.sql.DataSource;
  29. /**
  30. * Provides the base implementation for the bao cao d l i remote service.
  31. *
  32. * <p>
  33. * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link vn.dtt.sol.ns.baocaodli.dao.service.impl.BaoCaoDLIServiceImpl}.
  34. * </p>
  35. *
  36. * @author HuyMQ
  37. * @see vn.dtt.sol.ns.baocaodli.dao.service.impl.BaoCaoDLIServiceImpl
  38. * @see vn.dtt.sol.ns.baocaodli.dao.service.BaoCaoDLIServiceUtil
  39. * @generated
  40. */
  41. public abstract class BaoCaoDLIServiceBaseImpl extends BaseServiceImpl
  42. implements BaoCaoDLIService, IdentifiableBean {
  43. /*
  44. * NOTE FOR DEVELOPERS:
  45. *
  46. * Never modify or reference this class directly. Always use {@link vn.dtt.sol.ns.baocaodli.dao.service.BaoCaoDLIServiceUtil} to access the bao cao d l i remote service.
  47. */
  48. /**
  49. * Returns the bao cao d l i local service.
  50. *
  51. * @return the bao cao d l i local service
  52. */
  53. public vn.dtt.sol.ns.baocaodli.dao.service.BaoCaoDLILocalService getBaoCaoDLILocalService() {
  54. return baoCaoDLILocalService;
  55. }
  56. /**
  57. * Sets the bao cao d l i local service.
  58. *
  59. * @param baoCaoDLILocalService the bao cao d l i local service
  60. */
  61. public void setBaoCaoDLILocalService(
  62. vn.dtt.sol.ns.baocaodli.dao.service.BaoCaoDLILocalService baoCaoDLILocalService) {
  63. this.baoCaoDLILocalService = baoCaoDLILocalService;
  64. }
  65. /**
  66. * Returns the bao cao d l i remote service.
  67. *
  68. * @return the bao cao d l i remote service
  69. */
  70. public vn.dtt.sol.ns.baocaodli.dao.service.BaoCaoDLIService getBaoCaoDLIService() {
  71. return baoCaoDLIService;
  72. }
  73. /**
  74. * Sets the bao cao d l i remote service.
  75. *
  76. * @param baoCaoDLIService the bao cao d l i remote service
  77. */
  78. public void setBaoCaoDLIService(
  79. vn.dtt.sol.ns.baocaodli.dao.service.BaoCaoDLIService baoCaoDLIService) {
  80. this.baoCaoDLIService = baoCaoDLIService;
  81. }
  82. /**
  83. * Returns the bao cao d l i persistence.
  84. *
  85. * @return the bao cao d l i persistence
  86. */
  87. public BaoCaoDLIPersistence getBaoCaoDLIPersistence() {
  88. return baoCaoDLIPersistence;
  89. }
  90. /**
  91. * Sets the bao cao d l i persistence.
  92. *
  93. * @param baoCaoDLIPersistence the bao cao d l i persistence
  94. */
  95. public void setBaoCaoDLIPersistence(
  96. BaoCaoDLIPersistence baoCaoDLIPersistence) {
  97. this.baoCaoDLIPersistence = baoCaoDLIPersistence;
  98. }
  99. /**
  100. * Returns the bao cao d l i finder.
  101. *
  102. * @return the bao cao d l i finder
  103. */
  104. public BaoCaoDLIFinder getBaoCaoDLIFinder() {
  105. return baoCaoDLIFinder;
  106. }
  107. /**
  108. * Sets the bao cao d l i finder.
  109. *
  110. * @param baoCaoDLIFinder the bao cao d l i finder
  111. */
  112. public void setBaoCaoDLIFinder(BaoCaoDLIFinder baoCaoDLIFinder) {
  113. this.baoCaoDLIFinder = baoCaoDLIFinder;
  114. }
  115. /**
  116. * Returns the bao cao d l i tong hop local service.
  117. *
  118. * @return the bao cao d l i tong hop local service
  119. */
  120. public vn.dtt.sol.ns.baocaodli.dao.service.BaoCaoDLITongHopLocalService getBaoCaoDLITongHopLocalService() {
  121. return baoCaoDLITongHopLocalService;
  122. }
  123. /**
  124. * Sets the bao cao d l i tong hop local service.
  125. *
  126. * @param baoCaoDLITongHopLocalService the bao cao d l i tong hop local service
  127. */
  128. public void setBaoCaoDLITongHopLocalService(
  129. vn.dtt.sol.ns.baocaodli.dao.service.BaoCaoDLITongHopLocalService baoCaoDLITongHopLocalService) {
  130. this.baoCaoDLITongHopLocalService = baoCaoDLITongHopLocalService;
  131. }
  132. /**
  133. * Returns the bao cao d l i tong hop remote service.
  134. *
  135. * @return the bao cao d l i tong hop remote service
  136. */
  137. public vn.dtt.sol.ns.baocaodli.dao.service.BaoCaoDLITongHopService getBaoCaoDLITongHopService() {
  138. return baoCaoDLITongHopService;
  139. }
  140. /**
  141. * Sets the bao cao d l i tong hop remote service.
  142. *
  143. * @param baoCaoDLITongHopService the bao cao d l i tong hop remote service
  144. */
  145. public void setBaoCaoDLITongHopService(
  146. vn.dtt.sol.ns.baocaodli.dao.service.BaoCaoDLITongHopService baoCaoDLITongHopService) {
  147. this.baoCaoDLITongHopService = baoCaoDLITongHopService;
  148. }
  149. /**
  150. * Returns the bao cao d l i tong hop persistence.
  151. *
  152. * @return the bao cao d l i tong hop persistence
  153. */
  154. public BaoCaoDLITongHopPersistence getBaoCaoDLITongHopPersistence() {
  155. return baoCaoDLITongHopPersistence;
  156. }
  157. /**
  158. * Sets the bao cao d l i tong hop persistence.
  159. *
  160. * @param baoCaoDLITongHopPersistence the bao cao d l i tong hop persistence
  161. */
  162. public void setBaoCaoDLITongHopPersistence(
  163. BaoCaoDLITongHopPersistence baoCaoDLITongHopPersistence) {
  164. this.baoCaoDLITongHopPersistence = baoCaoDLITongHopPersistence;
  165. }
  166. /**
  167. * Returns the bao cao d l i tong hop finder.
  168. *
  169. * @return the bao cao d l i tong hop finder
  170. */
  171. public BaoCaoDLITongHopFinder getBaoCaoDLITongHopFinder() {
  172. return baoCaoDLITongHopFinder;
  173. }
  174. /**
  175. * Sets the bao cao d l i tong hop finder.
  176. *
  177. * @param baoCaoDLITongHopFinder the bao cao d l i tong hop finder
  178. */
  179. public void setBaoCaoDLITongHopFinder(
  180. BaoCaoDLITongHopFinder baoCaoDLITongHopFinder) {
  181. this.baoCaoDLITongHopFinder = baoCaoDLITongHopFinder;
  182. }
  183. /**
  184. * Returns the counter local service.
  185. *
  186. * @return the counter local service
  187. */
  188. public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
  189. return counterLocalService;
  190. }
  191. /**
  192. * Sets the counter local service.
  193. *
  194. * @param counterLocalService the counter local service
  195. */
  196. public void setCounterLocalService(
  197. com.liferay.counter.service.CounterLocalService counterLocalService) {
  198. this.counterLocalService = counterLocalService;
  199. }
  200. /**
  201. * Returns the resource local service.
  202. *
  203. * @return the resource local service
  204. */
  205. public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
  206. return resourceLocalService;
  207. }
  208. /**
  209. * Sets the resource local service.
  210. *
  211. * @param resourceLocalService the resource local service
  212. */
  213. public void setResourceLocalService(
  214. com.liferay.portal.service.ResourceLocalService resourceLocalService) {
  215. this.resourceLocalService = resourceLocalService;
  216. }
  217. /**
  218. * Returns the user local service.
  219. *
  220. * @return the user local service
  221. */
  222. public com.liferay.portal.service.UserLocalService getUserLocalService() {
  223. return userLocalService;
  224. }
  225. /**
  226. * Sets the user local service.
  227. *
  228. * @param userLocalService the user local service
  229. */
  230. public void setUserLocalService(
  231. com.liferay.portal.service.UserLocalService userLocalService) {
  232. this.userLocalService = userLocalService;
  233. }
  234. /**
  235. * Returns the user remote service.
  236. *
  237. * @return the user remote service
  238. */
  239. public com.liferay.portal.service.UserService getUserService() {
  240. return userService;
  241. }
  242. /**
  243. * Sets the user remote service.
  244. *
  245. * @param userService the user remote service
  246. */
  247. public void setUserService(
  248. com.liferay.portal.service.UserService userService) {
  249. this.userService = userService;
  250. }
  251. /**
  252. * Returns the user persistence.
  253. *
  254. * @return the user persistence
  255. */
  256. public UserPersistence getUserPersistence() {
  257. return userPersistence;
  258. }
  259. /**
  260. * Sets the user persistence.
  261. *
  262. * @param userPersistence the user persistence
  263. */
  264. public void setUserPersistence(UserPersistence userPersistence) {
  265. this.userPersistence = userPersistence;
  266. }
  267. public void afterPropertiesSet() {
  268. Class<?> clazz = getClass();
  269. _classLoader = clazz.getClassLoader();
  270. }
  271. public void destroy() {
  272. }
  273. /**
  274. * Returns the Spring bean ID for this bean.
  275. *
  276. * @return the Spring bean ID for this bean
  277. */
  278. @Override
  279. public String getBeanIdentifier() {
  280. return _beanIdentifier;
  281. }
  282. /**
  283. * Sets the Spring bean ID for this bean.
  284. *
  285. * @param beanIdentifier the Spring bean ID for this bean
  286. */
  287. @Override
  288. public void setBeanIdentifier(String beanIdentifier) {
  289. _beanIdentifier = beanIdentifier;
  290. }
  291. @Override
  292. public Object invokeMethod(String name, String[] parameterTypes,
  293. Object[] arguments) throws Throwable {
  294. Thread currentThread = Thread.currentThread();
  295. ClassLoader contextClassLoader = currentThread.getContextClassLoader();
  296. if (contextClassLoader != _classLoader) {
  297. currentThread.setContextClassLoader(_classLoader);
  298. }
  299. try {
  300. return _clpInvoker.invokeMethod(name, parameterTypes, arguments);
  301. }
  302. finally {
  303. if (contextClassLoader != _classLoader) {
  304. currentThread.setContextClassLoader(contextClassLoader);
  305. }
  306. }
  307. }
  308. protected Class<?> getModelClass() {
  309. return BaoCaoDLI.class;
  310. }
  311. protected String getModelClassName() {
  312. return BaoCaoDLI.class.getName();
  313. }
  314. /**
  315. * Performs an SQL query.
  316. *
  317. * @param sql the sql query
  318. */
  319. protected void runSQL(String sql) throws SystemException {
  320. try {
  321. DataSource dataSource = baoCaoDLIPersistence.getDataSource();
  322. SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
  323. sql, new int[0]);
  324. sqlUpdate.update();
  325. }
  326. catch (Exception e) {
  327. throw new SystemException(e);
  328. }
  329. }
  330. @BeanReference(type = vn.dtt.sol.ns.baocaodli.dao.service.BaoCaoDLILocalService.class)
  331. protected vn.dtt.sol.ns.baocaodli.dao.service.BaoCaoDLILocalService baoCaoDLILocalService;
  332. @BeanReference(type = vn.dtt.sol.ns.baocaodli.dao.service.BaoCaoDLIService.class)
  333. protected vn.dtt.sol.ns.baocaodli.dao.service.BaoCaoDLIService baoCaoDLIService;
  334. @BeanReference(type = BaoCaoDLIPersistence.class)
  335. protected BaoCaoDLIPersistence baoCaoDLIPersistence;
  336. @BeanReference(type = BaoCaoDLIFinder.class)
  337. protected BaoCaoDLIFinder baoCaoDLIFinder;
  338. @BeanReference(type = vn.dtt.sol.ns.baocaodli.dao.service.BaoCaoDLITongHopLocalService.class)
  339. protected vn.dtt.sol.ns.baocaodli.dao.service.BaoCaoDLITongHopLocalService baoCaoDLITongHopLocalService;
  340. @BeanReference(type = vn.dtt.sol.ns.baocaodli.dao.service.BaoCaoDLITongHopService.class)
  341. protected vn.dtt.sol.ns.baocaodli.dao.service.BaoCaoDLITongHopService baoCaoDLITongHopService;
  342. @BeanReference(type = BaoCaoDLITongHopPersistence.class)
  343. protected BaoCaoDLITongHopPersistence baoCaoDLITongHopPersistence;
  344. @BeanReference(type = BaoCaoDLITongHopFinder.class)
  345. protected BaoCaoDLITongHopFinder baoCaoDLITongHopFinder;
  346. @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
  347. protected com.liferay.counter.service.CounterLocalService counterLocalService;
  348. @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
  349. protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
  350. @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
  351. protected com.liferay.portal.service.UserLocalService userLocalService;
  352. @BeanReference(type = com.liferay.portal.service.UserService.class)
  353. protected com.liferay.portal.service.UserService userService;
  354. @BeanReference(type = UserPersistence.class)
  355. protected UserPersistence userPersistence;
  356. private String _beanIdentifier;
  357. private ClassLoader _classLoader;
  358. private BaoCaoDLIServiceClpInvoker _clpInvoker = new BaoCaoDLIServiceClpInvoker();
  359. }