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 { 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 modified date of this image. 095 * 096 * @return the modified date of this image 097 */ 098 public Date getModifiedDate(); 099 100 /** 101 * Sets the modified date of this image. 102 * 103 * @param modifiedDate the modified date of this image 104 */ 105 public void setModifiedDate(Date modifiedDate); 106 107 /** 108 * Returns the type of this image. 109 * 110 * @return the type of this image 111 */ 112 @AutoEscape 113 public String getType(); 114 115 /** 116 * Sets the type of this image. 117 * 118 * @param type the type of this image 119 */ 120 public void setType(String type); 121 122 /** 123 * Returns the height of this image. 124 * 125 * @return the height of this image 126 */ 127 public int getHeight(); 128 129 /** 130 * Sets the height of this image. 131 * 132 * @param height the height of this image 133 */ 134 public void setHeight(int height); 135 136 /** 137 * Returns the width of this image. 138 * 139 * @return the width of this image 140 */ 141 public int getWidth(); 142 143 /** 144 * Sets the width of this image. 145 * 146 * @param width the width of this image 147 */ 148 public void setWidth(int width); 149 150 /** 151 * Returns the size of this image. 152 * 153 * @return the size of this image 154 */ 155 public int getSize(); 156 157 /** 158 * Sets the size of this image. 159 * 160 * @param size the size of this image 161 */ 162 public void setSize(int size); 163 164 @Override 165 public boolean isNew(); 166 167 @Override 168 public void setNew(boolean n); 169 170 @Override 171 public boolean isCachedModel(); 172 173 @Override 174 public void setCachedModel(boolean cachedModel); 175 176 @Override 177 public boolean isEscapedModel(); 178 179 @Override 180 public Serializable getPrimaryKeyObj(); 181 182 @Override 183 public void setPrimaryKeyObj(Serializable primaryKeyObj); 184 185 @Override 186 public ExpandoBridge getExpandoBridge(); 187 188 @Override 189 public void setExpandoBridgeAttributes(BaseModel<?> baseModel); 190 191 @Override 192 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); 193 194 @Override 195 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 196 197 @Override 198 public Object clone(); 199 200 @Override 201 public int compareTo(com.liferay.portal.model.Image image); 202 203 @Override 204 public int hashCode(); 205 206 @Override 207 public CacheModel<com.liferay.portal.model.Image> toCacheModel(); 208 209 @Override 210 public com.liferay.portal.model.Image toEscapedModel(); 211 212 @Override 213 public com.liferay.portal.model.Image toUnescapedModel(); 214 215 @Override 216 public String toString(); 217 218 @Override 219 public String toXmlString(); 220 }