/** * 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.impl; import com.ese.ils.beta.model.Slide; import com.liferay.portal.kernel.util.StringBundler; import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.model.CacheModel; import java.io.Serializable; import java.util.Date; /** * The cache model class for representing Slide in entity cache. * * @author edik * @see Slide * @generated */ public class SlideCacheModel implements CacheModel<Slide>, Serializable { @Override public String toString() { StringBundler sb = new StringBundler(15); sb.append("{slideId="); sb.append(slideId); sb.append(", createDate="); sb.append(createDate); sb.append(", modifiedDate="); sb.append(modifiedDate); sb.append(", fileEntryId="); sb.append(fileEntryId); sb.append(", moduleId="); sb.append(moduleId); sb.append(", addtionalInfo="); sb.append(addtionalInfo); sb.append(", index="); sb.append(index); sb.append("}"); return sb.toString(); } public Slide toEntityModel() { SlideImpl slideImpl = new SlideImpl(); slideImpl.setSlideId(slideId); if (createDate == Long.MIN_VALUE) { slideImpl.setCreateDate(null); } else { slideImpl.setCreateDate(new Date(createDate)); } if (modifiedDate == Long.MIN_VALUE) { slideImpl.setModifiedDate(null); } else { slideImpl.setModifiedDate(new Date(modifiedDate)); } slideImpl.setFileEntryId(fileEntryId); slideImpl.setModuleId(moduleId); if (addtionalInfo == null) { slideImpl.setAddtionalInfo(StringPool.BLANK); } else { slideImpl.setAddtionalInfo(addtionalInfo); } slideImpl.setIndex(index); slideImpl.resetOriginalValues(); return slideImpl; } public long slideId; public long createDate; public long modifiedDate; public long fileEntryId; public long moduleId; public String addtionalInfo; public int index; }