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 Ticket}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       Ticket
024     * @generated
025     */
026    public class TicketWrapper implements Ticket, ModelWrapper<Ticket> {
027            public TicketWrapper(Ticket ticket) {
028                    _ticket = ticket;
029            }
030    
031            public Class<?> getModelClass() {
032                    return Ticket.class;
033            }
034    
035            public String getModelClassName() {
036                    return Ticket.class.getName();
037            }
038    
039            /**
040            * Returns the primary key of this ticket.
041            *
042            * @return the primary key of this ticket
043            */
044            public long getPrimaryKey() {
045                    return _ticket.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this ticket.
050            *
051            * @param primaryKey the primary key of this ticket
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _ticket.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Returns the ticket ID of this ticket.
059            *
060            * @return the ticket ID of this ticket
061            */
062            public long getTicketId() {
063                    return _ticket.getTicketId();
064            }
065    
066            /**
067            * Sets the ticket ID of this ticket.
068            *
069            * @param ticketId the ticket ID of this ticket
070            */
071            public void setTicketId(long ticketId) {
072                    _ticket.setTicketId(ticketId);
073            }
074    
075            /**
076            * Returns the company ID of this ticket.
077            *
078            * @return the company ID of this ticket
079            */
080            public long getCompanyId() {
081                    return _ticket.getCompanyId();
082            }
083    
084            /**
085            * Sets the company ID of this ticket.
086            *
087            * @param companyId the company ID of this ticket
088            */
089            public void setCompanyId(long companyId) {
090                    _ticket.setCompanyId(companyId);
091            }
092    
093            /**
094            * Returns the create date of this ticket.
095            *
096            * @return the create date of this ticket
097            */
098            public java.util.Date getCreateDate() {
099                    return _ticket.getCreateDate();
100            }
101    
102            /**
103            * Sets the create date of this ticket.
104            *
105            * @param createDate the create date of this ticket
106            */
107            public void setCreateDate(java.util.Date createDate) {
108                    _ticket.setCreateDate(createDate);
109            }
110    
111            /**
112            * Returns the fully qualified class name of this ticket.
113            *
114            * @return the fully qualified class name of this ticket
115            */
116            public java.lang.String getClassName() {
117                    return _ticket.getClassName();
118            }
119    
120            /**
121            * Returns the class name ID of this ticket.
122            *
123            * @return the class name ID of this ticket
124            */
125            public long getClassNameId() {
126                    return _ticket.getClassNameId();
127            }
128    
129            /**
130            * Sets the class name ID of this ticket.
131            *
132            * @param classNameId the class name ID of this ticket
133            */
134            public void setClassNameId(long classNameId) {
135                    _ticket.setClassNameId(classNameId);
136            }
137    
138            /**
139            * Returns the class p k of this ticket.
140            *
141            * @return the class p k of this ticket
142            */
143            public long getClassPK() {
144                    return _ticket.getClassPK();
145            }
146    
147            /**
148            * Sets the class p k of this ticket.
149            *
150            * @param classPK the class p k of this ticket
151            */
152            public void setClassPK(long classPK) {
153                    _ticket.setClassPK(classPK);
154            }
155    
156            /**
157            * Returns the key of this ticket.
158            *
159            * @return the key of this ticket
160            */
161            public java.lang.String getKey() {
162                    return _ticket.getKey();
163            }
164    
165            /**
166            * Sets the key of this ticket.
167            *
168            * @param key the key of this ticket
169            */
170            public void setKey(java.lang.String key) {
171                    _ticket.setKey(key);
172            }
173    
174            /**
175            * Returns the type of this ticket.
176            *
177            * @return the type of this ticket
178            */
179            public int getType() {
180                    return _ticket.getType();
181            }
182    
183            /**
184            * Sets the type of this ticket.
185            *
186            * @param type the type of this ticket
187            */
188            public void setType(int type) {
189                    _ticket.setType(type);
190            }
191    
192            /**
193            * Returns the extra info of this ticket.
194            *
195            * @return the extra info of this ticket
196            */
197            public java.lang.String getExtraInfo() {
198                    return _ticket.getExtraInfo();
199            }
200    
201            /**
202            * Sets the extra info of this ticket.
203            *
204            * @param extraInfo the extra info of this ticket
205            */
206            public void setExtraInfo(java.lang.String extraInfo) {
207                    _ticket.setExtraInfo(extraInfo);
208            }
209    
210            /**
211            * Returns the expiration date of this ticket.
212            *
213            * @return the expiration date of this ticket
214            */
215            public java.util.Date getExpirationDate() {
216                    return _ticket.getExpirationDate();
217            }
218    
219            /**
220            * Sets the expiration date of this ticket.
221            *
222            * @param expirationDate the expiration date of this ticket
223            */
224            public void setExpirationDate(java.util.Date expirationDate) {
225                    _ticket.setExpirationDate(expirationDate);
226            }
227    
228            public boolean isNew() {
229                    return _ticket.isNew();
230            }
231    
232            public void setNew(boolean n) {
233                    _ticket.setNew(n);
234            }
235    
236            public boolean isCachedModel() {
237                    return _ticket.isCachedModel();
238            }
239    
240            public void setCachedModel(boolean cachedModel) {
241                    _ticket.setCachedModel(cachedModel);
242            }
243    
244            public boolean isEscapedModel() {
245                    return _ticket.isEscapedModel();
246            }
247    
248            public java.io.Serializable getPrimaryKeyObj() {
249                    return _ticket.getPrimaryKeyObj();
250            }
251    
252            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
253                    _ticket.setPrimaryKeyObj(primaryKeyObj);
254            }
255    
256            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
257                    return _ticket.getExpandoBridge();
258            }
259    
260            public void setExpandoBridgeAttributes(
261                    com.liferay.portal.service.ServiceContext serviceContext) {
262                    _ticket.setExpandoBridgeAttributes(serviceContext);
263            }
264    
265            @Override
266            public java.lang.Object clone() {
267                    return new TicketWrapper((Ticket)_ticket.clone());
268            }
269    
270            public int compareTo(com.liferay.portal.model.Ticket ticket) {
271                    return _ticket.compareTo(ticket);
272            }
273    
274            @Override
275            public int hashCode() {
276                    return _ticket.hashCode();
277            }
278    
279            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Ticket> toCacheModel() {
280                    return _ticket.toCacheModel();
281            }
282    
283            public com.liferay.portal.model.Ticket toEscapedModel() {
284                    return new TicketWrapper(_ticket.toEscapedModel());
285            }
286    
287            @Override
288            public java.lang.String toString() {
289                    return _ticket.toString();
290            }
291    
292            public java.lang.String toXmlString() {
293                    return _ticket.toXmlString();
294            }
295    
296            public void persist()
297                    throws com.liferay.portal.kernel.exception.SystemException {
298                    _ticket.persist();
299            }
300    
301            public boolean isExpired() {
302                    return _ticket.isExpired();
303            }
304    
305            /**
306             * @deprecated Renamed to {@link #getWrappedModel}
307             */
308            public Ticket getWrappedTicket() {
309                    return _ticket;
310            }
311    
312            public Ticket getWrappedModel() {
313                    return _ticket;
314            }
315    
316            public void resetOriginalValues() {
317                    _ticket.resetOriginalValues();
318            }
319    
320            private Ticket _ticket;
321    }