/** * 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 Module}. * </p> * * @author edik * @see Module * @generated */ public class ModuleWrapper implements Module, ModelWrapper<Module> { public ModuleWrapper(Module module) { _module = module; } public Class<?> getModelClass() { return Module.class; } public String getModelClassName() { return Module.class.getName(); } public Map<String, Object> getModelAttributes() { Map<String, Object> attributes = new HashMap<String, Object>(); attributes.put("moduleId", getModuleId()); attributes.put("lecturerUserId", getLecturerUserId()); attributes.put("createDate", getCreateDate()); attributes.put("moduleTitle", getModuleTitle()); attributes.put("additionalInfo", getAdditionalInfo()); return attributes; } public void setModelAttributes(Map<String, Object> attributes) { Long moduleId = (Long)attributes.get("moduleId"); if (moduleId != null) { setModuleId(moduleId); } Long lecturerUserId = (Long)attributes.get("lecturerUserId"); if (lecturerUserId != null) { setLecturerUserId(lecturerUserId); } Date createDate = (Date)attributes.get("createDate"); if (createDate != null) { setCreateDate(createDate); } String moduleTitle = (String)attributes.get("moduleTitle"); if (moduleTitle != null) { setModuleTitle(moduleTitle); } String additionalInfo = (String)attributes.get("additionalInfo"); if (additionalInfo != null) { setAdditionalInfo(additionalInfo); } } /** * Returns the primary key of this module. * * @return the primary key of this module */ public long getPrimaryKey() { return _module.getPrimaryKey(); } /** * Sets the primary key of this module. * * @param primaryKey the primary key of this module */ public void setPrimaryKey(long primaryKey) { _module.setPrimaryKey(primaryKey); } /** * Returns the module ID of this module. * * @return the module ID of this module */ public long getModuleId() { return _module.getModuleId(); } /** * Sets the module ID of this module. * * @param moduleId the module ID of this module */ public void setModuleId(long moduleId) { _module.setModuleId(moduleId); } /** * Returns the lecturer user ID of this module. * * @return the lecturer user ID of this module */ public long getLecturerUserId() { return _module.getLecturerUserId(); } /** * Sets the lecturer user ID of this module. * * @param lecturerUserId the lecturer user ID of this module */ public void setLecturerUserId(long lecturerUserId) { _module.setLecturerUserId(lecturerUserId); } /** * Returns the lecturer user uuid of this module. * * @return the lecturer user uuid of this module * @throws SystemException if a system exception occurred */ public java.lang.String getLecturerUserUuid() throws com.liferay.portal.kernel.exception.SystemException { return _module.getLecturerUserUuid(); } /** * Sets the lecturer user uuid of this module. * * @param lecturerUserUuid the lecturer user uuid of this module */ public void setLecturerUserUuid(java.lang.String lecturerUserUuid) { _module.setLecturerUserUuid(lecturerUserUuid); } /** * Returns the create date of this module. * * @return the create date of this module */ public java.util.Date getCreateDate() { return _module.getCreateDate(); } /** * Sets the create date of this module. * * @param createDate the create date of this module */ public void setCreateDate(java.util.Date createDate) { _module.setCreateDate(createDate); } /** * Returns the module title of this module. * * @return the module title of this module */ public java.lang.String getModuleTitle() { return _module.getModuleTitle(); } /** * Sets the module title of this module. * * @param moduleTitle the module title of this module */ public void setModuleTitle(java.lang.String moduleTitle) { _module.setModuleTitle(moduleTitle); } /** * Returns the additional info of this module. * * @return the additional info of this module */ public java.lang.String getAdditionalInfo() { return _module.getAdditionalInfo(); } /** * Sets the additional info of this module. * * @param additionalInfo the additional info of this module */ public void setAdditionalInfo(java.lang.String additionalInfo) { _module.setAdditionalInfo(additionalInfo); } public boolean isNew() { return _module.isNew(); } public void setNew(boolean n) { _module.setNew(n); } public boolean isCachedModel() { return _module.isCachedModel(); } public void setCachedModel(boolean cachedModel) { _module.setCachedModel(cachedModel); } public boolean isEscapedModel() { return _module.isEscapedModel(); } public java.io.Serializable getPrimaryKeyObj() { return _module.getPrimaryKeyObj(); } public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) { _module.setPrimaryKeyObj(primaryKeyObj); } public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() { return _module.getExpandoBridge(); } public void setExpandoBridgeAttributes( com.liferay.portal.service.ServiceContext serviceContext) { _module.setExpandoBridgeAttributes(serviceContext); } @Override public java.lang.Object clone() { return new ModuleWrapper((Module)_module.clone()); } public int compareTo(Module module) { return _module.compareTo(module); } @Override public int hashCode() { return _module.hashCode(); } public com.liferay.portal.model.CacheModel<Module> toCacheModel() { return _module.toCacheModel(); } public Module toEscapedModel() { return new ModuleWrapper(_module.toEscapedModel()); } @Override public java.lang.String toString() { return _module.toString(); } public java.lang.String toXmlString() { return _module.toXmlString(); } public void persist() throws com.liferay.portal.kernel.exception.SystemException { _module.persist(); } /** * @deprecated Renamed to {@link #getWrappedModel} */ public Module getWrappedModule() { return _module; } public Module getWrappedModel() { return _module; } public void resetOriginalValues() { _module.resetOriginalValues(); } private Module _module; }