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