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 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 /** 176 * Gets a copy of this expando value as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}. 177 * 178 * @return the escaped model instance 179 * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler 180 */ 181 public ExpandoValue toEscapedModel(); 182 183 public boolean isNew(); 184 185 public void setNew(boolean n); 186 187 public boolean isCachedModel(); 188 189 public void setCachedModel(boolean cachedModel); 190 191 public boolean isEscapedModel(); 192 193 public void setEscapedModel(boolean escapedModel); 194 195 public Serializable getPrimaryKeyObj(); 196 197 public ExpandoBridge getExpandoBridge(); 198 199 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 200 201 public Object clone(); 202 203 public int compareTo(ExpandoValue expandoValue); 204 205 public int hashCode(); 206 207 public String toString(); 208 209 public String toXmlString(); 210 }