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 com.liferay.portal.kernel.bean.AutoEscape; 018 import com.liferay.portal.service.ServiceContext; 019 020 import com.liferay.portlet.expando.model.ExpandoBridge; 021 022 import java.io.Serializable; 023 024 import java.util.Date; 025 026 /** 027 * 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. 028 * 029 * <p> 030 * 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}. 031 * </p> 032 * 033 * @author Brian Wing Shun Chan 034 * @see Image 035 * @see com.liferay.portal.model.impl.ImageImpl 036 * @see com.liferay.portal.model.impl.ImageModelImpl 037 * @generated 038 */ 039 public interface ImageModel extends BaseModel<Image> { 040 /* 041 * NOTE FOR DEVELOPERS: 042 * 043 * Never modify or reference this interface directly. All methods that expect a image model instance should use the {@link Image} interface instead. 044 */ 045 046 /** 047 * Returns the primary key of this image. 048 * 049 * @return the primary key of this image 050 */ 051 public long getPrimaryKey(); 052 053 /** 054 * Sets the primary key of this image. 055 * 056 * @param primaryKey the primary key of this image 057 */ 058 public void setPrimaryKey(long primaryKey); 059 060 /** 061 * Returns the image ID of this image. 062 * 063 * @return the image ID of this image 064 */ 065 public long getImageId(); 066 067 /** 068 * Sets the image ID of this image. 069 * 070 * @param imageId the image ID of this image 071 */ 072 public void setImageId(long imageId); 073 074 /** 075 * Returns the modified date of this image. 076 * 077 * @return the modified date of this image 078 */ 079 public Date getModifiedDate(); 080 081 /** 082 * Sets the modified date of this image. 083 * 084 * @param modifiedDate the modified date of this image 085 */ 086 public void setModifiedDate(Date modifiedDate); 087 088 /** 089 * Returns the text of this image. 090 * 091 * @return the text of this image 092 */ 093 @AutoEscape 094 public String getText(); 095 096 /** 097 * Sets the text of this image. 098 * 099 * @param text the text of this image 100 */ 101 public void setText(String text); 102 103 /** 104 * Returns the type of this image. 105 * 106 * @return the type of this image 107 */ 108 @AutoEscape 109 public String getType(); 110 111 /** 112 * Sets the type of this image. 113 * 114 * @param type the type of this image 115 */ 116 public void setType(String type); 117 118 /** 119 * Returns the height of this image. 120 * 121 * @return the height of this image 122 */ 123 public int getHeight(); 124 125 /** 126 * Sets the height of this image. 127 * 128 * @param height the height of this image 129 */ 130 public void setHeight(int height); 131 132 /** 133 * Returns the width of this image. 134 * 135 * @return the width of this image 136 */ 137 public int getWidth(); 138 139 /** 140 * Sets the width of this image. 141 * 142 * @param width the width of this image 143 */ 144 public void setWidth(int width); 145 146 /** 147 * Returns the size of this image. 148 * 149 * @return the size of this image 150 */ 151 public int getSize(); 152 153 /** 154 * Sets the size of this image. 155 * 156 * @param size the size of this image 157 */ 158 public void setSize(int size); 159 160 public boolean isNew(); 161 162 public void setNew(boolean n); 163 164 public boolean isCachedModel(); 165 166 public void setCachedModel(boolean cachedModel); 167 168 public boolean isEscapedModel(); 169 170 public Serializable getPrimaryKeyObj(); 171 172 public void setPrimaryKeyObj(Serializable primaryKeyObj); 173 174 public ExpandoBridge getExpandoBridge(); 175 176 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 177 178 public Object clone(); 179 180 public int compareTo(Image image); 181 182 public int hashCode(); 183 184 public CacheModel<Image> toCacheModel(); 185 186 public Image toEscapedModel(); 187 188 public Image toUnescapedModel(); 189 190 public String toString(); 191 192 public String toXmlString(); 193 }