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 ExpandoValue service. Represents a row in the "ExpandoValue" 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.ExpandoValueModelImpl} 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.ExpandoValueImpl}. 028 * </p> 029 * 030 * <p> 031 * Never modify or reference this interface directly. All methods that expect a expando value model instance should use the {@link ExpandoValue} interface instead. 032 * </p> 033 * 034 * @author Brian Wing Shun Chan 035 * @see ExpandoValue 036 * @see com.liferay.portlet.expando.model.impl.ExpandoValueImpl 037 * @see com.liferay.portlet.expando.model.impl.ExpandoValueModelImpl 038 * @generated 039 */ 040 public interface ExpandoValueModel extends BaseModel<ExpandoValue> { 041 /** 042 * Gets the primary key of this expando value. 043 * 044 * @return the primary key of this expando value 045 */ 046 public long getPrimaryKey(); 047 048 /** 049 * Sets the primary key of this expando value 050 * 051 * @param pk the primary key of this expando value 052 */ 053 public void setPrimaryKey(long pk); 054 055 /** 056 * Gets the value id of this expando value. 057 * 058 * @return the value id of this expando value 059 */ 060 public long getValueId(); 061 062 /** 063 * Sets the value id of this expando value. 064 * 065 * @param valueId the value id of this expando value 066 */ 067 public void setValueId(long valueId); 068 069 /** 070 * Gets the company id of this expando value. 071 * 072 * @return the company id of this expando value 073 */ 074 public long getCompanyId(); 075 076 /** 077 * Sets the company id of this expando value. 078 * 079 * @param companyId the company id of this expando value 080 */ 081 public void setCompanyId(long companyId); 082 083 /** 084 * Gets the table id of this expando value. 085 * 086 * @return the table id of this expando value 087 */ 088 public long getTableId(); 089 090 /** 091 * Sets the table id of this expando value. 092 * 093 * @param tableId the table id of this expando value 094 */ 095 public void setTableId(long tableId); 096 097 /** 098 * Gets the column id of this expando value. 099 * 100 * @return the column id of this expando value 101 */ 102 public long getColumnId(); 103 104 /** 105 * Sets the column id of this expando value. 106 * 107 * @param columnId the column id of this expando value 108 */ 109 public void setColumnId(long columnId); 110 111 /** 112 * Gets the row id of this expando value. 113 * 114 * @return the row id of this expando value 115 */ 116 public long getRowId(); 117 118 /** 119 * Sets the row id of this expando value. 120 * 121 * @param rowId the row id of this expando value 122 */ 123 public void setRowId(long rowId); 124 125 /** 126 * Gets the class name of the model instance this expando value is polymorphically associated with. 127 * 128 * @return the class name of the model instance this expando value is polymorphically associated with 129 */ 130 public String getClassName(); 131 132 /** 133 * Gets the class name id of this expando value. 134 * 135 * @return the class name id of this expando value 136 */ 137 public long getClassNameId(); 138 139 /** 140 * Sets the class name id of this expando value. 141 * 142 * @param classNameId the class name id of this expando value 143 */ 144 public void setClassNameId(long classNameId); 145 146 /** 147 * Gets the class p k of this expando value. 148 * 149 * @return the class p k of this expando value 150 */ 151 public long getClassPK(); 152 153 /** 154 * Sets the class p k of this expando value. 155 * 156 * @param classPK the class p k of this expando value 157 */ 158 public void setClassPK(long classPK); 159 160 /** 161 * Gets the data of this expando value. 162 * 163 * @return the data of this expando value 164 */ 165 @AutoEscape 166 public String getData(); 167 168 /** 169 * Sets the data of this expando value. 170 * 171 * @param data the data of this expando value 172 */ 173 public void setData(String data); 174 175 public boolean isNew(); 176 177 public void setNew(boolean n); 178 179 public boolean isCachedModel(); 180 181 public void setCachedModel(boolean cachedModel); 182 183 public boolean isEscapedModel(); 184 185 public void setEscapedModel(boolean escapedModel); 186 187 public Serializable getPrimaryKeyObj(); 188 189 public ExpandoBridge getExpandoBridge(); 190 191 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 192 193 public Object clone(); 194 195 public int compareTo(ExpandoValue expandoValue); 196 197 public int hashCode(); 198 199 public ExpandoValue toEscapedModel(); 200 201 public String toString(); 202 203 public String toXmlString(); 204 }