/**
* 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.ese.ils.beta.model;
import com.liferay.portal.model.ModelWrapper;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
* <p>
* This class is a wrapper for {@link PanicButton}.
* </p>
*
* @author edik
* @see PanicButton
* @generated
*/
public class PanicButtonWrapper implements PanicButton,
ModelWrapper<PanicButton> {
public PanicButtonWrapper(PanicButton panicButton) {
_panicButton = panicButton;
}
public Class<?> getModelClass() {
return PanicButton.class;
}
public String getModelClassName() {
return PanicButton.class.getName();
}
public Map<String, Object> getModelAttributes() {
Map<String, Object> attributes = new HashMap<String, Object>();
attributes.put("panicButtonId", getPanicButtonId());
attributes.put("userId", getUserId());
attributes.put("createDate", getCreateDate());
attributes.put("moduleId", getModuleId());
attributes.put("slideId", getSlideId());
attributes.put("reason", getReason());
return attributes;
}
public void setModelAttributes(Map<String, Object> attributes) {
Long panicButtonId = (Long)attributes.get("panicButtonId");
if (panicButtonId != null) {
setPanicButtonId(panicButtonId);
}
Long userId = (Long)attributes.get("userId");
if (userId != null) {
setUserId(userId);
}
Date createDate = (Date)attributes.get("createDate");
if (createDate != null) {
setCreateDate(createDate);
}
Long moduleId = (Long)attributes.get("moduleId");
if (moduleId != null) {
setModuleId(moduleId);
}
Long slideId = (Long)attributes.get("slideId");
if (slideId != null) {
setSlideId(slideId);
}
String reason = (String)attributes.get("reason");
if (reason != null) {
setReason(reason);
}
}
/**
* Returns the primary key of this panic button.
*
* @return the primary key of this panic button
*/
public long getPrimaryKey() {
return _panicButton.getPrimaryKey();
}
/**
* Sets the primary key of this panic button.
*
* @param primaryKey the primary key of this panic button
*/
public void setPrimaryKey(long primaryKey) {
_panicButton.setPrimaryKey(primaryKey);
}
/**
* Returns the panic button ID of this panic button.
*
* @return the panic button ID of this panic button
*/
public long getPanicButtonId() {
return _panicButton.getPanicButtonId();
}
/**
* Sets the panic button ID of this panic button.
*
* @param panicButtonId the panic button ID of this panic button
*/
public void setPanicButtonId(long panicButtonId) {
_panicButton.setPanicButtonId(panicButtonId);
}
/**
* Returns the user ID of this panic button.
*
* @return the user ID of this panic button
*/
public long getUserId() {
return _panicButton.getUserId();
}
/**
* Sets the user ID of this panic button.
*
* @param userId the user ID of this panic button
*/
public void setUserId(long userId) {
_panicButton.setUserId(userId);
}
/**
* Returns the user uuid of this panic button.
*
* @return the user uuid of this panic button
* @throws SystemException if a system exception occurred
*/
public java.lang.String getUserUuid()
throws com.liferay.portal.kernel.exception.SystemException {
return _panicButton.getUserUuid();
}
/**
* Sets the user uuid of this panic button.
*
* @param userUuid the user uuid of this panic button
*/
public void setUserUuid(java.lang.String userUuid) {
_panicButton.setUserUuid(userUuid);
}
/**
* Returns the create date of this panic button.
*
* @return the create date of this panic button
*/
public java.util.Date getCreateDate() {
return _panicButton.getCreateDate();
}
/**
* Sets the create date of this panic button.
*
* @param createDate the create date of this panic button
*/
public void setCreateDate(java.util.Date createDate) {
_panicButton.setCreateDate(createDate);
}
/**
* Returns the module ID of this panic button.
*
* @return the module ID of this panic button
*/
public long getModuleId() {
return _panicButton.getModuleId();
}
/**
* Sets the module ID of this panic button.
*
* @param moduleId the module ID of this panic button
*/
public void setModuleId(long moduleId) {
_panicButton.setModuleId(moduleId);
}
/**
* Returns the slide ID of this panic button.
*
* @return the slide ID of this panic button
*/
public long getSlideId() {
return _panicButton.getSlideId();
}
/**
* Sets the slide ID of this panic button.
*
* @param slideId the slide ID of this panic button
*/
public void setSlideId(long slideId) {
_panicButton.setSlideId(slideId);
}
/**
* Returns the reason of this panic button.
*
* @return the reason of this panic button
*/
public java.lang.String getReason() {
return _panicButton.getReason();
}
/**
* Sets the reason of this panic button.
*
* @param reason the reason of this panic button
*/
public void setReason(java.lang.String reason) {
_panicButton.setReason(reason);
}
public boolean isNew() {
return _panicButton.isNew();
}
public void setNew(boolean n) {
_panicButton.setNew(n);
}
public boolean isCachedModel() {
return _panicButton.isCachedModel();
}
public void setCachedModel(boolean cachedModel) {
_panicButton.setCachedModel(cachedModel);
}
public boolean isEscapedModel() {
return _panicButton.isEscapedModel();
}
public java.io.Serializable getPrimaryKeyObj() {
return _panicButton.getPrimaryKeyObj();
}
public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
_panicButton.setPrimaryKeyObj(primaryKeyObj);
}
public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
return _panicButton.getExpandoBridge();
}
public void setExpandoBridgeAttributes(
com.liferay.portal.service.ServiceContext serviceContext) {
_panicButton.setExpandoBridgeAttributes(serviceContext);
}
@Override
public java.lang.Object clone() {
return new PanicButtonWrapper((PanicButton)_panicButton.clone());
}
public int compareTo(PanicButton panicButton) {
return _panicButton.compareTo(panicButton);
}
@Override
public int hashCode() {
return _panicButton.hashCode();
}
public com.liferay.portal.model.CacheModel<PanicButton> toCacheModel() {
return _panicButton.toCacheModel();
}
public PanicButton toEscapedModel() {
return new PanicButtonWrapper(_panicButton.toEscapedModel());
}
@Override
public java.lang.String toString() {
return _panicButton.toString();
}
public java.lang.String toXmlString() {
return _panicButton.toXmlString();
}
public void persist()
throws com.liferay.portal.kernel.exception.SystemException {
_panicButton.persist();
}
/**
* @deprecated Renamed to {@link #getWrappedModel}
*/
public PanicButton getWrappedPanicButton() {
return _panicButton;
}
public PanicButton getWrappedModel() {
return _panicButton;
}
public void resetOriginalValues() {
_panicButton.resetOriginalValues();
}
private PanicButton _panicButton;
}