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.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 public boolean isNew(); 157 158 public void setNew(boolean n); 159 160 public boolean isCachedModel(); 161 162 public void setCachedModel(boolean cachedModel); 163 164 public boolean isEscapedModel(); 165 166 public void setEscapedModel(boolean escapedModel); 167 168 public Serializable getPrimaryKeyObj(); 169 170 public ExpandoBridge getExpandoBridge(); 171 172 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 173 174 public Object clone(); 175 176 public int compareTo(ExpandoColumn expandoColumn); 177 178 public int hashCode(); 179 180 public ExpandoColumn toEscapedModel(); 181 182 public String toString(); 183 184 public String toXmlString(); 185 }