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