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;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.AutoEscape;
020    import com.liferay.portal.service.ServiceContext;
021    
022    import com.liferay.portlet.expando.model.ExpandoBridge;
023    
024    import java.io.Serializable;
025    
026    import java.util.Date;
027    
028    /**
029     * The base model interface for the Ticket service. Represents a row in the "Ticket" database table, with each column mapped to a property of this class.
030     *
031     * <p>
032     * This interface and its corresponding implementation {@link com.liferay.portal.model.impl.TicketModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link com.liferay.portal.model.impl.TicketImpl}.
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see Ticket
037     * @see com.liferay.portal.model.impl.TicketImpl
038     * @see com.liferay.portal.model.impl.TicketModelImpl
039     * @generated
040     */
041    @ProviderType
042    public interface TicketModel extends AttachedModel, BaseModel<Ticket> {
043            /*
044             * NOTE FOR DEVELOPERS:
045             *
046             * Never modify or reference this interface directly. All methods that expect a ticket model instance should use the {@link Ticket} interface instead.
047             */
048    
049            /**
050             * Returns the primary key of this ticket.
051             *
052             * @return the primary key of this ticket
053             */
054            public long getPrimaryKey();
055    
056            /**
057             * Sets the primary key of this ticket.
058             *
059             * @param primaryKey the primary key of this ticket
060             */
061            public void setPrimaryKey(long primaryKey);
062    
063            /**
064             * Returns the ticket ID of this ticket.
065             *
066             * @return the ticket ID of this ticket
067             */
068            public long getTicketId();
069    
070            /**
071             * Sets the ticket ID of this ticket.
072             *
073             * @param ticketId the ticket ID of this ticket
074             */
075            public void setTicketId(long ticketId);
076    
077            /**
078             * Returns the company ID of this ticket.
079             *
080             * @return the company ID of this ticket
081             */
082            public long getCompanyId();
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    
091            /**
092             * Returns the create date of this ticket.
093             *
094             * @return the create date of this ticket
095             */
096            public Date getCreateDate();
097    
098            /**
099             * Sets the create date of this ticket.
100             *
101             * @param createDate the create date of this ticket
102             */
103            public void setCreateDate(Date createDate);
104    
105            /**
106             * Returns the fully qualified class name of this ticket.
107             *
108             * @return the fully qualified class name of this ticket
109             */
110            @Override
111            public String getClassName();
112    
113            public void setClassName(String className);
114    
115            /**
116             * Returns the class name ID of this ticket.
117             *
118             * @return the class name ID of this ticket
119             */
120            @Override
121            public long getClassNameId();
122    
123            /**
124             * Sets the class name ID of this ticket.
125             *
126             * @param classNameId the class name ID of this ticket
127             */
128            @Override
129            public void setClassNameId(long classNameId);
130    
131            /**
132             * Returns the class p k of this ticket.
133             *
134             * @return the class p k of this ticket
135             */
136            @Override
137            public long getClassPK();
138    
139            /**
140             * Sets the class p k of this ticket.
141             *
142             * @param classPK the class p k of this ticket
143             */
144            @Override
145            public void setClassPK(long classPK);
146    
147            /**
148             * Returns the key of this ticket.
149             *
150             * @return the key of this ticket
151             */
152            @AutoEscape
153            public String getKey();
154    
155            /**
156             * Sets the key of this ticket.
157             *
158             * @param key the key of this ticket
159             */
160            public void setKey(String key);
161    
162            /**
163             * Returns the type of this ticket.
164             *
165             * @return the type of this ticket
166             */
167            public int getType();
168    
169            /**
170             * Sets the type of this ticket.
171             *
172             * @param type the type of this ticket
173             */
174            public void setType(int type);
175    
176            /**
177             * Returns the extra info of this ticket.
178             *
179             * @return the extra info of this ticket
180             */
181            @AutoEscape
182            public String getExtraInfo();
183    
184            /**
185             * Sets the extra info of this ticket.
186             *
187             * @param extraInfo the extra info of this ticket
188             */
189            public void setExtraInfo(String extraInfo);
190    
191            /**
192             * Returns the expiration date of this ticket.
193             *
194             * @return the expiration date of this ticket
195             */
196            public Date getExpirationDate();
197    
198            /**
199             * Sets the expiration date of this ticket.
200             *
201             * @param expirationDate the expiration date of this ticket
202             */
203            public void setExpirationDate(Date expirationDate);
204    
205            @Override
206            public boolean isNew();
207    
208            @Override
209            public void setNew(boolean n);
210    
211            @Override
212            public boolean isCachedModel();
213    
214            @Override
215            public void setCachedModel(boolean cachedModel);
216    
217            @Override
218            public boolean isEscapedModel();
219    
220            @Override
221            public Serializable getPrimaryKeyObj();
222    
223            @Override
224            public void setPrimaryKeyObj(Serializable primaryKeyObj);
225    
226            @Override
227            public ExpandoBridge getExpandoBridge();
228    
229            @Override
230            public void setExpandoBridgeAttributes(BaseModel<?> baseModel);
231    
232            @Override
233            public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge);
234    
235            @Override
236            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
237    
238            @Override
239            public Object clone();
240    
241            @Override
242            public int compareTo(Ticket ticket);
243    
244            @Override
245            public int hashCode();
246    
247            @Override
248            public CacheModel<Ticket> toCacheModel();
249    
250            @Override
251            public Ticket toEscapedModel();
252    
253            @Override
254            public Ticket toUnescapedModel();
255    
256            @Override
257            public String toString();
258    
259            @Override
260            public String toXmlString();
261    }