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.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 /** 111 * Gets a copy of this expando row as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}. 112 * 113 * @return the escaped model instance 114 * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler 115 */ 116 public ExpandoRow toEscapedModel(); 117 118 public boolean isNew(); 119 120 public void setNew(boolean n); 121 122 public boolean isCachedModel(); 123 124 public void setCachedModel(boolean cachedModel); 125 126 public boolean isEscapedModel(); 127 128 public void setEscapedModel(boolean escapedModel); 129 130 public Serializable getPrimaryKeyObj(); 131 132 public ExpandoBridge getExpandoBridge(); 133 134 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 135 136 public Object clone(); 137 138 public int compareTo(ExpandoRow expandoRow); 139 140 public int hashCode(); 141 142 public String toString(); 143 144 public String toXmlString(); 145 }