001    /**
002     * Copyright (c) 2000-2012 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;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link PasswordPolicyRel}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       PasswordPolicyRel
024     * @generated
025     */
026    public class PasswordPolicyRelWrapper implements PasswordPolicyRel,
027            ModelWrapper<PasswordPolicyRel> {
028            public PasswordPolicyRelWrapper(PasswordPolicyRel passwordPolicyRel) {
029                    _passwordPolicyRel = passwordPolicyRel;
030            }
031    
032            public Class<?> getModelClass() {
033                    return PasswordPolicyRel.class;
034            }
035    
036            public String getModelClassName() {
037                    return PasswordPolicyRel.class.getName();
038            }
039    
040            /**
041            * Returns the primary key of this password policy rel.
042            *
043            * @return the primary key of this password policy rel
044            */
045            public long getPrimaryKey() {
046                    return _passwordPolicyRel.getPrimaryKey();
047            }
048    
049            /**
050            * Sets the primary key of this password policy rel.
051            *
052            * @param primaryKey the primary key of this password policy rel
053            */
054            public void setPrimaryKey(long primaryKey) {
055                    _passwordPolicyRel.setPrimaryKey(primaryKey);
056            }
057    
058            /**
059            * Returns the password policy rel ID of this password policy rel.
060            *
061            * @return the password policy rel ID of this password policy rel
062            */
063            public long getPasswordPolicyRelId() {
064                    return _passwordPolicyRel.getPasswordPolicyRelId();
065            }
066    
067            /**
068            * Sets the password policy rel ID of this password policy rel.
069            *
070            * @param passwordPolicyRelId the password policy rel ID of this password policy rel
071            */
072            public void setPasswordPolicyRelId(long passwordPolicyRelId) {
073                    _passwordPolicyRel.setPasswordPolicyRelId(passwordPolicyRelId);
074            }
075    
076            /**
077            * Returns the password policy ID of this password policy rel.
078            *
079            * @return the password policy ID of this password policy rel
080            */
081            public long getPasswordPolicyId() {
082                    return _passwordPolicyRel.getPasswordPolicyId();
083            }
084    
085            /**
086            * Sets the password policy ID of this password policy rel.
087            *
088            * @param passwordPolicyId the password policy ID of this password policy rel
089            */
090            public void setPasswordPolicyId(long passwordPolicyId) {
091                    _passwordPolicyRel.setPasswordPolicyId(passwordPolicyId);
092            }
093    
094            /**
095            * Returns the fully qualified class name of this password policy rel.
096            *
097            * @return the fully qualified class name of this password policy rel
098            */
099            public java.lang.String getClassName() {
100                    return _passwordPolicyRel.getClassName();
101            }
102    
103            /**
104            * Returns the class name ID of this password policy rel.
105            *
106            * @return the class name ID of this password policy rel
107            */
108            public long getClassNameId() {
109                    return _passwordPolicyRel.getClassNameId();
110            }
111    
112            /**
113            * Sets the class name ID of this password policy rel.
114            *
115            * @param classNameId the class name ID of this password policy rel
116            */
117            public void setClassNameId(long classNameId) {
118                    _passwordPolicyRel.setClassNameId(classNameId);
119            }
120    
121            /**
122            * Returns the class p k of this password policy rel.
123            *
124            * @return the class p k of this password policy rel
125            */
126            public long getClassPK() {
127                    return _passwordPolicyRel.getClassPK();
128            }
129    
130            /**
131            * Sets the class p k of this password policy rel.
132            *
133            * @param classPK the class p k of this password policy rel
134            */
135            public void setClassPK(long classPK) {
136                    _passwordPolicyRel.setClassPK(classPK);
137            }
138    
139            public boolean isNew() {
140                    return _passwordPolicyRel.isNew();
141            }
142    
143            public void setNew(boolean n) {
144                    _passwordPolicyRel.setNew(n);
145            }
146    
147            public boolean isCachedModel() {
148                    return _passwordPolicyRel.isCachedModel();
149            }
150    
151            public void setCachedModel(boolean cachedModel) {
152                    _passwordPolicyRel.setCachedModel(cachedModel);
153            }
154    
155            public boolean isEscapedModel() {
156                    return _passwordPolicyRel.isEscapedModel();
157            }
158    
159            public java.io.Serializable getPrimaryKeyObj() {
160                    return _passwordPolicyRel.getPrimaryKeyObj();
161            }
162    
163            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
164                    _passwordPolicyRel.setPrimaryKeyObj(primaryKeyObj);
165            }
166    
167            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
168                    return _passwordPolicyRel.getExpandoBridge();
169            }
170    
171            public void setExpandoBridgeAttributes(
172                    com.liferay.portal.service.ServiceContext serviceContext) {
173                    _passwordPolicyRel.setExpandoBridgeAttributes(serviceContext);
174            }
175    
176            @Override
177            public java.lang.Object clone() {
178                    return new PasswordPolicyRelWrapper((PasswordPolicyRel)_passwordPolicyRel.clone());
179            }
180    
181            public int compareTo(
182                    com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel) {
183                    return _passwordPolicyRel.compareTo(passwordPolicyRel);
184            }
185    
186            @Override
187            public int hashCode() {
188                    return _passwordPolicyRel.hashCode();
189            }
190    
191            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.PasswordPolicyRel> toCacheModel() {
192                    return _passwordPolicyRel.toCacheModel();
193            }
194    
195            public com.liferay.portal.model.PasswordPolicyRel toEscapedModel() {
196                    return new PasswordPolicyRelWrapper(_passwordPolicyRel.toEscapedModel());
197            }
198    
199            @Override
200            public java.lang.String toString() {
201                    return _passwordPolicyRel.toString();
202            }
203    
204            public java.lang.String toXmlString() {
205                    return _passwordPolicyRel.toXmlString();
206            }
207    
208            public void persist()
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    _passwordPolicyRel.persist();
211            }
212    
213            /**
214             * @deprecated Renamed to {@link #getWrappedModel}
215             */
216            public PasswordPolicyRel getWrappedPasswordPolicyRel() {
217                    return _passwordPolicyRel;
218            }
219    
220            public PasswordPolicyRel getWrappedModel() {
221                    return _passwordPolicyRel;
222            }
223    
224            public void resetOriginalValues() {
225                    _passwordPolicyRel.resetOriginalValues();
226            }
227    
228            private PasswordPolicyRel _passwordPolicyRel;
229    }