@ProviderType public class MBDiscussionWrapper extends Object implements MBDiscussion, ModelWrapper<MBDiscussion>
This class is a wrapper for MBDiscussion
.
MBDiscussion
,
Serialized FormDISCUSSION_ID_ACCESSOR
Constructor and Description |
---|
MBDiscussionWrapper(MBDiscussion mbDiscussion) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(MBDiscussion mbDiscussion) |
boolean |
equals(Object obj) |
String |
getClassName()
Returns the fully qualified class name of this message boards discussion.
|
long |
getClassNameId()
Returns the class name ID of this message boards discussion.
|
long |
getClassPK()
Returns the class pk of this message boards discussion.
|
long |
getCompanyId()
Returns the company ID of this message boards discussion.
|
Date |
getCreateDate()
Returns the create date of this message boards discussion.
|
long |
getDiscussionId()
Returns the discussion ID of this message boards discussion.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
long |
getGroupId()
Returns the group ID of this message boards discussion.
|
Date |
getLastPublishDate()
Returns the last publish date of this message boards discussion.
|
Map<String,Object> |
getModelAttributes() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
Date |
getModifiedDate()
Returns the modified date of this message boards discussion.
|
long |
getPrimaryKey()
Returns the primary key of this message boards discussion.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
StagedModelType |
getStagedModelType() |
long |
getThreadId()
Returns the thread ID of this message boards discussion.
|
long |
getUserId()
Returns the user ID of this message boards discussion.
|
String |
getUserName()
Returns the user name of this message boards discussion.
|
String |
getUserUuid()
Returns the user uuid of this message boards discussion.
|
String |
getUuid()
Returns the uuid of this message boards discussion.
|
MBDiscussion |
getWrappedModel() |
int |
hashCode() |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isEntityCacheEnabled()
Returns
true if this model's entity cache is enabled. |
boolean |
isEscapedModel()
Returns
true if this model instance is escaped. |
boolean |
isFinderCacheEnabled()
Returns
true if this model's finder cache is enabled. |
boolean |
isNew()
Returns
true if this model instance does not yet exist in
the database. |
void |
persist()
Updates this model instance in the database or adds it if it does not yet
exist.
|
void |
resetOriginalValues()
Reset all original fields to current values.
|
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache.
|
void |
setClassName(String className) |
void |
setClassNameId(long classNameId)
Sets the class name ID of this message boards discussion.
|
void |
setClassPK(long classPK)
Sets the class pk of this message boards discussion.
|
void |
setCompanyId(long companyId)
Sets the company ID of this message boards discussion.
|
void |
setCreateDate(Date createDate)
Sets the create date of this message boards discussion.
|
void |
setDiscussionId(long discussionId)
Sets the discussion ID of this message boards discussion.
|
void |
setExpandoBridgeAttributes(BaseModel<?> baseModel) |
void |
setExpandoBridgeAttributes(ExpandoBridge expandoBridge) |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the
attributes stored in the service context.
|
void |
setGroupId(long groupId)
Sets the group ID of this message boards discussion.
|
void |
setLastPublishDate(Date lastPublishDate)
Sets the last publish date of this message boards discussion.
|
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this message boards discussion.
|
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this message boards discussion.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setThreadId(long threadId)
Sets the thread ID of this message boards discussion.
|
void |
setUserId(long userId)
Sets the user ID of this message boards discussion.
|
void |
setUserName(String userName)
Sets the user name of this message boards discussion.
|
void |
setUserUuid(String userUuid)
Sets the user uuid of this message boards discussion.
|
void |
setUuid(String uuid)
Sets the uuid of this message boards discussion.
|
CacheModel<MBDiscussion> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
MBDiscussion |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler . |
String |
toString() |
MBDiscussion |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public MBDiscussionWrapper(MBDiscussion mbDiscussion)
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<MBDiscussion>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<MBDiscussion>
public Object clone()
BaseModel
clone
in interface MBDiscussionModel
clone
in interface BaseModel<MBDiscussion>
clone
in interface StagedModel
clone
in class Object
public int compareTo(MBDiscussion mbDiscussion)
compareTo
in interface MBDiscussionModel
compareTo
in interface Comparable<MBDiscussion>
public String getClassName()
getClassName
in interface MBDiscussionModel
getClassName
in interface TypedModel
public long getClassNameId()
getClassNameId
in interface MBDiscussionModel
getClassNameId
in interface TypedModel
public long getClassPK()
getClassPK
in interface MBDiscussionModel
getClassPK
in interface AttachedModel
public long getCompanyId()
getCompanyId
in interface MBDiscussionModel
getCompanyId
in interface AuditedModel
getCompanyId
in interface ShardedModel
getCompanyId
in interface StagedModel
public Date getCreateDate()
getCreateDate
in interface MBDiscussionModel
getCreateDate
in interface AuditedModel
getCreateDate
in interface StagedModel
public long getDiscussionId()
getDiscussionId
in interface MBDiscussionModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface MBDiscussionModel
getExpandoBridge
in interface BaseModel<MBDiscussion>
getExpandoBridge
in interface ClassedModel
public long getGroupId()
getGroupId
in interface MBDiscussionModel
getGroupId
in interface GroupedModel
public Date getLastPublishDate()
getLastPublishDate
in interface MBDiscussionModel
getLastPublishDate
in interface StagedGroupedModel
public Date getModifiedDate()
getModifiedDate
in interface MBDiscussionModel
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface StagedModel
public long getPrimaryKey()
getPrimaryKey
in interface MBDiscussionModel
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface MBDiscussionModel
getPrimaryKeyObj
in interface BaseModel<MBDiscussion>
getPrimaryKeyObj
in interface ClassedModel
public long getThreadId()
getThreadId
in interface MBDiscussionModel
public long getUserId()
getUserId
in interface MBDiscussionModel
getUserId
in interface AuditedModel
public String getUserName()
getUserName
in interface MBDiscussionModel
getUserName
in interface AuditedModel
public String getUserUuid()
getUserUuid
in interface MBDiscussionModel
getUserUuid
in interface AuditedModel
public String getUuid()
getUuid
in interface MBDiscussionModel
getUuid
in interface StagedModel
public int hashCode()
hashCode
in interface MBDiscussionModel
hashCode
in class Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface MBDiscussionModel
isCachedModel
in interface BaseModel<MBDiscussion>
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.isEscapedModel
in interface MBDiscussionModel
isEscapedModel
in interface BaseModel<MBDiscussion>
true
if this model instance is escaped;
false
otherwisepublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.isNew
in interface MBDiscussionModel
isNew
in interface BaseModel<MBDiscussion>
true
if this model instance does not yet exist in
the database; false
otherwisepublic void persist()
PersistedModel
persist
in interface PersistedModel
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface MBDiscussionModel
setCachedModel
in interface BaseModel<MBDiscussion>
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setClassName(String className)
setClassName
in interface MBDiscussionModel
public void setClassNameId(long classNameId)
setClassNameId
in interface MBDiscussionModel
setClassNameId
in interface TypedModel
classNameId
- the class name ID of this message boards discussionpublic void setClassPK(long classPK)
setClassPK
in interface MBDiscussionModel
setClassPK
in interface AttachedModel
classPK
- the class pk of this message boards discussionpublic void setCompanyId(long companyId)
setCompanyId
in interface MBDiscussionModel
setCompanyId
in interface AuditedModel
setCompanyId
in interface ShardedModel
setCompanyId
in interface StagedModel
companyId
- the company ID of this message boards discussionpublic void setCreateDate(Date createDate)
setCreateDate
in interface MBDiscussionModel
setCreateDate
in interface AuditedModel
setCreateDate
in interface StagedModel
createDate
- the create date of this message boards discussionpublic void setDiscussionId(long discussionId)
setDiscussionId
in interface MBDiscussionModel
discussionId
- the discussion ID of this message boards discussionpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface MBDiscussionModel
setExpandoBridgeAttributes
in interface BaseModel<MBDiscussion>
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface MBDiscussionModel
setExpandoBridgeAttributes
in interface BaseModel<MBDiscussion>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface MBDiscussionModel
setExpandoBridgeAttributes
in interface BaseModel<MBDiscussion>
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setGroupId(long groupId)
setGroupId
in interface MBDiscussionModel
setGroupId
in interface GroupedModel
groupId
- the group ID of this message boards discussionpublic void setLastPublishDate(Date lastPublishDate)
setLastPublishDate
in interface MBDiscussionModel
setLastPublishDate
in interface StagedGroupedModel
lastPublishDate
- the last publish date of this message boards discussionpublic void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface MBDiscussionModel
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface StagedModel
modifiedDate
- the modified date of this message boards discussionpublic void setNew(boolean n)
BaseModel
setNew
in interface MBDiscussionModel
setNew
in interface BaseModel<MBDiscussion>
n
- whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface MBDiscussionModel
primaryKey
- the primary key of this message boards discussionpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface MBDiscussionModel
setPrimaryKeyObj
in interface BaseModel<MBDiscussion>
setPrimaryKeyObj
in interface ClassedModel
primaryKeyObj
- the primary key of this model instancepublic void setThreadId(long threadId)
setThreadId
in interface MBDiscussionModel
threadId
- the thread ID of this message boards discussionpublic void setUserId(long userId)
setUserId
in interface MBDiscussionModel
setUserId
in interface AuditedModel
userId
- the user ID of this message boards discussionpublic void setUserName(String userName)
setUserName
in interface MBDiscussionModel
setUserName
in interface AuditedModel
userName
- the user name of this message boards discussionpublic void setUserUuid(String userUuid)
setUserUuid
in interface MBDiscussionModel
setUserUuid
in interface AuditedModel
userUuid
- the user uuid of this message boards discussionpublic void setUuid(String uuid)
setUuid
in interface MBDiscussionModel
setUuid
in interface StagedModel
uuid
- the uuid of this message boards discussionpublic CacheModel<MBDiscussion> toCacheModel()
BaseModel
toCacheModel
in interface MBDiscussionModel
toCacheModel
in interface BaseModel<MBDiscussion>
public MBDiscussion toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface MBDiscussionModel
toEscapedModel
in interface BaseModel<MBDiscussion>
AutoEscapeBeanHandler
public String toString()
toString
in interface MBDiscussionModel
toString
in class Object
public MBDiscussion toUnescapedModel()
toUnescapedModel
in interface MBDiscussionModel
toUnescapedModel
in interface BaseModel<MBDiscussion>
public String toXmlString()
BaseModel
toXmlString
in interface MBDiscussionModel
toXmlString
in interface BaseModel<MBDiscussion>
public boolean equals(Object obj)
equals
in class Object
public StagedModelType getStagedModelType()
getStagedModelType
in interface StagedModel
public MBDiscussion getWrappedModel()
getWrappedModel
in interface ModelWrapper<MBDiscussion>
public boolean isEntityCacheEnabled()
BaseModel
true
if this model's entity cache is enabled.isEntityCacheEnabled
in interface BaseModel<MBDiscussion>
true
if this model's entity cache is enabled;
false
otherwisepublic boolean isFinderCacheEnabled()
BaseModel
true
if this model's finder cache is enabled.isFinderCacheEnabled
in interface BaseModel<MBDiscussion>
true
if this model's finder cache is enabled;
false
otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<MBDiscussion>