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 Lock}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       Lock
024     * @generated
025     */
026    public class LockWrapper implements Lock, ModelWrapper<Lock> {
027            public LockWrapper(Lock lock) {
028                    _lock = lock;
029            }
030    
031            public Class<?> getModelClass() {
032                    return Lock.class;
033            }
034    
035            public String getModelClassName() {
036                    return Lock.class.getName();
037            }
038    
039            /**
040            * Returns the primary key of this lock.
041            *
042            * @return the primary key of this lock
043            */
044            public long getPrimaryKey() {
045                    return _lock.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this lock.
050            *
051            * @param primaryKey the primary key of this lock
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _lock.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Returns the uuid of this lock.
059            *
060            * @return the uuid of this lock
061            */
062            public java.lang.String getUuid() {
063                    return _lock.getUuid();
064            }
065    
066            /**
067            * Sets the uuid of this lock.
068            *
069            * @param uuid the uuid of this lock
070            */
071            public void setUuid(java.lang.String uuid) {
072                    _lock.setUuid(uuid);
073            }
074    
075            /**
076            * Returns the lock ID of this lock.
077            *
078            * @return the lock ID of this lock
079            */
080            public long getLockId() {
081                    return _lock.getLockId();
082            }
083    
084            /**
085            * Sets the lock ID of this lock.
086            *
087            * @param lockId the lock ID of this lock
088            */
089            public void setLockId(long lockId) {
090                    _lock.setLockId(lockId);
091            }
092    
093            /**
094            * Returns the company ID of this lock.
095            *
096            * @return the company ID of this lock
097            */
098            public long getCompanyId() {
099                    return _lock.getCompanyId();
100            }
101    
102            /**
103            * Sets the company ID of this lock.
104            *
105            * @param companyId the company ID of this lock
106            */
107            public void setCompanyId(long companyId) {
108                    _lock.setCompanyId(companyId);
109            }
110    
111            /**
112            * Returns the user ID of this lock.
113            *
114            * @return the user ID of this lock
115            */
116            public long getUserId() {
117                    return _lock.getUserId();
118            }
119    
120            /**
121            * Sets the user ID of this lock.
122            *
123            * @param userId the user ID of this lock
124            */
125            public void setUserId(long userId) {
126                    _lock.setUserId(userId);
127            }
128    
129            /**
130            * Returns the user uuid of this lock.
131            *
132            * @return the user uuid of this lock
133            * @throws SystemException if a system exception occurred
134            */
135            public java.lang.String getUserUuid()
136                    throws com.liferay.portal.kernel.exception.SystemException {
137                    return _lock.getUserUuid();
138            }
139    
140            /**
141            * Sets the user uuid of this lock.
142            *
143            * @param userUuid the user uuid of this lock
144            */
145            public void setUserUuid(java.lang.String userUuid) {
146                    _lock.setUserUuid(userUuid);
147            }
148    
149            /**
150            * Returns the user name of this lock.
151            *
152            * @return the user name of this lock
153            */
154            public java.lang.String getUserName() {
155                    return _lock.getUserName();
156            }
157    
158            /**
159            * Sets the user name of this lock.
160            *
161            * @param userName the user name of this lock
162            */
163            public void setUserName(java.lang.String userName) {
164                    _lock.setUserName(userName);
165            }
166    
167            /**
168            * Returns the create date of this lock.
169            *
170            * @return the create date of this lock
171            */
172            public java.util.Date getCreateDate() {
173                    return _lock.getCreateDate();
174            }
175    
176            /**
177            * Sets the create date of this lock.
178            *
179            * @param createDate the create date of this lock
180            */
181            public void setCreateDate(java.util.Date createDate) {
182                    _lock.setCreateDate(createDate);
183            }
184    
185            /**
186            * Returns the class name of this lock.
187            *
188            * @return the class name of this lock
189            */
190            public java.lang.String getClassName() {
191                    return _lock.getClassName();
192            }
193    
194            /**
195            * Sets the class name of this lock.
196            *
197            * @param className the class name of this lock
198            */
199            public void setClassName(java.lang.String className) {
200                    _lock.setClassName(className);
201            }
202    
203            /**
204            * Returns the key of this lock.
205            *
206            * @return the key of this lock
207            */
208            public java.lang.String getKey() {
209                    return _lock.getKey();
210            }
211    
212            /**
213            * Sets the key of this lock.
214            *
215            * @param key the key of this lock
216            */
217            public void setKey(java.lang.String key) {
218                    _lock.setKey(key);
219            }
220    
221            /**
222            * Returns the owner of this lock.
223            *
224            * @return the owner of this lock
225            */
226            public java.lang.String getOwner() {
227                    return _lock.getOwner();
228            }
229    
230            /**
231            * Sets the owner of this lock.
232            *
233            * @param owner the owner of this lock
234            */
235            public void setOwner(java.lang.String owner) {
236                    _lock.setOwner(owner);
237            }
238    
239            /**
240            * Returns the inheritable of this lock.
241            *
242            * @return the inheritable of this lock
243            */
244            public boolean getInheritable() {
245                    return _lock.getInheritable();
246            }
247    
248            /**
249            * Returns <code>true</code> if this lock is inheritable.
250            *
251            * @return <code>true</code> if this lock is inheritable; <code>false</code> otherwise
252            */
253            public boolean isInheritable() {
254                    return _lock.isInheritable();
255            }
256    
257            /**
258            * Sets whether this lock is inheritable.
259            *
260            * @param inheritable the inheritable of this lock
261            */
262            public void setInheritable(boolean inheritable) {
263                    _lock.setInheritable(inheritable);
264            }
265    
266            /**
267            * Returns the expiration date of this lock.
268            *
269            * @return the expiration date of this lock
270            */
271            public java.util.Date getExpirationDate() {
272                    return _lock.getExpirationDate();
273            }
274    
275            /**
276            * Sets the expiration date of this lock.
277            *
278            * @param expirationDate the expiration date of this lock
279            */
280            public void setExpirationDate(java.util.Date expirationDate) {
281                    _lock.setExpirationDate(expirationDate);
282            }
283    
284            public boolean isNew() {
285                    return _lock.isNew();
286            }
287    
288            public void setNew(boolean n) {
289                    _lock.setNew(n);
290            }
291    
292            public boolean isCachedModel() {
293                    return _lock.isCachedModel();
294            }
295    
296            public void setCachedModel(boolean cachedModel) {
297                    _lock.setCachedModel(cachedModel);
298            }
299    
300            public boolean isEscapedModel() {
301                    return _lock.isEscapedModel();
302            }
303    
304            public java.io.Serializable getPrimaryKeyObj() {
305                    return _lock.getPrimaryKeyObj();
306            }
307    
308            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
309                    _lock.setPrimaryKeyObj(primaryKeyObj);
310            }
311    
312            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
313                    return _lock.getExpandoBridge();
314            }
315    
316            public void setExpandoBridgeAttributes(
317                    com.liferay.portal.service.ServiceContext serviceContext) {
318                    _lock.setExpandoBridgeAttributes(serviceContext);
319            }
320    
321            @Override
322            public java.lang.Object clone() {
323                    return new LockWrapper((Lock)_lock.clone());
324            }
325    
326            public int compareTo(com.liferay.portal.model.Lock lock) {
327                    return _lock.compareTo(lock);
328            }
329    
330            @Override
331            public int hashCode() {
332                    return _lock.hashCode();
333            }
334    
335            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Lock> toCacheModel() {
336                    return _lock.toCacheModel();
337            }
338    
339            public com.liferay.portal.model.Lock toEscapedModel() {
340                    return new LockWrapper(_lock.toEscapedModel());
341            }
342    
343            @Override
344            public java.lang.String toString() {
345                    return _lock.toString();
346            }
347    
348            public java.lang.String toXmlString() {
349                    return _lock.toXmlString();
350            }
351    
352            public void persist()
353                    throws com.liferay.portal.kernel.exception.SystemException {
354                    _lock.persist();
355            }
356    
357            public long getExpirationTime() {
358                    return _lock.getExpirationTime();
359            }
360    
361            public boolean isExpired() {
362                    return _lock.isExpired();
363            }
364    
365            public boolean isNeverExpires() {
366                    return _lock.isNeverExpires();
367            }
368    
369            /**
370             * @deprecated Renamed to {@link #getWrappedModel}
371             */
372            public Lock getWrappedLock() {
373                    return _lock;
374            }
375    
376            public Lock getWrappedModel() {
377                    return _lock;
378            }
379    
380            public void resetOriginalValues() {
381                    _lock.resetOriginalValues();
382            }
383    
384            private Lock _lock;
385    }