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 public String getClassName(); 094 095 public void setClassName(String className); 096 097 /** 098 * Returns the class name ID of this trash version. 099 * 100 * @return the class name ID of this trash version 101 */ 102 public long getClassNameId(); 103 104 /** 105 * Sets the class name ID of this trash version. 106 * 107 * @param classNameId the class name ID of this trash version 108 */ 109 public void setClassNameId(long classNameId); 110 111 /** 112 * Returns the class p k of this trash version. 113 * 114 * @return the class p k of this trash version 115 */ 116 public long getClassPK(); 117 118 /** 119 * Sets the class p k of this trash version. 120 * 121 * @param classPK the class p k of this trash version 122 */ 123 public void setClassPK(long classPK); 124 125 /** 126 * Returns the status of this trash version. 127 * 128 * @return the status of this trash version 129 */ 130 public int getStatus(); 131 132 /** 133 * Sets the status of this trash version. 134 * 135 * @param status the status of this trash version 136 */ 137 public void setStatus(int status); 138 139 public boolean isNew(); 140 141 public void setNew(boolean n); 142 143 public boolean isCachedModel(); 144 145 public void setCachedModel(boolean cachedModel); 146 147 public boolean isEscapedModel(); 148 149 public Serializable getPrimaryKeyObj(); 150 151 public void setPrimaryKeyObj(Serializable primaryKeyObj); 152 153 public ExpandoBridge getExpandoBridge(); 154 155 public void setExpandoBridgeAttributes(BaseModel<?> baseModel); 156 157 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); 158 159 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 160 161 public Object clone(); 162 163 public int compareTo(TrashVersion trashVersion); 164 165 public int hashCode(); 166 167 public CacheModel<TrashVersion> toCacheModel(); 168 169 public TrashVersion toEscapedModel(); 170 171 public TrashVersion toUnescapedModel(); 172 173 public String toString(); 174 175 public String toXmlString(); 176 }