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 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 /** 110 * Returns the class name ID of this ticket. 111 * 112 * @return the class name ID of this ticket 113 */ 114 public long getClassNameId(); 115 116 /** 117 * Sets the class name ID of this ticket. 118 * 119 * @param classNameId the class name ID of this ticket 120 */ 121 public void setClassNameId(long classNameId); 122 123 /** 124 * Returns the class p k of this ticket. 125 * 126 * @return the class p k of this ticket 127 */ 128 public long getClassPK(); 129 130 /** 131 * Sets the class p k of this ticket. 132 * 133 * @param classPK the class p k of this ticket 134 */ 135 public void setClassPK(long classPK); 136 137 /** 138 * Returns the key of this ticket. 139 * 140 * @return the key of this ticket 141 */ 142 @AutoEscape 143 public String getKey(); 144 145 /** 146 * Sets the key of this ticket. 147 * 148 * @param key the key of this ticket 149 */ 150 public void setKey(String key); 151 152 /** 153 * Returns the type of this ticket. 154 * 155 * @return the type of this ticket 156 */ 157 public int getType(); 158 159 /** 160 * Sets the type of this ticket. 161 * 162 * @param type the type of this ticket 163 */ 164 public void setType(int type); 165 166 /** 167 * Returns the extra info of this ticket. 168 * 169 * @return the extra info of this ticket 170 */ 171 @AutoEscape 172 public String getExtraInfo(); 173 174 /** 175 * Sets the extra info of this ticket. 176 * 177 * @param extraInfo the extra info of this ticket 178 */ 179 public void setExtraInfo(String extraInfo); 180 181 /** 182 * Returns the expiration date of this ticket. 183 * 184 * @return the expiration date of this ticket 185 */ 186 public Date getExpirationDate(); 187 188 /** 189 * Sets the expiration date of this ticket. 190 * 191 * @param expirationDate the expiration date of this ticket 192 */ 193 public void setExpirationDate(Date expirationDate); 194 195 public boolean isNew(); 196 197 public void setNew(boolean n); 198 199 public boolean isCachedModel(); 200 201 public void setCachedModel(boolean cachedModel); 202 203 public boolean isEscapedModel(); 204 205 public Serializable getPrimaryKeyObj(); 206 207 public void setPrimaryKeyObj(Serializable primaryKeyObj); 208 209 public ExpandoBridge getExpandoBridge(); 210 211 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 212 213 public Object clone(); 214 215 public int compareTo(Ticket ticket); 216 217 public int hashCode(); 218 219 public CacheModel<Ticket> toCacheModel(); 220 221 public Ticket toEscapedModel(); 222 223 public String toString(); 224 225 public String toXmlString(); 226 }