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