/** * 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 Slide}. * </p> * * @author edik * @see Slide * @generated */ public class SlideWrapper implements Slide, ModelWrapper<Slide> { public SlideWrapper(Slide slide) { _slide = slide; } public Class<?> getModelClass() { return Slide.class; } public String getModelClassName() { return Slide.class.getName(); } public Map<String, Object> getModelAttributes() { Map<String, Object> attributes = new HashMap<String, Object>(); attributes.put("slideId", getSlideId()); attributes.put("createDate", getCreateDate()); attributes.put("modifiedDate", getModifiedDate()); attributes.put("fileEntryId", getFileEntryId()); attributes.put("moduleId", getModuleId()); attributes.put("addtionalInfo", getAddtionalInfo()); attributes.put("index", getIndex()); return attributes; } public void setModelAttributes(Map<String, Object> attributes) { Long slideId = (Long)attributes.get("slideId"); if (slideId != null) { setSlideId(slideId); } Date createDate = (Date)attributes.get("createDate"); if (createDate != null) { setCreateDate(createDate); } Date modifiedDate = (Date)attributes.get("modifiedDate"); if (modifiedDate != null) { setModifiedDate(modifiedDate); } Long fileEntryId = (Long)attributes.get("fileEntryId"); if (fileEntryId != null) { setFileEntryId(fileEntryId); } Long moduleId = (Long)attributes.get("moduleId"); if (moduleId != null) { setModuleId(moduleId); } String addtionalInfo = (String)attributes.get("addtionalInfo"); if (addtionalInfo != null) { setAddtionalInfo(addtionalInfo); } Integer index = (Integer)attributes.get("index"); if (index != null) { setIndex(index); } } /** * Returns the primary key of this slide. * * @return the primary key of this slide */ public long getPrimaryKey() { return _slide.getPrimaryKey(); } /** * Sets the primary key of this slide. * * @param primaryKey the primary key of this slide */ public void setPrimaryKey(long primaryKey) { _slide.setPrimaryKey(primaryKey); } /** * Returns the slide ID of this slide. * * @return the slide ID of this slide */ public long getSlideId() { return _slide.getSlideId(); } /** * Sets the slide ID of this slide. * * @param slideId the slide ID of this slide */ public void setSlideId(long slideId) { _slide.setSlideId(slideId); } /** * Returns the create date of this slide. * * @return the create date of this slide */ public java.util.Date getCreateDate() { return _slide.getCreateDate(); } /** * Sets the create date of this slide. * * @param createDate the create date of this slide */ public void setCreateDate(java.util.Date createDate) { _slide.setCreateDate(createDate); } /** * Returns the modified date of this slide. * * @return the modified date of this slide */ public java.util.Date getModifiedDate() { return _slide.getModifiedDate(); } /** * Sets the modified date of this slide. * * @param modifiedDate the modified date of this slide */ public void setModifiedDate(java.util.Date modifiedDate) { _slide.setModifiedDate(modifiedDate); } /** * Returns the file entry ID of this slide. * * @return the file entry ID of this slide */ public long getFileEntryId() { return _slide.getFileEntryId(); } /** * Sets the file entry ID of this slide. * * @param fileEntryId the file entry ID of this slide */ public void setFileEntryId(long fileEntryId) { _slide.setFileEntryId(fileEntryId); } /** * Returns the module ID of this slide. * * @return the module ID of this slide */ public long getModuleId() { return _slide.getModuleId(); } /** * Sets the module ID of this slide. * * @param moduleId the module ID of this slide */ public void setModuleId(long moduleId) { _slide.setModuleId(moduleId); } /** * Returns the addtional info of this slide. * * @return the addtional info of this slide */ public java.lang.String getAddtionalInfo() { return _slide.getAddtionalInfo(); } /** * Sets the addtional info of this slide. * * @param addtionalInfo the addtional info of this slide */ public void setAddtionalInfo(java.lang.String addtionalInfo) { _slide.setAddtionalInfo(addtionalInfo); } /** * Returns the index of this slide. * * @return the index of this slide */ public int getIndex() { return _slide.getIndex(); } /** * Sets the index of this slide. * * @param index the index of this slide */ public void setIndex(int index) { _slide.setIndex(index); } public boolean isNew() { return _slide.isNew(); } public void setNew(boolean n) { _slide.setNew(n); } public boolean isCachedModel() { return _slide.isCachedModel(); } public void setCachedModel(boolean cachedModel) { _slide.setCachedModel(cachedModel); } public boolean isEscapedModel() { return _slide.isEscapedModel(); } public java.io.Serializable getPrimaryKeyObj() { return _slide.getPrimaryKeyObj(); } public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) { _slide.setPrimaryKeyObj(primaryKeyObj); } public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() { return _slide.getExpandoBridge(); } public void setExpandoBridgeAttributes( com.liferay.portal.service.ServiceContext serviceContext) { _slide.setExpandoBridgeAttributes(serviceContext); } @Override public java.lang.Object clone() { return new SlideWrapper((Slide)_slide.clone()); } public int compareTo(Slide slide) { return _slide.compareTo(slide); } @Override public int hashCode() { return _slide.hashCode(); } public com.liferay.portal.model.CacheModel<Slide> toCacheModel() { return _slide.toCacheModel(); } public Slide toEscapedModel() { return new SlideWrapper(_slide.toEscapedModel()); } @Override public java.lang.String toString() { return _slide.toString(); } public java.lang.String toXmlString() { return _slide.toXmlString(); } public void persist() throws com.liferay.portal.kernel.exception.SystemException { _slide.persist(); } /** * @deprecated Renamed to {@link #getWrappedModel} */ public Slide getWrappedSlide() { return _slide; } public Slide getWrappedModel() { return _slide; } public void resetOriginalValues() { _slide.resetOriginalValues(); } private Slide _slide; }