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.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> { 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 image ID of this image. 065 * 066 * @return the image ID of this image 067 */ 068 public long getImageId(); 069 070 /** 071 * Sets the image ID of this image. 072 * 073 * @param imageId the image ID of this image 074 */ 075 public void setImageId(long imageId); 076 077 /** 078 * Returns the modified date of this image. 079 * 080 * @return the modified date of this image 081 */ 082 public Date getModifiedDate(); 083 084 /** 085 * Sets the modified date of this image. 086 * 087 * @param modifiedDate the modified date of this image 088 */ 089 public void setModifiedDate(Date modifiedDate); 090 091 /** 092 * Returns the type of this image. 093 * 094 * @return the type of this image 095 */ 096 @AutoEscape 097 public String getType(); 098 099 /** 100 * Sets the type of this image. 101 * 102 * @param type the type of this image 103 */ 104 public void setType(String type); 105 106 /** 107 * Returns the height of this image. 108 * 109 * @return the height of this image 110 */ 111 public int getHeight(); 112 113 /** 114 * Sets the height of this image. 115 * 116 * @param height the height of this image 117 */ 118 public void setHeight(int height); 119 120 /** 121 * Returns the width of this image. 122 * 123 * @return the width of this image 124 */ 125 public int getWidth(); 126 127 /** 128 * Sets the width of this image. 129 * 130 * @param width the width of this image 131 */ 132 public void setWidth(int width); 133 134 /** 135 * Returns the size of this image. 136 * 137 * @return the size of this image 138 */ 139 public int getSize(); 140 141 /** 142 * Sets the size of this image. 143 * 144 * @param size the size of this image 145 */ 146 public void setSize(int size); 147 148 @Override 149 public boolean isNew(); 150 151 @Override 152 public void setNew(boolean n); 153 154 @Override 155 public boolean isCachedModel(); 156 157 @Override 158 public void setCachedModel(boolean cachedModel); 159 160 @Override 161 public boolean isEscapedModel(); 162 163 @Override 164 public Serializable getPrimaryKeyObj(); 165 166 @Override 167 public void setPrimaryKeyObj(Serializable primaryKeyObj); 168 169 @Override 170 public ExpandoBridge getExpandoBridge(); 171 172 @Override 173 public void setExpandoBridgeAttributes(BaseModel<?> baseModel); 174 175 @Override 176 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); 177 178 @Override 179 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 180 181 @Override 182 public Object clone(); 183 184 @Override 185 public int compareTo(Image image); 186 187 @Override 188 public int hashCode(); 189 190 @Override 191 public CacheModel<Image> toCacheModel(); 192 193 @Override 194 public Image toEscapedModel(); 195 196 @Override 197 public Image toUnescapedModel(); 198 199 @Override 200 public String toString(); 201 202 @Override 203 public String toXmlString(); 204 }