All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.portal.model.TicketWrapper Maven / Gradle / Ivy

/**
 * Copyright (c) 2000-2013 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.portal.model;

import aQute.bnd.annotation.ProviderType;

import com.liferay.portal.kernel.util.Validator;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * 

* This class is a wrapper for {@link Ticket}. *

* * @author Brian Wing Shun Chan * @see Ticket * @generated */ @ProviderType public class TicketWrapper implements Ticket, ModelWrapper { public TicketWrapper(Ticket ticket) { _ticket = ticket; } @Override public Class getModelClass() { return Ticket.class; } @Override public String getModelClassName() { return Ticket.class.getName(); } @Override public Map getModelAttributes() { Map attributes = new HashMap(); attributes.put("ticketId", getTicketId()); attributes.put("companyId", getCompanyId()); attributes.put("createDate", getCreateDate()); attributes.put("classNameId", getClassNameId()); attributes.put("classPK", getClassPK()); attributes.put("key", getKey()); attributes.put("type", getType()); attributes.put("extraInfo", getExtraInfo()); attributes.put("expirationDate", getExpirationDate()); return attributes; } @Override public void setModelAttributes(Map attributes) { Long ticketId = (Long)attributes.get("ticketId"); if (ticketId != null) { setTicketId(ticketId); } Long companyId = (Long)attributes.get("companyId"); if (companyId != null) { setCompanyId(companyId); } Date createDate = (Date)attributes.get("createDate"); if (createDate != null) { setCreateDate(createDate); } Long classNameId = (Long)attributes.get("classNameId"); if (classNameId != null) { setClassNameId(classNameId); } Long classPK = (Long)attributes.get("classPK"); if (classPK != null) { setClassPK(classPK); } String key = (String)attributes.get("key"); if (key != null) { setKey(key); } Integer type = (Integer)attributes.get("type"); if (type != null) { setType(type); } String extraInfo = (String)attributes.get("extraInfo"); if (extraInfo != null) { setExtraInfo(extraInfo); } Date expirationDate = (Date)attributes.get("expirationDate"); if (expirationDate != null) { setExpirationDate(expirationDate); } } /** * Returns the primary key of this ticket. * * @return the primary key of this ticket */ @Override public long getPrimaryKey() { return _ticket.getPrimaryKey(); } /** * Sets the primary key of this ticket. * * @param primaryKey the primary key of this ticket */ @Override public void setPrimaryKey(long primaryKey) { _ticket.setPrimaryKey(primaryKey); } /** * Returns the ticket ID of this ticket. * * @return the ticket ID of this ticket */ @Override public long getTicketId() { return _ticket.getTicketId(); } /** * Sets the ticket ID of this ticket. * * @param ticketId the ticket ID of this ticket */ @Override public void setTicketId(long ticketId) { _ticket.setTicketId(ticketId); } /** * Returns the company ID of this ticket. * * @return the company ID of this ticket */ @Override public long getCompanyId() { return _ticket.getCompanyId(); } /** * Sets the company ID of this ticket. * * @param companyId the company ID of this ticket */ @Override public void setCompanyId(long companyId) { _ticket.setCompanyId(companyId); } /** * Returns the create date of this ticket. * * @return the create date of this ticket */ @Override public java.util.Date getCreateDate() { return _ticket.getCreateDate(); } /** * Sets the create date of this ticket. * * @param createDate the create date of this ticket */ @Override public void setCreateDate(java.util.Date createDate) { _ticket.setCreateDate(createDate); } /** * Returns the fully qualified class name of this ticket. * * @return the fully qualified class name of this ticket */ @Override public java.lang.String getClassName() { return _ticket.getClassName(); } @Override public void setClassName(java.lang.String className) { _ticket.setClassName(className); } /** * Returns the class name ID of this ticket. * * @return the class name ID of this ticket */ @Override public long getClassNameId() { return _ticket.getClassNameId(); } /** * Sets the class name ID of this ticket. * * @param classNameId the class name ID of this ticket */ @Override public void setClassNameId(long classNameId) { _ticket.setClassNameId(classNameId); } /** * Returns the class p k of this ticket. * * @return the class p k of this ticket */ @Override public long getClassPK() { return _ticket.getClassPK(); } /** * Sets the class p k of this ticket. * * @param classPK the class p k of this ticket */ @Override public void setClassPK(long classPK) { _ticket.setClassPK(classPK); } /** * Returns the key of this ticket. * * @return the key of this ticket */ @Override public java.lang.String getKey() { return _ticket.getKey(); } /** * Sets the key of this ticket. * * @param key the key of this ticket */ @Override public void setKey(java.lang.String key) { _ticket.setKey(key); } /** * Returns the type of this ticket. * * @return the type of this ticket */ @Override public int getType() { return _ticket.getType(); } /** * Sets the type of this ticket. * * @param type the type of this ticket */ @Override public void setType(int type) { _ticket.setType(type); } /** * Returns the extra info of this ticket. * * @return the extra info of this ticket */ @Override public java.lang.String getExtraInfo() { return _ticket.getExtraInfo(); } /** * Sets the extra info of this ticket. * * @param extraInfo the extra info of this ticket */ @Override public void setExtraInfo(java.lang.String extraInfo) { _ticket.setExtraInfo(extraInfo); } /** * Returns the expiration date of this ticket. * * @return the expiration date of this ticket */ @Override public java.util.Date getExpirationDate() { return _ticket.getExpirationDate(); } /** * Sets the expiration date of this ticket. * * @param expirationDate the expiration date of this ticket */ @Override public void setExpirationDate(java.util.Date expirationDate) { _ticket.setExpirationDate(expirationDate); } @Override public boolean isNew() { return _ticket.isNew(); } @Override public void setNew(boolean n) { _ticket.setNew(n); } @Override public boolean isCachedModel() { return _ticket.isCachedModel(); } @Override public void setCachedModel(boolean cachedModel) { _ticket.setCachedModel(cachedModel); } @Override public boolean isEscapedModel() { return _ticket.isEscapedModel(); } @Override public java.io.Serializable getPrimaryKeyObj() { return _ticket.getPrimaryKeyObj(); } @Override public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) { _ticket.setPrimaryKeyObj(primaryKeyObj); } @Override public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() { return _ticket.getExpandoBridge(); } @Override public void setExpandoBridgeAttributes( com.liferay.portal.model.BaseModel baseModel) { _ticket.setExpandoBridgeAttributes(baseModel); } @Override public void setExpandoBridgeAttributes( com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) { _ticket.setExpandoBridgeAttributes(expandoBridge); } @Override public void setExpandoBridgeAttributes( com.liferay.portal.service.ServiceContext serviceContext) { _ticket.setExpandoBridgeAttributes(serviceContext); } @Override public java.lang.Object clone() { return new TicketWrapper((Ticket)_ticket.clone()); } @Override public int compareTo(com.liferay.portal.model.Ticket ticket) { return _ticket.compareTo(ticket); } @Override public int hashCode() { return _ticket.hashCode(); } @Override public com.liferay.portal.model.CacheModel toCacheModel() { return _ticket.toCacheModel(); } @Override public com.liferay.portal.model.Ticket toEscapedModel() { return new TicketWrapper(_ticket.toEscapedModel()); } @Override public com.liferay.portal.model.Ticket toUnescapedModel() { return new TicketWrapper(_ticket.toUnescapedModel()); } @Override public java.lang.String toString() { return _ticket.toString(); } @Override public java.lang.String toXmlString() { return _ticket.toXmlString(); } @Override public void persist() throws com.liferay.portal.kernel.exception.SystemException { _ticket.persist(); } @Override public boolean isExpired() { return _ticket.isExpired(); } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof TicketWrapper)) { return false; } TicketWrapper ticketWrapper = (TicketWrapper)obj; if (Validator.equals(_ticket, ticketWrapper._ticket)) { return true; } return false; } /** * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel} */ public Ticket getWrappedTicket() { return _ticket; } @Override public Ticket getWrappedModel() { return _ticket; } @Override public void resetOriginalValues() { _ticket.resetOriginalValues(); } private Ticket _ticket; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy