001 /** 002 * Copyright (c) 2000-2013 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.bean.AutoEscape; 018 import com.liferay.portal.model.BaseModel; 019 import com.liferay.portal.model.CacheModel; 020 import com.liferay.portal.model.TypedModel; 021 import com.liferay.portal.service.ServiceContext; 022 023 import java.io.Serializable; 024 025 /** 026 * 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. 027 * 028 * <p> 029 * 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}. 030 * </p> 031 * 032 * @author Brian Wing Shun Chan 033 * @see ExpandoTable 034 * @see com.liferay.portlet.expando.model.impl.ExpandoTableImpl 035 * @see com.liferay.portlet.expando.model.impl.ExpandoTableModelImpl 036 * @generated 037 */ 038 public interface ExpandoTableModel extends BaseModel<ExpandoTable>, TypedModel { 039 /* 040 * NOTE FOR DEVELOPERS: 041 * 042 * Never modify or reference this interface directly. All methods that expect a expando table model instance should use the {@link ExpandoTable} interface instead. 043 */ 044 045 /** 046 * Returns the primary key of this expando table. 047 * 048 * @return the primary key of this expando table 049 */ 050 public long getPrimaryKey(); 051 052 /** 053 * Sets the primary key of this expando table. 054 * 055 * @param primaryKey the primary key of this expando table 056 */ 057 public void setPrimaryKey(long primaryKey); 058 059 /** 060 * Returns the table ID of this expando table. 061 * 062 * @return the table ID of this expando table 063 */ 064 public long getTableId(); 065 066 /** 067 * Sets the table ID of this expando table. 068 * 069 * @param tableId the table ID of this expando table 070 */ 071 public void setTableId(long tableId); 072 073 /** 074 * Returns the company ID of this expando table. 075 * 076 * @return the company ID of this expando table 077 */ 078 public long getCompanyId(); 079 080 /** 081 * Sets the company ID of this expando table. 082 * 083 * @param companyId the company ID of this expando table 084 */ 085 public void setCompanyId(long companyId); 086 087 /** 088 * Returns the fully qualified class name of this expando table. 089 * 090 * @return the fully qualified class name of this expando table 091 */ 092 @Override 093 public String getClassName(); 094 095 public void setClassName(String className); 096 097 /** 098 * Returns the class name ID of this expando table. 099 * 100 * @return the class name ID of this expando table 101 */ 102 @Override 103 public long getClassNameId(); 104 105 /** 106 * Sets the class name ID of this expando table. 107 * 108 * @param classNameId the class name ID of this expando table 109 */ 110 @Override 111 public void setClassNameId(long classNameId); 112 113 /** 114 * Returns the name of this expando table. 115 * 116 * @return the name of this expando table 117 */ 118 @AutoEscape 119 public String getName(); 120 121 /** 122 * Sets the name of this expando table. 123 * 124 * @param name the name of this expando table 125 */ 126 public void setName(String name); 127 128 @Override 129 public boolean isNew(); 130 131 @Override 132 public void setNew(boolean n); 133 134 @Override 135 public boolean isCachedModel(); 136 137 @Override 138 public void setCachedModel(boolean cachedModel); 139 140 @Override 141 public boolean isEscapedModel(); 142 143 @Override 144 public Serializable getPrimaryKeyObj(); 145 146 @Override 147 public void setPrimaryKeyObj(Serializable primaryKeyObj); 148 149 @Override 150 public ExpandoBridge getExpandoBridge(); 151 152 @Override 153 public void setExpandoBridgeAttributes(BaseModel<?> baseModel); 154 155 @Override 156 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); 157 158 @Override 159 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 160 161 @Override 162 public Object clone(); 163 164 @Override 165 public int compareTo(ExpandoTable expandoTable); 166 167 @Override 168 public int hashCode(); 169 170 @Override 171 public CacheModel<ExpandoTable> toCacheModel(); 172 173 @Override 174 public ExpandoTable toEscapedModel(); 175 176 @Override 177 public ExpandoTable toUnescapedModel(); 178 179 @Override 180 public String toString(); 181 182 @Override 183 public String toXmlString(); 184 }