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