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.PasswordPolicyRel;
020    
021    import java.io.Serializable;
022    
023    /**
024     * The cache model class for representing PasswordPolicyRel in entity cache.
025     *
026     * @author Brian Wing Shun Chan
027     * @see PasswordPolicyRel
028     * @generated
029     */
030    public class PasswordPolicyRelCacheModel implements CacheModel<PasswordPolicyRel>,
031            Serializable {
032            @Override
033            public String toString() {
034                    StringBundler sb = new StringBundler(9);
035    
036                    sb.append("{passwordPolicyRelId=");
037                    sb.append(passwordPolicyRelId);
038                    sb.append(", passwordPolicyId=");
039                    sb.append(passwordPolicyId);
040                    sb.append(", classNameId=");
041                    sb.append(classNameId);
042                    sb.append(", classPK=");
043                    sb.append(classPK);
044                    sb.append("}");
045    
046                    return sb.toString();
047            }
048    
049            public PasswordPolicyRel toEntityModel() {
050                    PasswordPolicyRelImpl passwordPolicyRelImpl = new PasswordPolicyRelImpl();
051    
052                    passwordPolicyRelImpl.setPasswordPolicyRelId(passwordPolicyRelId);
053                    passwordPolicyRelImpl.setPasswordPolicyId(passwordPolicyId);
054                    passwordPolicyRelImpl.setClassNameId(classNameId);
055                    passwordPolicyRelImpl.setClassPK(classPK);
056    
057                    passwordPolicyRelImpl.resetOriginalValues();
058    
059                    return passwordPolicyRelImpl;
060            }
061    
062            public long passwordPolicyRelId;
063            public long passwordPolicyId;
064            public long classNameId;
065            public long classPK;
066    }