001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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            public boolean isNew();
165    
166            public void setNew(boolean n);
167    
168            public boolean isCachedModel();
169    
170            public void setCachedModel(boolean cachedModel);
171    
172            public boolean isEscapedModel();
173    
174            public void setEscapedModel(boolean escapedModel);
175    
176            public Serializable getPrimaryKeyObj();
177    
178            public ExpandoBridge getExpandoBridge();
179    
180            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
181    
182            public Object clone();
183    
184            public int compareTo(Ticket ticket);
185    
186            public int hashCode();
187    
188            public Ticket toEscapedModel();
189    
190            public String toString();
191    
192            public String toXmlString();
193    }