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 Image service. Represents a row in the "Image" 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.ImageModelImpl} 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.ImageImpl}. 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see Image 037 * @see com.liferay.portal.model.impl.ImageImpl 038 * @see com.liferay.portal.model.impl.ImageModelImpl 039 * @generated 040 */ 041 @ProviderType 042 public interface ImageModel extends BaseModel<Image>, MVCCModel, ShardedModel { 043 /* 044 * NOTE FOR DEVELOPERS: 045 * 046 * Never modify or reference this interface directly. All methods that expect a image model instance should use the {@link Image} interface instead. 047 */ 048 049 /** 050 * Returns the primary key of this image. 051 * 052 * @return the primary key of this image 053 */ 054 public long getPrimaryKey(); 055 056 /** 057 * Sets the primary key of this image. 058 * 059 * @param primaryKey the primary key of this image 060 */ 061 public void setPrimaryKey(long primaryKey); 062 063 /** 064 * Returns the mvcc version of this image. 065 * 066 * @return the mvcc version of this image 067 */ 068 @Override 069 public long getMvccVersion(); 070 071 /** 072 * Sets the mvcc version of this image. 073 * 074 * @param mvccVersion the mvcc version of this image 075 */ 076 @Override 077 public void setMvccVersion(long mvccVersion); 078 079 /** 080 * Returns the image ID of this image. 081 * 082 * @return the image ID of this image 083 */ 084 public long getImageId(); 085 086 /** 087 * Sets the image ID of this image. 088 * 089 * @param imageId the image ID of this image 090 */ 091 public void setImageId(long imageId); 092 093 /** 094 * Returns the company ID of this image. 095 * 096 * @return the company ID of this image 097 */ 098 @Override 099 public long getCompanyId(); 100 101 /** 102 * Sets the company ID of this image. 103 * 104 * @param companyId the company ID of this image 105 */ 106 @Override 107 public void setCompanyId(long companyId); 108 109 /** 110 * Returns the modified date of this image. 111 * 112 * @return the modified date of this image 113 */ 114 public Date getModifiedDate(); 115 116 /** 117 * Sets the modified date of this image. 118 * 119 * @param modifiedDate the modified date of this image 120 */ 121 public void setModifiedDate(Date modifiedDate); 122 123 /** 124 * Returns the type of this image. 125 * 126 * @return the type of this image 127 */ 128 @AutoEscape 129 public String getType(); 130 131 /** 132 * Sets the type of this image. 133 * 134 * @param type the type of this image 135 */ 136 public void setType(String type); 137 138 /** 139 * Returns the height of this image. 140 * 141 * @return the height of this image 142 */ 143 public int getHeight(); 144 145 /** 146 * Sets the height of this image. 147 * 148 * @param height the height of this image 149 */ 150 public void setHeight(int height); 151 152 /** 153 * Returns the width of this image. 154 * 155 * @return the width of this image 156 */ 157 public int getWidth(); 158 159 /** 160 * Sets the width of this image. 161 * 162 * @param width the width of this image 163 */ 164 public void setWidth(int width); 165 166 /** 167 * Returns the size of this image. 168 * 169 * @return the size of this image 170 */ 171 public int getSize(); 172 173 /** 174 * Sets the size of this image. 175 * 176 * @param size the size of this image 177 */ 178 public void setSize(int size); 179 180 @Override 181 public boolean isNew(); 182 183 @Override 184 public void setNew(boolean n); 185 186 @Override 187 public boolean isCachedModel(); 188 189 @Override 190 public void setCachedModel(boolean cachedModel); 191 192 @Override 193 public boolean isEscapedModel(); 194 195 @Override 196 public Serializable getPrimaryKeyObj(); 197 198 @Override 199 public void setPrimaryKeyObj(Serializable primaryKeyObj); 200 201 @Override 202 public ExpandoBridge getExpandoBridge(); 203 204 @Override 205 public void setExpandoBridgeAttributes(BaseModel<?> baseModel); 206 207 @Override 208 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); 209 210 @Override 211 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 212 213 @Override 214 public Object clone(); 215 216 @Override 217 public int compareTo(com.liferay.portal.model.Image image); 218 219 @Override 220 public int hashCode(); 221 222 @Override 223 public CacheModel<com.liferay.portal.model.Image> toCacheModel(); 224 225 @Override 226 public com.liferay.portal.model.Image toEscapedModel(); 227 228 @Override 229 public com.liferay.portal.model.Image toUnescapedModel(); 230 231 @Override 232 public String toString(); 233 234 @Override 235 public String toXmlString(); 236 }