001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.model.impl;
016    
017    import com.liferay.portal.kernel.util.StringBundler;
018    import com.liferay.portal.model.CacheModel;
019    import com.liferay.portal.model.OrgLabor;
020    
021    import java.io.Serializable;
022    
023    /**
024     * The cache model class for representing OrgLabor in entity cache.
025     *
026     * @author Brian Wing Shun Chan
027     * @see OrgLabor
028     * @generated
029     */
030    public class OrgLaborCacheModel implements CacheModel<OrgLabor>, Serializable {
031            @Override
032            public String toString() {
033                    StringBundler sb = new StringBundler(35);
034    
035                    sb.append("{orgLaborId=");
036                    sb.append(orgLaborId);
037                    sb.append(", organizationId=");
038                    sb.append(organizationId);
039                    sb.append(", typeId=");
040                    sb.append(typeId);
041                    sb.append(", sunOpen=");
042                    sb.append(sunOpen);
043                    sb.append(", sunClose=");
044                    sb.append(sunClose);
045                    sb.append(", monOpen=");
046                    sb.append(monOpen);
047                    sb.append(", monClose=");
048                    sb.append(monClose);
049                    sb.append(", tueOpen=");
050                    sb.append(tueOpen);
051                    sb.append(", tueClose=");
052                    sb.append(tueClose);
053                    sb.append(", wedOpen=");
054                    sb.append(wedOpen);
055                    sb.append(", wedClose=");
056                    sb.append(wedClose);
057                    sb.append(", thuOpen=");
058                    sb.append(thuOpen);
059                    sb.append(", thuClose=");
060                    sb.append(thuClose);
061                    sb.append(", friOpen=");
062                    sb.append(friOpen);
063                    sb.append(", friClose=");
064                    sb.append(friClose);
065                    sb.append(", satOpen=");
066                    sb.append(satOpen);
067                    sb.append(", satClose=");
068                    sb.append(satClose);
069                    sb.append("}");
070    
071                    return sb.toString();
072            }
073    
074            public OrgLabor toEntityModel() {
075                    OrgLaborImpl orgLaborImpl = new OrgLaborImpl();
076    
077                    orgLaborImpl.setOrgLaborId(orgLaborId);
078                    orgLaborImpl.setOrganizationId(organizationId);
079                    orgLaborImpl.setTypeId(typeId);
080                    orgLaborImpl.setSunOpen(sunOpen);
081                    orgLaborImpl.setSunClose(sunClose);
082                    orgLaborImpl.setMonOpen(monOpen);
083                    orgLaborImpl.setMonClose(monClose);
084                    orgLaborImpl.setTueOpen(tueOpen);
085                    orgLaborImpl.setTueClose(tueClose);
086                    orgLaborImpl.setWedOpen(wedOpen);
087                    orgLaborImpl.setWedClose(wedClose);
088                    orgLaborImpl.setThuOpen(thuOpen);
089                    orgLaborImpl.setThuClose(thuClose);
090                    orgLaborImpl.setFriOpen(friOpen);
091                    orgLaborImpl.setFriClose(friClose);
092                    orgLaborImpl.setSatOpen(satOpen);
093                    orgLaborImpl.setSatClose(satClose);
094    
095                    orgLaborImpl.resetOriginalValues();
096    
097                    return orgLaborImpl;
098            }
099    
100            public long orgLaborId;
101            public long organizationId;
102            public int typeId;
103            public int sunOpen;
104            public int sunClose;
105            public int monOpen;
106            public int monClose;
107            public int tueOpen;
108            public int tueClose;
109            public int wedOpen;
110            public int wedClose;
111            public int thuOpen;
112            public int thuClose;
113            public int friOpen;
114            public int friClose;
115            public int satOpen;
116            public int satClose;
117    }