001
014
015 package com.liferay.portlet.dynamicdatamapping.model.impl;
016
017 import com.liferay.portal.kernel.util.StringBundler;
018 import com.liferay.portal.model.CacheModel;
019
020 import com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink;
021
022 import java.io.Serializable;
023
024
031 public class DDMStructureLinkCacheModel implements CacheModel<DDMStructureLink>,
032 Serializable {
033 @Override
034 public String toString() {
035 StringBundler sb = new StringBundler(9);
036
037 sb.append("{structureLinkId=");
038 sb.append(structureLinkId);
039 sb.append(", classNameId=");
040 sb.append(classNameId);
041 sb.append(", classPK=");
042 sb.append(classPK);
043 sb.append(", structureId=");
044 sb.append(structureId);
045 sb.append("}");
046
047 return sb.toString();
048 }
049
050 public DDMStructureLink toEntityModel() {
051 DDMStructureLinkImpl ddmStructureLinkImpl = new DDMStructureLinkImpl();
052
053 ddmStructureLinkImpl.setStructureLinkId(structureLinkId);
054 ddmStructureLinkImpl.setClassNameId(classNameId);
055 ddmStructureLinkImpl.setClassPK(classPK);
056 ddmStructureLinkImpl.setStructureId(structureId);
057
058 ddmStructureLinkImpl.resetOriginalValues();
059
060 return ddmStructureLinkImpl;
061 }
062
063 public long structureLinkId;
064 public long classNameId;
065 public long classPK;
066 public long structureId;
067 }