/portlets/social-coding-portlet/docroot/WEB-INF/service/com/liferay/socialcoding/model/JIRAChangeItemWrapper.java

https://github.com/christine-huang/liferay-plugins · Java · 341 lines · 175 code · 61 blank · 105 comment · 14 complexity · b7e0055f23f23817ac4d854bfcc75e75 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.socialcoding.model;
  15. import com.liferay.portal.model.ModelWrapper;
  16. import java.util.HashMap;
  17. import java.util.Map;
  18. /**
  19. * <p>
  20. * This class is a wrapper for {@link JIRAChangeItem}.
  21. * </p>
  22. *
  23. * @author Brian Wing Shun Chan
  24. * @see JIRAChangeItem
  25. * @generated
  26. */
  27. public class JIRAChangeItemWrapper implements JIRAChangeItem,
  28. ModelWrapper<JIRAChangeItem> {
  29. public JIRAChangeItemWrapper(JIRAChangeItem jiraChangeItem) {
  30. _jiraChangeItem = jiraChangeItem;
  31. }
  32. public Class<?> getModelClass() {
  33. return JIRAChangeItem.class;
  34. }
  35. public String getModelClassName() {
  36. return JIRAChangeItem.class.getName();
  37. }
  38. public Map<String, Object> getModelAttributes() {
  39. Map<String, Object> attributes = new HashMap<String, Object>();
  40. attributes.put("jiraChangeItemId", getJiraChangeItemId());
  41. attributes.put("jiraChangeGroupId", getJiraChangeGroupId());
  42. attributes.put("field", getField());
  43. attributes.put("oldValue", getOldValue());
  44. attributes.put("oldString", getOldString());
  45. attributes.put("newValue", getNewValue());
  46. attributes.put("newString", getNewString());
  47. return attributes;
  48. }
  49. public void setModelAttributes(Map<String, Object> attributes) {
  50. Long jiraChangeItemId = (Long)attributes.get("jiraChangeItemId");
  51. if (jiraChangeItemId != null) {
  52. setJiraChangeItemId(jiraChangeItemId);
  53. }
  54. Long jiraChangeGroupId = (Long)attributes.get("jiraChangeGroupId");
  55. if (jiraChangeGroupId != null) {
  56. setJiraChangeGroupId(jiraChangeGroupId);
  57. }
  58. String field = (String)attributes.get("field");
  59. if (field != null) {
  60. setField(field);
  61. }
  62. String oldValue = (String)attributes.get("oldValue");
  63. if (oldValue != null) {
  64. setOldValue(oldValue);
  65. }
  66. String oldString = (String)attributes.get("oldString");
  67. if (oldString != null) {
  68. setOldString(oldString);
  69. }
  70. String newValue = (String)attributes.get("newValue");
  71. if (newValue != null) {
  72. setNewValue(newValue);
  73. }
  74. String newString = (String)attributes.get("newString");
  75. if (newString != null) {
  76. setNewString(newString);
  77. }
  78. }
  79. /**
  80. * Returns the primary key of this j i r a change item.
  81. *
  82. * @return the primary key of this j i r a change item
  83. */
  84. public long getPrimaryKey() {
  85. return _jiraChangeItem.getPrimaryKey();
  86. }
  87. /**
  88. * Sets the primary key of this j i r a change item.
  89. *
  90. * @param primaryKey the primary key of this j i r a change item
  91. */
  92. public void setPrimaryKey(long primaryKey) {
  93. _jiraChangeItem.setPrimaryKey(primaryKey);
  94. }
  95. /**
  96. * Returns the jira change item ID of this j i r a change item.
  97. *
  98. * @return the jira change item ID of this j i r a change item
  99. */
  100. public long getJiraChangeItemId() {
  101. return _jiraChangeItem.getJiraChangeItemId();
  102. }
  103. /**
  104. * Sets the jira change item ID of this j i r a change item.
  105. *
  106. * @param jiraChangeItemId the jira change item ID of this j i r a change item
  107. */
  108. public void setJiraChangeItemId(long jiraChangeItemId) {
  109. _jiraChangeItem.setJiraChangeItemId(jiraChangeItemId);
  110. }
  111. /**
  112. * Returns the jira change group ID of this j i r a change item.
  113. *
  114. * @return the jira change group ID of this j i r a change item
  115. */
  116. public long getJiraChangeGroupId() {
  117. return _jiraChangeItem.getJiraChangeGroupId();
  118. }
  119. /**
  120. * Sets the jira change group ID of this j i r a change item.
  121. *
  122. * @param jiraChangeGroupId the jira change group ID of this j i r a change item
  123. */
  124. public void setJiraChangeGroupId(long jiraChangeGroupId) {
  125. _jiraChangeItem.setJiraChangeGroupId(jiraChangeGroupId);
  126. }
  127. /**
  128. * Returns the field of this j i r a change item.
  129. *
  130. * @return the field of this j i r a change item
  131. */
  132. public java.lang.String getField() {
  133. return _jiraChangeItem.getField();
  134. }
  135. /**
  136. * Sets the field of this j i r a change item.
  137. *
  138. * @param field the field of this j i r a change item
  139. */
  140. public void setField(java.lang.String field) {
  141. _jiraChangeItem.setField(field);
  142. }
  143. /**
  144. * Returns the old value of this j i r a change item.
  145. *
  146. * @return the old value of this j i r a change item
  147. */
  148. public java.lang.String getOldValue() {
  149. return _jiraChangeItem.getOldValue();
  150. }
  151. /**
  152. * Sets the old value of this j i r a change item.
  153. *
  154. * @param oldValue the old value of this j i r a change item
  155. */
  156. public void setOldValue(java.lang.String oldValue) {
  157. _jiraChangeItem.setOldValue(oldValue);
  158. }
  159. /**
  160. * Returns the old string of this j i r a change item.
  161. *
  162. * @return the old string of this j i r a change item
  163. */
  164. public java.lang.String getOldString() {
  165. return _jiraChangeItem.getOldString();
  166. }
  167. /**
  168. * Sets the old string of this j i r a change item.
  169. *
  170. * @param oldString the old string of this j i r a change item
  171. */
  172. public void setOldString(java.lang.String oldString) {
  173. _jiraChangeItem.setOldString(oldString);
  174. }
  175. /**
  176. * Returns the new value of this j i r a change item.
  177. *
  178. * @return the new value of this j i r a change item
  179. */
  180. public java.lang.String getNewValue() {
  181. return _jiraChangeItem.getNewValue();
  182. }
  183. /**
  184. * Sets the new value of this j i r a change item.
  185. *
  186. * @param newValue the new value of this j i r a change item
  187. */
  188. public void setNewValue(java.lang.String newValue) {
  189. _jiraChangeItem.setNewValue(newValue);
  190. }
  191. /**
  192. * Returns the new string of this j i r a change item.
  193. *
  194. * @return the new string of this j i r a change item
  195. */
  196. public java.lang.String getNewString() {
  197. return _jiraChangeItem.getNewString();
  198. }
  199. /**
  200. * Sets the new string of this j i r a change item.
  201. *
  202. * @param newString the new string of this j i r a change item
  203. */
  204. public void setNewString(java.lang.String newString) {
  205. _jiraChangeItem.setNewString(newString);
  206. }
  207. public boolean isNew() {
  208. return _jiraChangeItem.isNew();
  209. }
  210. public void setNew(boolean n) {
  211. _jiraChangeItem.setNew(n);
  212. }
  213. public boolean isCachedModel() {
  214. return _jiraChangeItem.isCachedModel();
  215. }
  216. public void setCachedModel(boolean cachedModel) {
  217. _jiraChangeItem.setCachedModel(cachedModel);
  218. }
  219. public boolean isEscapedModel() {
  220. return _jiraChangeItem.isEscapedModel();
  221. }
  222. public java.io.Serializable getPrimaryKeyObj() {
  223. return _jiraChangeItem.getPrimaryKeyObj();
  224. }
  225. public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
  226. _jiraChangeItem.setPrimaryKeyObj(primaryKeyObj);
  227. }
  228. public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
  229. return _jiraChangeItem.getExpandoBridge();
  230. }
  231. public void setExpandoBridgeAttributes(
  232. com.liferay.portal.service.ServiceContext serviceContext) {
  233. _jiraChangeItem.setExpandoBridgeAttributes(serviceContext);
  234. }
  235. @Override
  236. public java.lang.Object clone() {
  237. return new JIRAChangeItemWrapper((JIRAChangeItem)_jiraChangeItem.clone());
  238. }
  239. public int compareTo(
  240. com.liferay.socialcoding.model.JIRAChangeItem jiraChangeItem) {
  241. return _jiraChangeItem.compareTo(jiraChangeItem);
  242. }
  243. @Override
  244. public int hashCode() {
  245. return _jiraChangeItem.hashCode();
  246. }
  247. public com.liferay.portal.model.CacheModel<com.liferay.socialcoding.model.JIRAChangeItem> toCacheModel() {
  248. return _jiraChangeItem.toCacheModel();
  249. }
  250. public com.liferay.socialcoding.model.JIRAChangeItem toEscapedModel() {
  251. return new JIRAChangeItemWrapper(_jiraChangeItem.toEscapedModel());
  252. }
  253. public com.liferay.socialcoding.model.JIRAChangeItem toUnescapedModel() {
  254. return new JIRAChangeItemWrapper(_jiraChangeItem.toUnescapedModel());
  255. }
  256. @Override
  257. public java.lang.String toString() {
  258. return _jiraChangeItem.toString();
  259. }
  260. public java.lang.String toXmlString() {
  261. return _jiraChangeItem.toXmlString();
  262. }
  263. public void persist()
  264. throws com.liferay.portal.kernel.exception.SystemException {
  265. _jiraChangeItem.persist();
  266. }
  267. /**
  268. * @deprecated Renamed to {@link #getWrappedModel}
  269. */
  270. public JIRAChangeItem getWrappedJIRAChangeItem() {
  271. return _jiraChangeItem;
  272. }
  273. public JIRAChangeItem getWrappedModel() {
  274. return _jiraChangeItem;
  275. }
  276. public void resetOriginalValues() {
  277. _jiraChangeItem.resetOriginalValues();
  278. }
  279. private JIRAChangeItem _jiraChangeItem;
  280. }