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