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.model.BaseModel; 018 import com.liferay.portal.model.CacheModel; 019 import com.liferay.portal.service.ServiceContext; 020 021 import java.io.Serializable; 022 023 /** 024 * 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. 025 * 026 * <p> 027 * 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}. 028 * </p> 029 * 030 * @author Brian Wing Shun Chan 031 * @see ExpandoRow 032 * @see com.liferay.portlet.expando.model.impl.ExpandoRowImpl 033 * @see com.liferay.portlet.expando.model.impl.ExpandoRowModelImpl 034 * @generated 035 */ 036 public interface ExpandoRowModel extends BaseModel<ExpandoRow> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * Never modify or reference this interface directly. All methods that expect a expando row model instance should use the {@link ExpandoRow} interface instead. 041 */ 042 043 /** 044 * Returns the primary key of this expando row. 045 * 046 * @return the primary key of this expando row 047 */ 048 public long getPrimaryKey(); 049 050 /** 051 * Sets the primary key of this expando row. 052 * 053 * @param primaryKey the primary key of this expando row 054 */ 055 public void setPrimaryKey(long primaryKey); 056 057 /** 058 * Returns the row ID of this expando row. 059 * 060 * @return the row ID of this expando row 061 */ 062 public long getRowId(); 063 064 /** 065 * Sets the row ID of this expando row. 066 * 067 * @param rowId the row ID of this expando row 068 */ 069 public void setRowId(long rowId); 070 071 /** 072 * Returns the company ID of this expando row. 073 * 074 * @return the company ID of this expando row 075 */ 076 public long getCompanyId(); 077 078 /** 079 * Sets the company ID of this expando row. 080 * 081 * @param companyId the company ID of this expando row 082 */ 083 public void setCompanyId(long companyId); 084 085 /** 086 * Returns the table ID of this expando row. 087 * 088 * @return the table ID of this expando row 089 */ 090 public long getTableId(); 091 092 /** 093 * Sets the table ID of this expando row. 094 * 095 * @param tableId the table ID of this expando row 096 */ 097 public void setTableId(long tableId); 098 099 /** 100 * Returns the class p k of this expando row. 101 * 102 * @return the class p k of this expando row 103 */ 104 public long getClassPK(); 105 106 /** 107 * Sets the class p k of this expando row. 108 * 109 * @param classPK the class p k of this expando row 110 */ 111 public void setClassPK(long classPK); 112 113 public boolean isNew(); 114 115 public void setNew(boolean n); 116 117 public boolean isCachedModel(); 118 119 public void setCachedModel(boolean cachedModel); 120 121 public boolean isEscapedModel(); 122 123 public Serializable getPrimaryKeyObj(); 124 125 public void setPrimaryKeyObj(Serializable primaryKeyObj); 126 127 public ExpandoBridge getExpandoBridge(); 128 129 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 130 131 public Object clone(); 132 133 public int compareTo(ExpandoRow expandoRow); 134 135 public int hashCode(); 136 137 public CacheModel<ExpandoRow> toCacheModel(); 138 139 public ExpandoRow toEscapedModel(); 140 141 public ExpandoRow toUnescapedModel(); 142 143 public String toString(); 144 145 public String toXmlString(); 146 }