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.portlet.expando.model;
016    
017    import com.liferay.portal.kernel.bean.AutoEscape;
018    import com.liferay.portal.model.BaseModel;
019    import com.liferay.portal.model.CacheModel;
020    import com.liferay.portal.service.ServiceContext;
021    
022    import java.io.Serializable;
023    
024    /**
025     * The base model interface for the ExpandoColumn service. Represents a row in the "ExpandoColumn" database table, with each column mapped to a property of this class.
026     *
027     * <p>
028     * This interface and its corresponding implementation {@link com.liferay.portlet.expando.model.impl.ExpandoColumnModelImpl} 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.portlet.expando.model.impl.ExpandoColumnImpl}.
029     * </p>
030     *
031     * @author Brian Wing Shun Chan
032     * @see ExpandoColumn
033     * @see com.liferay.portlet.expando.model.impl.ExpandoColumnImpl
034     * @see com.liferay.portlet.expando.model.impl.ExpandoColumnModelImpl
035     * @generated
036     */
037    public interface ExpandoColumnModel extends BaseModel<ExpandoColumn> {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify or reference this interface directly. All methods that expect a expando column model instance should use the {@link ExpandoColumn} interface instead.
042             */
043    
044            /**
045             * Returns the primary key of this expando column.
046             *
047             * @return the primary key of this expando column
048             */
049            public long getPrimaryKey();
050    
051            /**
052             * Sets the primary key of this expando column.
053             *
054             * @param primaryKey the primary key of this expando column
055             */
056            public void setPrimaryKey(long primaryKey);
057    
058            /**
059             * Returns the column ID of this expando column.
060             *
061             * @return the column ID of this expando column
062             */
063            public long getColumnId();
064    
065            /**
066             * Sets the column ID of this expando column.
067             *
068             * @param columnId the column ID of this expando column
069             */
070            public void setColumnId(long columnId);
071    
072            /**
073             * Returns the company ID of this expando column.
074             *
075             * @return the company ID of this expando column
076             */
077            public long getCompanyId();
078    
079            /**
080             * Sets the company ID of this expando column.
081             *
082             * @param companyId the company ID of this expando column
083             */
084            public void setCompanyId(long companyId);
085    
086            /**
087             * Returns the table ID of this expando column.
088             *
089             * @return the table ID of this expando column
090             */
091            public long getTableId();
092    
093            /**
094             * Sets the table ID of this expando column.
095             *
096             * @param tableId the table ID of this expando column
097             */
098            public void setTableId(long tableId);
099    
100            /**
101             * Returns the name of this expando column.
102             *
103             * @return the name of this expando column
104             */
105            @AutoEscape
106            public String getName();
107    
108            /**
109             * Sets the name of this expando column.
110             *
111             * @param name the name of this expando column
112             */
113            public void setName(String name);
114    
115            /**
116             * Returns the type of this expando column.
117             *
118             * @return the type of this expando column
119             */
120            public int getType();
121    
122            /**
123             * Sets the type of this expando column.
124             *
125             * @param type the type of this expando column
126             */
127            public void setType(int type);
128    
129            /**
130             * Returns the default data of this expando column.
131             *
132             * @return the default data of this expando column
133             */
134            @AutoEscape
135            public String getDefaultData();
136    
137            /**
138             * Sets the default data of this expando column.
139             *
140             * @param defaultData the default data of this expando column
141             */
142            public void setDefaultData(String defaultData);
143    
144            /**
145             * Returns the type settings of this expando column.
146             *
147             * @return the type settings of this expando column
148             */
149            @AutoEscape
150            public String getTypeSettings();
151    
152            /**
153             * Sets the type settings of this expando column.
154             *
155             * @param typeSettings the type settings of this expando column
156             */
157            public void setTypeSettings(String typeSettings);
158    
159            public boolean isNew();
160    
161            public void setNew(boolean n);
162    
163            public boolean isCachedModel();
164    
165            public void setCachedModel(boolean cachedModel);
166    
167            public boolean isEscapedModel();
168    
169            public Serializable getPrimaryKeyObj();
170    
171            public void setPrimaryKeyObj(Serializable primaryKeyObj);
172    
173            public ExpandoBridge getExpandoBridge();
174    
175            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
176    
177            public Object clone();
178    
179            public int compareTo(ExpandoColumn expandoColumn);
180    
181            public int hashCode();
182    
183            public CacheModel<ExpandoColumn> toCacheModel();
184    
185            public ExpandoColumn toEscapedModel();
186    
187            public ExpandoColumn toUnescapedModel();
188    
189            public String toString();
190    
191            public String toXmlString();
192    }