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.portlet.trash.model; 016 017 import com.liferay.portal.model.AttachedModel; 018 import com.liferay.portal.model.BaseModel; 019 import com.liferay.portal.model.CacheModel; 020 import com.liferay.portal.service.ServiceContext; 021 022 import com.liferay.portlet.expando.model.ExpandoBridge; 023 024 import java.io.Serializable; 025 026 /** 027 * The base model interface for the TrashVersion service. Represents a row in the "TrashVersion" 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.portlet.trash.model.impl.TrashVersionModelImpl} 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.portlet.trash.model.impl.TrashVersionImpl}. 031 * </p> 032 * 033 * @author Brian Wing Shun Chan 034 * @see TrashVersion 035 * @see com.liferay.portlet.trash.model.impl.TrashVersionImpl 036 * @see com.liferay.portlet.trash.model.impl.TrashVersionModelImpl 037 * @generated 038 */ 039 public interface TrashVersionModel extends AttachedModel, BaseModel<TrashVersion> { 040 /* 041 * NOTE FOR DEVELOPERS: 042 * 043 * Never modify or reference this interface directly. All methods that expect a trash version model instance should use the {@link TrashVersion} interface instead. 044 */ 045 046 /** 047 * Returns the primary key of this trash version. 048 * 049 * @return the primary key of this trash version 050 */ 051 public long getPrimaryKey(); 052 053 /** 054 * Sets the primary key of this trash version. 055 * 056 * @param primaryKey the primary key of this trash version 057 */ 058 public void setPrimaryKey(long primaryKey); 059 060 /** 061 * Returns the version ID of this trash version. 062 * 063 * @return the version ID of this trash version 064 */ 065 public long getVersionId(); 066 067 /** 068 * Sets the version ID of this trash version. 069 * 070 * @param versionId the version ID of this trash version 071 */ 072 public void setVersionId(long versionId); 073 074 /** 075 * Returns the entry ID of this trash version. 076 * 077 * @return the entry ID of this trash version 078 */ 079 public long getEntryId(); 080 081 /** 082 * Sets the entry ID of this trash version. 083 * 084 * @param entryId the entry ID of this trash version 085 */ 086 public void setEntryId(long entryId); 087 088 /** 089 * Returns the fully qualified class name of this trash version. 090 * 091 * @return the fully qualified class name of this trash version 092 */ 093 @Override 094 public String getClassName(); 095 096 public void setClassName(String className); 097 098 /** 099 * Returns the class name ID of this trash version. 100 * 101 * @return the class name ID of this trash version 102 */ 103 @Override 104 public long getClassNameId(); 105 106 /** 107 * Sets the class name ID of this trash version. 108 * 109 * @param classNameId the class name ID of this trash version 110 */ 111 @Override 112 public void setClassNameId(long classNameId); 113 114 /** 115 * Returns the class p k of this trash version. 116 * 117 * @return the class p k of this trash version 118 */ 119 @Override 120 public long getClassPK(); 121 122 /** 123 * Sets the class p k of this trash version. 124 * 125 * @param classPK the class p k of this trash version 126 */ 127 @Override 128 public void setClassPK(long classPK); 129 130 /** 131 * Returns the status of this trash version. 132 * 133 * @return the status of this trash version 134 */ 135 public int getStatus(); 136 137 /** 138 * Sets the status of this trash version. 139 * 140 * @param status the status of this trash version 141 */ 142 public void setStatus(int status); 143 144 @Override 145 public boolean isNew(); 146 147 @Override 148 public void setNew(boolean n); 149 150 @Override 151 public boolean isCachedModel(); 152 153 @Override 154 public void setCachedModel(boolean cachedModel); 155 156 @Override 157 public boolean isEscapedModel(); 158 159 @Override 160 public Serializable getPrimaryKeyObj(); 161 162 @Override 163 public void setPrimaryKeyObj(Serializable primaryKeyObj); 164 165 @Override 166 public ExpandoBridge getExpandoBridge(); 167 168 @Override 169 public void setExpandoBridgeAttributes(BaseModel<?> baseModel); 170 171 @Override 172 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); 173 174 @Override 175 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 176 177 @Override 178 public Object clone(); 179 180 @Override 181 public int compareTo(TrashVersion trashVersion); 182 183 @Override 184 public int hashCode(); 185 186 @Override 187 public CacheModel<TrashVersion> toCacheModel(); 188 189 @Override 190 public TrashVersion toEscapedModel(); 191 192 @Override 193 public TrashVersion toUnescapedModel(); 194 195 @Override 196 public String toString(); 197 198 @Override 199 public String toXmlString(); 200 }