001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 013 */ 014 015 package com.liferay.portlet.expando.model; 016 017 import com.liferay.portal.model.BaseModel; 018 import com.liferay.portal.service.ServiceContext; 019 020 import java.io.Serializable; 021 022 /** 023 * 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. 024 * 025 * <p> 026 * 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}. 027 * </p> 028 * 029 * <p> 030 * Never modify or reference this interface directly. All methods that expect a expando row model instance should use the {@link ExpandoRow} interface instead. 031 * </p> 032 * 033 * @author Brian Wing Shun Chan 034 * @see ExpandoRow 035 * @see com.liferay.portlet.expando.model.impl.ExpandoRowImpl 036 * @see com.liferay.portlet.expando.model.impl.ExpandoRowModelImpl 037 * @generated 038 */ 039 public interface ExpandoRowModel extends BaseModel<ExpandoRow> { 040 /** 041 * Gets the primary key of this expando row. 042 * 043 * @return the primary key of this expando row 044 */ 045 public long getPrimaryKey(); 046 047 /** 048 * Sets the primary key of this expando row 049 * 050 * @param pk the primary key of this expando row 051 */ 052 public void setPrimaryKey(long pk); 053 054 /** 055 * Gets the row id of this expando row. 056 * 057 * @return the row id of this expando row 058 */ 059 public long getRowId(); 060 061 /** 062 * Sets the row id of this expando row. 063 * 064 * @param rowId the row id of this expando row 065 */ 066 public void setRowId(long rowId); 067 068 /** 069 * Gets the company id of this expando row. 070 * 071 * @return the company id of this expando row 072 */ 073 public long getCompanyId(); 074 075 /** 076 * Sets the company id of this expando row. 077 * 078 * @param companyId the company id of this expando row 079 */ 080 public void setCompanyId(long companyId); 081 082 /** 083 * Gets the table id of this expando row. 084 * 085 * @return the table id of this expando row 086 */ 087 public long getTableId(); 088 089 /** 090 * Sets the table id of this expando row. 091 * 092 * @param tableId the table id of this expando row 093 */ 094 public void setTableId(long tableId); 095 096 /** 097 * Gets the class p k of this expando row. 098 * 099 * @return the class p k of this expando row 100 */ 101 public long getClassPK(); 102 103 /** 104 * Sets the class p k of this expando row. 105 * 106 * @param classPK the class p k of this expando row 107 */ 108 public void setClassPK(long classPK); 109 110 public boolean isNew(); 111 112 public void setNew(boolean n); 113 114 public boolean isCachedModel(); 115 116 public void setCachedModel(boolean cachedModel); 117 118 public boolean isEscapedModel(); 119 120 public void setEscapedModel(boolean escapedModel); 121 122 public Serializable getPrimaryKeyObj(); 123 124 public ExpandoBridge getExpandoBridge(); 125 126 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 127 128 public Object clone(); 129 130 public int compareTo(ExpandoRow expandoRow); 131 132 public int hashCode(); 133 134 public ExpandoRow toEscapedModel(); 135 136 public String toString(); 137 138 public String toXmlString(); 139 }