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.messageboards.model; 016 017 import com.liferay.portal.model.AttachedModel; 018 import com.liferay.portal.model.BaseModel; 019 import com.liferay.portal.model.CacheModel; 020 import com.liferay.portal.service.ServiceContext; 021 022 import com.liferay.portlet.expando.model.ExpandoBridge; 023 024 import java.io.Serializable; 025 026 /** 027 * The base model interface for the MBDiscussion service. Represents a row in the "MBDiscussion" database table, with each column mapped to a property of this class. 028 * 029 * <p> 030 * This interface and its corresponding implementation {@link com.liferay.portlet.messageboards.model.impl.MBDiscussionModelImpl} 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.messageboards.model.impl.MBDiscussionImpl}. 031 * </p> 032 * 033 * @author Brian Wing Shun Chan 034 * @see MBDiscussion 035 * @see com.liferay.portlet.messageboards.model.impl.MBDiscussionImpl 036 * @see com.liferay.portlet.messageboards.model.impl.MBDiscussionModelImpl 037 * @generated 038 */ 039 public interface MBDiscussionModel extends AttachedModel, BaseModel<MBDiscussion> { 040 /* 041 * NOTE FOR DEVELOPERS: 042 * 043 * Never modify or reference this interface directly. All methods that expect a message boards discussion model instance should use the {@link MBDiscussion} interface instead. 044 */ 045 046 /** 047 * Returns the primary key of this message boards discussion. 048 * 049 * @return the primary key of this message boards discussion 050 */ 051 public long getPrimaryKey(); 052 053 /** 054 * Sets the primary key of this message boards discussion. 055 * 056 * @param primaryKey the primary key of this message boards discussion 057 */ 058 public void setPrimaryKey(long primaryKey); 059 060 /** 061 * Returns the discussion ID of this message boards discussion. 062 * 063 * @return the discussion ID of this message boards discussion 064 */ 065 public long getDiscussionId(); 066 067 /** 068 * Sets the discussion ID of this message boards discussion. 069 * 070 * @param discussionId the discussion ID of this message boards discussion 071 */ 072 public void setDiscussionId(long discussionId); 073 074 /** 075 * Returns the fully qualified class name of this message boards discussion. 076 * 077 * @return the fully qualified class name of this message boards discussion 078 */ 079 public String getClassName(); 080 081 public void setClassName(String className); 082 083 /** 084 * Returns the class name ID of this message boards discussion. 085 * 086 * @return the class name ID of this message boards discussion 087 */ 088 public long getClassNameId(); 089 090 /** 091 * Sets the class name ID of this message boards discussion. 092 * 093 * @param classNameId the class name ID of this message boards discussion 094 */ 095 public void setClassNameId(long classNameId); 096 097 /** 098 * Returns the class p k of this message boards discussion. 099 * 100 * @return the class p k of this message boards discussion 101 */ 102 public long getClassPK(); 103 104 /** 105 * Sets the class p k of this message boards discussion. 106 * 107 * @param classPK the class p k of this message boards discussion 108 */ 109 public void setClassPK(long classPK); 110 111 /** 112 * Returns the thread ID of this message boards discussion. 113 * 114 * @return the thread ID of this message boards discussion 115 */ 116 public long getThreadId(); 117 118 /** 119 * Sets the thread ID of this message boards discussion. 120 * 121 * @param threadId the thread ID of this message boards discussion 122 */ 123 public void setThreadId(long threadId); 124 125 public boolean isNew(); 126 127 public void setNew(boolean n); 128 129 public boolean isCachedModel(); 130 131 public void setCachedModel(boolean cachedModel); 132 133 public boolean isEscapedModel(); 134 135 public Serializable getPrimaryKeyObj(); 136 137 public void setPrimaryKeyObj(Serializable primaryKeyObj); 138 139 public ExpandoBridge getExpandoBridge(); 140 141 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 142 143 public Object clone(); 144 145 public int compareTo(MBDiscussion mbDiscussion); 146 147 public int hashCode(); 148 149 public CacheModel<MBDiscussion> toCacheModel(); 150 151 public MBDiscussion toEscapedModel(); 152 153 public MBDiscussion toUnescapedModel(); 154 155 public String toString(); 156 157 public String toXmlString(); 158 }