/portal-service/src/com/liferay/portal/model/WorkflowDefinitionLinkWrapper.java

https://github.com/lululiferay/liferay-portal · Java · 500 lines · 246 code · 83 blank · 171 comment · 24 complexity · 86b3b844b607c44cbdf5b32e4fff0f7e MD5 · raw file

  1. /**
  2. * Copyright (c) 2000-2012 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.portal.model;
  15. import java.util.Date;
  16. import java.util.HashMap;
  17. import java.util.Map;
  18. /**
  19. * <p>
  20. * This class is a wrapper for {@link WorkflowDefinitionLink}.
  21. * </p>
  22. *
  23. * @author Brian Wing Shun Chan
  24. * @see WorkflowDefinitionLink
  25. * @generated
  26. */
  27. public class WorkflowDefinitionLinkWrapper implements WorkflowDefinitionLink,
  28. ModelWrapper<WorkflowDefinitionLink> {
  29. public WorkflowDefinitionLinkWrapper(
  30. WorkflowDefinitionLink workflowDefinitionLink) {
  31. _workflowDefinitionLink = workflowDefinitionLink;
  32. }
  33. public Class<?> getModelClass() {
  34. return WorkflowDefinitionLink.class;
  35. }
  36. public String getModelClassName() {
  37. return WorkflowDefinitionLink.class.getName();
  38. }
  39. public Map<String, Object> getModelAttributes() {
  40. Map<String, Object> attributes = new HashMap<String, Object>();
  41. attributes.put("workflowDefinitionLinkId", getWorkflowDefinitionLinkId());
  42. attributes.put("groupId", getGroupId());
  43. attributes.put("companyId", getCompanyId());
  44. attributes.put("userId", getUserId());
  45. attributes.put("userName", getUserName());
  46. attributes.put("createDate", getCreateDate());
  47. attributes.put("modifiedDate", getModifiedDate());
  48. attributes.put("classNameId", getClassNameId());
  49. attributes.put("classPK", getClassPK());
  50. attributes.put("typePK", getTypePK());
  51. attributes.put("workflowDefinitionName", getWorkflowDefinitionName());
  52. attributes.put("workflowDefinitionVersion",
  53. getWorkflowDefinitionVersion());
  54. return attributes;
  55. }
  56. public void setModelAttributes(Map<String, Object> attributes) {
  57. Long workflowDefinitionLinkId = (Long)attributes.get(
  58. "workflowDefinitionLinkId");
  59. if (workflowDefinitionLinkId != null) {
  60. setWorkflowDefinitionLinkId(workflowDefinitionLinkId);
  61. }
  62. Long groupId = (Long)attributes.get("groupId");
  63. if (groupId != null) {
  64. setGroupId(groupId);
  65. }
  66. Long companyId = (Long)attributes.get("companyId");
  67. if (companyId != null) {
  68. setCompanyId(companyId);
  69. }
  70. Long userId = (Long)attributes.get("userId");
  71. if (userId != null) {
  72. setUserId(userId);
  73. }
  74. String userName = (String)attributes.get("userName");
  75. if (userName != null) {
  76. setUserName(userName);
  77. }
  78. Date createDate = (Date)attributes.get("createDate");
  79. if (createDate != null) {
  80. setCreateDate(createDate);
  81. }
  82. Date modifiedDate = (Date)attributes.get("modifiedDate");
  83. if (modifiedDate != null) {
  84. setModifiedDate(modifiedDate);
  85. }
  86. Long classNameId = (Long)attributes.get("classNameId");
  87. if (classNameId != null) {
  88. setClassNameId(classNameId);
  89. }
  90. Long classPK = (Long)attributes.get("classPK");
  91. if (classPK != null) {
  92. setClassPK(classPK);
  93. }
  94. Long typePK = (Long)attributes.get("typePK");
  95. if (typePK != null) {
  96. setTypePK(typePK);
  97. }
  98. String workflowDefinitionName = (String)attributes.get(
  99. "workflowDefinitionName");
  100. if (workflowDefinitionName != null) {
  101. setWorkflowDefinitionName(workflowDefinitionName);
  102. }
  103. Integer workflowDefinitionVersion = (Integer)attributes.get(
  104. "workflowDefinitionVersion");
  105. if (workflowDefinitionVersion != null) {
  106. setWorkflowDefinitionVersion(workflowDefinitionVersion);
  107. }
  108. }
  109. /**
  110. * Returns the primary key of this workflow definition link.
  111. *
  112. * @return the primary key of this workflow definition link
  113. */
  114. public long getPrimaryKey() {
  115. return _workflowDefinitionLink.getPrimaryKey();
  116. }
  117. /**
  118. * Sets the primary key of this workflow definition link.
  119. *
  120. * @param primaryKey the primary key of this workflow definition link
  121. */
  122. public void setPrimaryKey(long primaryKey) {
  123. _workflowDefinitionLink.setPrimaryKey(primaryKey);
  124. }
  125. /**
  126. * Returns the workflow definition link ID of this workflow definition link.
  127. *
  128. * @return the workflow definition link ID of this workflow definition link
  129. */
  130. public long getWorkflowDefinitionLinkId() {
  131. return _workflowDefinitionLink.getWorkflowDefinitionLinkId();
  132. }
  133. /**
  134. * Sets the workflow definition link ID of this workflow definition link.
  135. *
  136. * @param workflowDefinitionLinkId the workflow definition link ID of this workflow definition link
  137. */
  138. public void setWorkflowDefinitionLinkId(long workflowDefinitionLinkId) {
  139. _workflowDefinitionLink.setWorkflowDefinitionLinkId(workflowDefinitionLinkId);
  140. }
  141. /**
  142. * Returns the group ID of this workflow definition link.
  143. *
  144. * @return the group ID of this workflow definition link
  145. */
  146. public long getGroupId() {
  147. return _workflowDefinitionLink.getGroupId();
  148. }
  149. /**
  150. * Sets the group ID of this workflow definition link.
  151. *
  152. * @param groupId the group ID of this workflow definition link
  153. */
  154. public void setGroupId(long groupId) {
  155. _workflowDefinitionLink.setGroupId(groupId);
  156. }
  157. /**
  158. * Returns the company ID of this workflow definition link.
  159. *
  160. * @return the company ID of this workflow definition link
  161. */
  162. public long getCompanyId() {
  163. return _workflowDefinitionLink.getCompanyId();
  164. }
  165. /**
  166. * Sets the company ID of this workflow definition link.
  167. *
  168. * @param companyId the company ID of this workflow definition link
  169. */
  170. public void setCompanyId(long companyId) {
  171. _workflowDefinitionLink.setCompanyId(companyId);
  172. }
  173. /**
  174. * Returns the user ID of this workflow definition link.
  175. *
  176. * @return the user ID of this workflow definition link
  177. */
  178. public long getUserId() {
  179. return _workflowDefinitionLink.getUserId();
  180. }
  181. /**
  182. * Sets the user ID of this workflow definition link.
  183. *
  184. * @param userId the user ID of this workflow definition link
  185. */
  186. public void setUserId(long userId) {
  187. _workflowDefinitionLink.setUserId(userId);
  188. }
  189. /**
  190. * Returns the user uuid of this workflow definition link.
  191. *
  192. * @return the user uuid of this workflow definition link
  193. * @throws SystemException if a system exception occurred
  194. */
  195. public java.lang.String getUserUuid()
  196. throws com.liferay.portal.kernel.exception.SystemException {
  197. return _workflowDefinitionLink.getUserUuid();
  198. }
  199. /**
  200. * Sets the user uuid of this workflow definition link.
  201. *
  202. * @param userUuid the user uuid of this workflow definition link
  203. */
  204. public void setUserUuid(java.lang.String userUuid) {
  205. _workflowDefinitionLink.setUserUuid(userUuid);
  206. }
  207. /**
  208. * Returns the user name of this workflow definition link.
  209. *
  210. * @return the user name of this workflow definition link
  211. */
  212. public java.lang.String getUserName() {
  213. return _workflowDefinitionLink.getUserName();
  214. }
  215. /**
  216. * Sets the user name of this workflow definition link.
  217. *
  218. * @param userName the user name of this workflow definition link
  219. */
  220. public void setUserName(java.lang.String userName) {
  221. _workflowDefinitionLink.setUserName(userName);
  222. }
  223. /**
  224. * Returns the create date of this workflow definition link.
  225. *
  226. * @return the create date of this workflow definition link
  227. */
  228. public java.util.Date getCreateDate() {
  229. return _workflowDefinitionLink.getCreateDate();
  230. }
  231. /**
  232. * Sets the create date of this workflow definition link.
  233. *
  234. * @param createDate the create date of this workflow definition link
  235. */
  236. public void setCreateDate(java.util.Date createDate) {
  237. _workflowDefinitionLink.setCreateDate(createDate);
  238. }
  239. /**
  240. * Returns the modified date of this workflow definition link.
  241. *
  242. * @return the modified date of this workflow definition link
  243. */
  244. public java.util.Date getModifiedDate() {
  245. return _workflowDefinitionLink.getModifiedDate();
  246. }
  247. /**
  248. * Sets the modified date of this workflow definition link.
  249. *
  250. * @param modifiedDate the modified date of this workflow definition link
  251. */
  252. public void setModifiedDate(java.util.Date modifiedDate) {
  253. _workflowDefinitionLink.setModifiedDate(modifiedDate);
  254. }
  255. /**
  256. * Returns the fully qualified class name of this workflow definition link.
  257. *
  258. * @return the fully qualified class name of this workflow definition link
  259. */
  260. public java.lang.String getClassName() {
  261. return _workflowDefinitionLink.getClassName();
  262. }
  263. public void setClassName(java.lang.String className) {
  264. _workflowDefinitionLink.setClassName(className);
  265. }
  266. /**
  267. * Returns the class name ID of this workflow definition link.
  268. *
  269. * @return the class name ID of this workflow definition link
  270. */
  271. public long getClassNameId() {
  272. return _workflowDefinitionLink.getClassNameId();
  273. }
  274. /**
  275. * Sets the class name ID of this workflow definition link.
  276. *
  277. * @param classNameId the class name ID of this workflow definition link
  278. */
  279. public void setClassNameId(long classNameId) {
  280. _workflowDefinitionLink.setClassNameId(classNameId);
  281. }
  282. /**
  283. * Returns the class p k of this workflow definition link.
  284. *
  285. * @return the class p k of this workflow definition link
  286. */
  287. public long getClassPK() {
  288. return _workflowDefinitionLink.getClassPK();
  289. }
  290. /**
  291. * Sets the class p k of this workflow definition link.
  292. *
  293. * @param classPK the class p k of this workflow definition link
  294. */
  295. public void setClassPK(long classPK) {
  296. _workflowDefinitionLink.setClassPK(classPK);
  297. }
  298. /**
  299. * Returns the type p k of this workflow definition link.
  300. *
  301. * @return the type p k of this workflow definition link
  302. */
  303. public long getTypePK() {
  304. return _workflowDefinitionLink.getTypePK();
  305. }
  306. /**
  307. * Sets the type p k of this workflow definition link.
  308. *
  309. * @param typePK the type p k of this workflow definition link
  310. */
  311. public void setTypePK(long typePK) {
  312. _workflowDefinitionLink.setTypePK(typePK);
  313. }
  314. /**
  315. * Returns the workflow definition name of this workflow definition link.
  316. *
  317. * @return the workflow definition name of this workflow definition link
  318. */
  319. public java.lang.String getWorkflowDefinitionName() {
  320. return _workflowDefinitionLink.getWorkflowDefinitionName();
  321. }
  322. /**
  323. * Sets the workflow definition name of this workflow definition link.
  324. *
  325. * @param workflowDefinitionName the workflow definition name of this workflow definition link
  326. */
  327. public void setWorkflowDefinitionName(
  328. java.lang.String workflowDefinitionName) {
  329. _workflowDefinitionLink.setWorkflowDefinitionName(workflowDefinitionName);
  330. }
  331. /**
  332. * Returns the workflow definition version of this workflow definition link.
  333. *
  334. * @return the workflow definition version of this workflow definition link
  335. */
  336. public int getWorkflowDefinitionVersion() {
  337. return _workflowDefinitionLink.getWorkflowDefinitionVersion();
  338. }
  339. /**
  340. * Sets the workflow definition version of this workflow definition link.
  341. *
  342. * @param workflowDefinitionVersion the workflow definition version of this workflow definition link
  343. */
  344. public void setWorkflowDefinitionVersion(int workflowDefinitionVersion) {
  345. _workflowDefinitionLink.setWorkflowDefinitionVersion(workflowDefinitionVersion);
  346. }
  347. public boolean isNew() {
  348. return _workflowDefinitionLink.isNew();
  349. }
  350. public void setNew(boolean n) {
  351. _workflowDefinitionLink.setNew(n);
  352. }
  353. public boolean isCachedModel() {
  354. return _workflowDefinitionLink.isCachedModel();
  355. }
  356. public void setCachedModel(boolean cachedModel) {
  357. _workflowDefinitionLink.setCachedModel(cachedModel);
  358. }
  359. public boolean isEscapedModel() {
  360. return _workflowDefinitionLink.isEscapedModel();
  361. }
  362. public java.io.Serializable getPrimaryKeyObj() {
  363. return _workflowDefinitionLink.getPrimaryKeyObj();
  364. }
  365. public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
  366. _workflowDefinitionLink.setPrimaryKeyObj(primaryKeyObj);
  367. }
  368. public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
  369. return _workflowDefinitionLink.getExpandoBridge();
  370. }
  371. public void setExpandoBridgeAttributes(
  372. com.liferay.portal.service.ServiceContext serviceContext) {
  373. _workflowDefinitionLink.setExpandoBridgeAttributes(serviceContext);
  374. }
  375. @Override
  376. public java.lang.Object clone() {
  377. return new WorkflowDefinitionLinkWrapper((WorkflowDefinitionLink)_workflowDefinitionLink.clone());
  378. }
  379. public int compareTo(
  380. com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink) {
  381. return _workflowDefinitionLink.compareTo(workflowDefinitionLink);
  382. }
  383. @Override
  384. public int hashCode() {
  385. return _workflowDefinitionLink.hashCode();
  386. }
  387. public com.liferay.portal.model.CacheModel<com.liferay.portal.model.WorkflowDefinitionLink> toCacheModel() {
  388. return _workflowDefinitionLink.toCacheModel();
  389. }
  390. public com.liferay.portal.model.WorkflowDefinitionLink toEscapedModel() {
  391. return new WorkflowDefinitionLinkWrapper(_workflowDefinitionLink.toEscapedModel());
  392. }
  393. @Override
  394. public java.lang.String toString() {
  395. return _workflowDefinitionLink.toString();
  396. }
  397. public java.lang.String toXmlString() {
  398. return _workflowDefinitionLink.toXmlString();
  399. }
  400. public void persist()
  401. throws com.liferay.portal.kernel.exception.SystemException {
  402. _workflowDefinitionLink.persist();
  403. }
  404. /**
  405. * @deprecated Renamed to {@link #getWrappedModel}
  406. */
  407. public WorkflowDefinitionLink getWrappedWorkflowDefinitionLink() {
  408. return _workflowDefinitionLink;
  409. }
  410. public WorkflowDefinitionLink getWrappedModel() {
  411. return _workflowDefinitionLink;
  412. }
  413. public void resetOriginalValues() {
  414. _workflowDefinitionLink.resetOriginalValues();
  415. }
  416. private WorkflowDefinitionLink _workflowDefinitionLink;
  417. }