/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
- /**
- * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by the Free
- * Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This library is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
- * details.
- */
- package com.liferay.socialcoding.model;
- import com.liferay.portal.model.ModelWrapper;
- import java.util.HashMap;
- import java.util.Map;
- /**
- * <p>
- * This class is a wrapper for {@link JIRAChangeItem}.
- * </p>
- *
- * @author Brian Wing Shun Chan
- * @see JIRAChangeItem
- * @generated
- */
- public class JIRAChangeItemWrapper implements JIRAChangeItem,
- ModelWrapper<JIRAChangeItem> {
- public JIRAChangeItemWrapper(JIRAChangeItem jiraChangeItem) {
- _jiraChangeItem = jiraChangeItem;
- }
- public Class<?> getModelClass() {
- return JIRAChangeItem.class;
- }
- public String getModelClassName() {
- return JIRAChangeItem.class.getName();
- }
- public Map<String, Object> getModelAttributes() {
- Map<String, Object> attributes = new HashMap<String, Object>();
- attributes.put("jiraChangeItemId", getJiraChangeItemId());
- attributes.put("jiraChangeGroupId", getJiraChangeGroupId());
- attributes.put("field", getField());
- attributes.put("oldValue", getOldValue());
- attributes.put("oldString", getOldString());
- attributes.put("newValue", getNewValue());
- attributes.put("newString", getNewString());
- return attributes;
- }
- public void setModelAttributes(Map<String, Object> attributes) {
- Long jiraChangeItemId = (Long)attributes.get("jiraChangeItemId");
- if (jiraChangeItemId != null) {
- setJiraChangeItemId(jiraChangeItemId);
- }
- Long jiraChangeGroupId = (Long)attributes.get("jiraChangeGroupId");
- if (jiraChangeGroupId != null) {
- setJiraChangeGroupId(jiraChangeGroupId);
- }
- String field = (String)attributes.get("field");
- if (field != null) {
- setField(field);
- }
- String oldValue = (String)attributes.get("oldValue");
- if (oldValue != null) {
- setOldValue(oldValue);
- }
- String oldString = (String)attributes.get("oldString");
- if (oldString != null) {
- setOldString(oldString);
- }
- String newValue = (String)attributes.get("newValue");
- if (newValue != null) {
- setNewValue(newValue);
- }
- String newString = (String)attributes.get("newString");
- if (newString != null) {
- setNewString(newString);
- }
- }
- /**
- * Returns the primary key of this j i r a change item.
- *
- * @return the primary key of this j i r a change item
- */
- public long getPrimaryKey() {
- return _jiraChangeItem.getPrimaryKey();
- }
- /**
- * Sets the primary key of this j i r a change item.
- *
- * @param primaryKey the primary key of this j i r a change item
- */
- public void setPrimaryKey(long primaryKey) {
- _jiraChangeItem.setPrimaryKey(primaryKey);
- }
- /**
- * Returns the jira change item ID of this j i r a change item.
- *
- * @return the jira change item ID of this j i r a change item
- */
- public long getJiraChangeItemId() {
- return _jiraChangeItem.getJiraChangeItemId();
- }
- /**
- * Sets the jira change item ID of this j i r a change item.
- *
- * @param jiraChangeItemId the jira change item ID of this j i r a change item
- */
- public void setJiraChangeItemId(long jiraChangeItemId) {
- _jiraChangeItem.setJiraChangeItemId(jiraChangeItemId);
- }
- /**
- * Returns the jira change group ID of this j i r a change item.
- *
- * @return the jira change group ID of this j i r a change item
- */
- public long getJiraChangeGroupId() {
- return _jiraChangeItem.getJiraChangeGroupId();
- }
- /**
- * Sets the jira change group ID of this j i r a change item.
- *
- * @param jiraChangeGroupId the jira change group ID of this j i r a change item
- */
- public void setJiraChangeGroupId(long jiraChangeGroupId) {
- _jiraChangeItem.setJiraChangeGroupId(jiraChangeGroupId);
- }
- /**
- * Returns the field of this j i r a change item.
- *
- * @return the field of this j i r a change item
- */
- public java.lang.String getField() {
- return _jiraChangeItem.getField();
- }
- /**
- * Sets the field of this j i r a change item.
- *
- * @param field the field of this j i r a change item
- */
- public void setField(java.lang.String field) {
- _jiraChangeItem.setField(field);
- }
- /**
- * Returns the old value of this j i r a change item.
- *
- * @return the old value of this j i r a change item
- */
- public java.lang.String getOldValue() {
- return _jiraChangeItem.getOldValue();
- }
- /**
- * Sets the old value of this j i r a change item.
- *
- * @param oldValue the old value of this j i r a change item
- */
- public void setOldValue(java.lang.String oldValue) {
- _jiraChangeItem.setOldValue(oldValue);
- }
- /**
- * Returns the old string of this j i r a change item.
- *
- * @return the old string of this j i r a change item
- */
- public java.lang.String getOldString() {
- return _jiraChangeItem.getOldString();
- }
- /**
- * Sets the old string of this j i r a change item.
- *
- * @param oldString the old string of this j i r a change item
- */
- public void setOldString(java.lang.String oldString) {
- _jiraChangeItem.setOldString(oldString);
- }
- /**
- * Returns the new value of this j i r a change item.
- *
- * @return the new value of this j i r a change item
- */
- public java.lang.String getNewValue() {
- return _jiraChangeItem.getNewValue();
- }
- /**
- * Sets the new value of this j i r a change item.
- *
- * @param newValue the new value of this j i r a change item
- */
- public void setNewValue(java.lang.String newValue) {
- _jiraChangeItem.setNewValue(newValue);
- }
- /**
- * Returns the new string of this j i r a change item.
- *
- * @return the new string of this j i r a change item
- */
- public java.lang.String getNewString() {
- return _jiraChangeItem.getNewString();
- }
- /**
- * Sets the new string of this j i r a change item.
- *
- * @param newString the new string of this j i r a change item
- */
- public void setNewString(java.lang.String newString) {
- _jiraChangeItem.setNewString(newString);
- }
- public boolean isNew() {
- return _jiraChangeItem.isNew();
- }
- public void setNew(boolean n) {
- _jiraChangeItem.setNew(n);
- }
- public boolean isCachedModel() {
- return _jiraChangeItem.isCachedModel();
- }
- public void setCachedModel(boolean cachedModel) {
- _jiraChangeItem.setCachedModel(cachedModel);
- }
- public boolean isEscapedModel() {
- return _jiraChangeItem.isEscapedModel();
- }
- public java.io.Serializable getPrimaryKeyObj() {
- return _jiraChangeItem.getPrimaryKeyObj();
- }
- public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
- _jiraChangeItem.setPrimaryKeyObj(primaryKeyObj);
- }
- public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
- return _jiraChangeItem.getExpandoBridge();
- }
- public void setExpandoBridgeAttributes(
- com.liferay.portal.service.ServiceContext serviceContext) {
- _jiraChangeItem.setExpandoBridgeAttributes(serviceContext);
- }
- @Override
- public java.lang.Object clone() {
- return new JIRAChangeItemWrapper((JIRAChangeItem)_jiraChangeItem.clone());
- }
- public int compareTo(
- com.liferay.socialcoding.model.JIRAChangeItem jiraChangeItem) {
- return _jiraChangeItem.compareTo(jiraChangeItem);
- }
- @Override
- public int hashCode() {
- return _jiraChangeItem.hashCode();
- }
- public com.liferay.portal.model.CacheModel<com.liferay.socialcoding.model.JIRAChangeItem> toCacheModel() {
- return _jiraChangeItem.toCacheModel();
- }
- public com.liferay.socialcoding.model.JIRAChangeItem toEscapedModel() {
- return new JIRAChangeItemWrapper(_jiraChangeItem.toEscapedModel());
- }
- public com.liferay.socialcoding.model.JIRAChangeItem toUnescapedModel() {
- return new JIRAChangeItemWrapper(_jiraChangeItem.toUnescapedModel());
- }
- @Override
- public java.lang.String toString() {
- return _jiraChangeItem.toString();
- }
- public java.lang.String toXmlString() {
- return _jiraChangeItem.toXmlString();
- }
- public void persist()
- throws com.liferay.portal.kernel.exception.SystemException {
- _jiraChangeItem.persist();
- }
- /**
- * @deprecated Renamed to {@link #getWrappedModel}
- */
- public JIRAChangeItem getWrappedJIRAChangeItem() {
- return _jiraChangeItem;
- }
- public JIRAChangeItem getWrappedModel() {
- return _jiraChangeItem;
- }
- public void resetOriginalValues() {
- _jiraChangeItem.resetOriginalValues();
- }
- private JIRAChangeItem _jiraChangeItem;
- }