001    /**
002     * Copyright (c) 2000-2012 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 type of this image.
090             *
091             * @return the type of this image
092             */
093            @AutoEscape
094            public String getType();
095    
096            /**
097             * Sets the type of this image.
098             *
099             * @param type the type of this image
100             */
101            public void setType(String type);
102    
103            /**
104             * Returns the height of this image.
105             *
106             * @return the height of this image
107             */
108            public int getHeight();
109    
110            /**
111             * Sets the height of this image.
112             *
113             * @param height the height of this image
114             */
115            public void setHeight(int height);
116    
117            /**
118             * Returns the width of this image.
119             *
120             * @return the width of this image
121             */
122            public int getWidth();
123    
124            /**
125             * Sets the width of this image.
126             *
127             * @param width the width of this image
128             */
129            public void setWidth(int width);
130    
131            /**
132             * Returns the size of this image.
133             *
134             * @return the size of this image
135             */
136            public int getSize();
137    
138            /**
139             * Sets the size of this image.
140             *
141             * @param size the size of this image
142             */
143            public void setSize(int size);
144    
145            public boolean isNew();
146    
147            public void setNew(boolean n);
148    
149            public boolean isCachedModel();
150    
151            public void setCachedModel(boolean cachedModel);
152    
153            public boolean isEscapedModel();
154    
155            public Serializable getPrimaryKeyObj();
156    
157            public void setPrimaryKeyObj(Serializable primaryKeyObj);
158    
159            public ExpandoBridge getExpandoBridge();
160    
161            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
162    
163            public Object clone();
164    
165            public int compareTo(Image image);
166    
167            public int hashCode();
168    
169            public CacheModel<Image> toCacheModel();
170    
171            public Image toEscapedModel();
172    
173            public Image toUnescapedModel();
174    
175            public String toString();
176    
177            public String toXmlString();
178    }