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 ExpandoTable service. Represents a row in the "ExpandoTable" 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.ExpandoTableModelImpl} 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.ExpandoTableImpl}. 028 * </p> 029 * 030 * <p> 031 * Never modify or reference this interface directly. All methods that expect a expando table model instance should use the {@link ExpandoTable} interface instead. 032 * </p> 033 * 034 * @author Brian Wing Shun Chan 035 * @see ExpandoTable 036 * @see com.liferay.portlet.expando.model.impl.ExpandoTableImpl 037 * @see com.liferay.portlet.expando.model.impl.ExpandoTableModelImpl 038 * @generated 039 */ 040 public interface ExpandoTableModel extends BaseModel<ExpandoTable> { 041 /** 042 * Gets the primary key of this expando table. 043 * 044 * @return the primary key of this expando table 045 */ 046 public long getPrimaryKey(); 047 048 /** 049 * Sets the primary key of this expando table 050 * 051 * @param pk the primary key of this expando table 052 */ 053 public void setPrimaryKey(long pk); 054 055 /** 056 * Gets the table id of this expando table. 057 * 058 * @return the table id of this expando table 059 */ 060 public long getTableId(); 061 062 /** 063 * Sets the table id of this expando table. 064 * 065 * @param tableId the table id of this expando table 066 */ 067 public void setTableId(long tableId); 068 069 /** 070 * Gets the company id of this expando table. 071 * 072 * @return the company id of this expando table 073 */ 074 public long getCompanyId(); 075 076 /** 077 * Sets the company id of this expando table. 078 * 079 * @param companyId the company id of this expando table 080 */ 081 public void setCompanyId(long companyId); 082 083 /** 084 * Gets the class name of the model instance this expando table is polymorphically associated with. 085 * 086 * @return the class name of the model instance this expando table is polymorphically associated with 087 */ 088 public String getClassName(); 089 090 /** 091 * Gets the class name id of this expando table. 092 * 093 * @return the class name id of this expando table 094 */ 095 public long getClassNameId(); 096 097 /** 098 * Sets the class name id of this expando table. 099 * 100 * @param classNameId the class name id of this expando table 101 */ 102 public void setClassNameId(long classNameId); 103 104 /** 105 * Gets the name of this expando table. 106 * 107 * @return the name of this expando table 108 */ 109 @AutoEscape 110 public String getName(); 111 112 /** 113 * Sets the name of this expando table. 114 * 115 * @param name the name of this expando table 116 */ 117 public void setName(String name); 118 119 /** 120 * Gets a copy of this expando table as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}. 121 * 122 * @return the escaped model instance 123 * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler 124 */ 125 public ExpandoTable toEscapedModel(); 126 127 public boolean isNew(); 128 129 public void setNew(boolean n); 130 131 public boolean isCachedModel(); 132 133 public void setCachedModel(boolean cachedModel); 134 135 public boolean isEscapedModel(); 136 137 public void setEscapedModel(boolean escapedModel); 138 139 public Serializable getPrimaryKeyObj(); 140 141 public ExpandoBridge getExpandoBridge(); 142 143 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 144 145 public Object clone(); 146 147 public int compareTo(ExpandoTable expandoTable); 148 149 public int hashCode(); 150 151 public String toString(); 152 153 public String toXmlString(); 154 }