001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.model;
016    
017    import com.liferay.portal.kernel.annotation.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     * <p>
034     * Never modify or reference this interface directly. All methods that expect a image model instance should use the {@link Image} interface instead.
035     * </p>
036     *
037     * @author Brian Wing Shun Chan
038     * @see Image
039     * @see com.liferay.portal.model.impl.ImageImpl
040     * @see com.liferay.portal.model.impl.ImageModelImpl
041     * @generated
042     */
043    public interface ImageModel extends BaseModel<Image> {
044            /**
045             * Gets the primary key of this image.
046             *
047             * @return the primary key of this image
048             */
049            public long getPrimaryKey();
050    
051            /**
052             * Sets the primary key of this image
053             *
054             * @param pk the primary key of this image
055             */
056            public void setPrimaryKey(long pk);
057    
058            /**
059             * Gets the image id of this image.
060             *
061             * @return the image id of this image
062             */
063            public long getImageId();
064    
065            /**
066             * Sets the image id of this image.
067             *
068             * @param imageId the image id of this image
069             */
070            public void setImageId(long imageId);
071    
072            /**
073             * Gets the modified date of this image.
074             *
075             * @return the modified date of this image
076             */
077            public Date getModifiedDate();
078    
079            /**
080             * Sets the modified date of this image.
081             *
082             * @param modifiedDate the modified date of this image
083             */
084            public void setModifiedDate(Date modifiedDate);
085    
086            /**
087             * Gets the text of this image.
088             *
089             * @return the text of this image
090             */
091            @AutoEscape
092            public String getText();
093    
094            /**
095             * Sets the text of this image.
096             *
097             * @param text the text of this image
098             */
099            public void setText(String text);
100    
101            /**
102             * Gets the type of this image.
103             *
104             * @return the type of this image
105             */
106            @AutoEscape
107            public String getType();
108    
109            /**
110             * Sets the type of this image.
111             *
112             * @param type the type of this image
113             */
114            public void setType(String type);
115    
116            /**
117             * Gets the height of this image.
118             *
119             * @return the height of this image
120             */
121            public int getHeight();
122    
123            /**
124             * Sets the height of this image.
125             *
126             * @param height the height of this image
127             */
128            public void setHeight(int height);
129    
130            /**
131             * Gets the width of this image.
132             *
133             * @return the width of this image
134             */
135            public int getWidth();
136    
137            /**
138             * Sets the width of this image.
139             *
140             * @param width the width of this image
141             */
142            public void setWidth(int width);
143    
144            /**
145             * Gets the size of this image.
146             *
147             * @return the size of this image
148             */
149            public int getSize();
150    
151            /**
152             * Sets the size of this image.
153             *
154             * @param size the size of this image
155             */
156            public void setSize(int size);
157    
158            public boolean isNew();
159    
160            public void setNew(boolean n);
161    
162            public boolean isCachedModel();
163    
164            public void setCachedModel(boolean cachedModel);
165    
166            public boolean isEscapedModel();
167    
168            public void setEscapedModel(boolean escapedModel);
169    
170            public Serializable getPrimaryKeyObj();
171    
172            public ExpandoBridge getExpandoBridge();
173    
174            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
175    
176            public Object clone();
177    
178            public int compareTo(Image image);
179    
180            public int hashCode();
181    
182            public Image toEscapedModel();
183    
184            public String toString();
185    
186            public String toXmlString();
187    }