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