001    /**
002     * Copyright (c) 2000-2010 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.annotation.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     * <p>
034     * Never modify or reference this interface directly. All methods that expect a ticket model instance should use the {@link Ticket} interface instead.
035     * </p>
036     *
037     * @author Brian Wing Shun Chan
038     * @see Ticket
039     * @see com.liferay.portal.model.impl.TicketImpl
040     * @see com.liferay.portal.model.impl.TicketModelImpl
041     * @generated
042     */
043    public interface TicketModel extends BaseModel<Ticket> {
044            /**
045             * Gets the primary key of this ticket.
046             *
047             * @return the primary key of this ticket
048             */
049            public long getPrimaryKey();
050    
051            /**
052             * Sets the primary key of this ticket
053             *
054             * @param pk the primary key of this ticket
055             */
056            public void setPrimaryKey(long pk);
057    
058            /**
059             * Gets the ticket id of this ticket.
060             *
061             * @return the ticket id of this ticket
062             */
063            public long getTicketId();
064    
065            /**
066             * Sets the ticket id of this ticket.
067             *
068             * @param ticketId the ticket id of this ticket
069             */
070            public void setTicketId(long ticketId);
071    
072            /**
073             * Gets the company id of this ticket.
074             *
075             * @return the company id of this ticket
076             */
077            public long getCompanyId();
078    
079            /**
080             * Sets the company id of this ticket.
081             *
082             * @param companyId the company id of this ticket
083             */
084            public void setCompanyId(long companyId);
085    
086            /**
087             * Gets the create date of this ticket.
088             *
089             * @return the create date of this ticket
090             */
091            public Date getCreateDate();
092    
093            /**
094             * Sets the create date of this ticket.
095             *
096             * @param createDate the create date of this ticket
097             */
098            public void setCreateDate(Date createDate);
099    
100            /**
101             * Gets the class name of the model instance this ticket is polymorphically associated with.
102             *
103             * @return the class name of the model instance this ticket is polymorphically associated with
104             */
105            public String getClassName();
106    
107            /**
108             * Gets the class name id of this ticket.
109             *
110             * @return the class name id of this ticket
111             */
112            public long getClassNameId();
113    
114            /**
115             * Sets the class name id of this ticket.
116             *
117             * @param classNameId the class name id of this ticket
118             */
119            public void setClassNameId(long classNameId);
120    
121            /**
122             * Gets the class p k of this ticket.
123             *
124             * @return the class p k of this ticket
125             */
126            public long getClassPK();
127    
128            /**
129             * Sets the class p k of this ticket.
130             *
131             * @param classPK the class p k of this ticket
132             */
133            public void setClassPK(long classPK);
134    
135            /**
136             * Gets the key of this ticket.
137             *
138             * @return the key of this ticket
139             */
140            @AutoEscape
141            public String getKey();
142    
143            /**
144             * Sets the key of this ticket.
145             *
146             * @param key the key of this ticket
147             */
148            public void setKey(String key);
149    
150            /**
151             * Gets the expiration date of this ticket.
152             *
153             * @return the expiration date of this ticket
154             */
155            public Date getExpirationDate();
156    
157            /**
158             * Sets the expiration date of this ticket.
159             *
160             * @param expirationDate the expiration date of this ticket
161             */
162            public void setExpirationDate(Date expirationDate);
163    
164            /**
165             * Gets a copy of this ticket as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}.
166             *
167             * @return the escaped model instance
168             * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler
169             */
170            public Ticket toEscapedModel();
171    
172            public boolean isNew();
173    
174            public void setNew(boolean n);
175    
176            public boolean isCachedModel();
177    
178            public void setCachedModel(boolean cachedModel);
179    
180            public boolean isEscapedModel();
181    
182            public void setEscapedModel(boolean escapedModel);
183    
184            public Serializable getPrimaryKeyObj();
185    
186            public ExpandoBridge getExpandoBridge();
187    
188            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
189    
190            public Object clone();
191    
192            public int compareTo(Ticket ticket);
193    
194            public int hashCode();
195    
196            public String toString();
197    
198            public String toXmlString();
199    }