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