public class EntryWrapper extends java.lang.Object implements Entry, ModelWrapper<Entry>
This class is a wrapper for Entry
.
Entry
,
Serialized FormENTRY_ID_ACCESSOR
Constructor and Description |
---|
EntryWrapper(Entry entry) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(Entry entry) |
boolean |
equals(java.lang.Object object) |
java.lang.String |
getContent()
Returns the content of this entry.
|
long |
getCreateDate()
Returns the create date of this entry.
|
long |
getEntryId()
Returns the entry ID of this entry.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
int |
getFlag()
Returns the flag of this entry.
|
long |
getFromUserId()
Returns the from user ID of this entry.
|
java.lang.String |
getFromUserUuid()
Returns the from user uuid of this entry.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
long |
getPrimaryKey()
Returns the primary key of this entry.
|
java.io.Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long |
getToUserId()
Returns the to user ID of this entry.
|
java.lang.String |
getToUserUuid()
Returns the to user uuid of this entry.
|
Entry |
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 |
setContent(java.lang.String content)
Sets the content of this entry.
|
void |
setCreateDate(long createDate)
Sets the create date of this entry.
|
void |
setEntryId(long entryId)
Sets the entry ID of this entry.
|
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 |
setFlag(int flag)
Sets the flag of this entry.
|
void |
setFromUserId(long fromUserId)
Sets the from user ID of this entry.
|
void |
setFromUserUuid(java.lang.String fromUserUuid)
Sets the from user uuid of this entry.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
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 entry.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setToUserId(long toUserId)
Sets the to user ID of this entry.
|
void |
setToUserUuid(java.lang.String toUserUuid)
Sets the to user uuid of this entry.
|
CacheModel<Entry> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
Entry |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler . |
java.lang.String |
toString() |
Entry |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
public EntryWrapper(Entry entry)
public java.lang.Class<?> getModelClass()
getModelClass
in interface ClassedModel
public java.lang.String getModelClassName()
getModelClassName
in interface ClassedModel
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes
in interface BaseModel<Entry>
public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes
in interface BaseModel<Entry>
public java.lang.Object clone()
BaseModel
clone
in interface EntryModel
clone
in interface BaseModel<Entry>
clone
in class java.lang.Object
public int compareTo(Entry entry)
compareTo
in interface EntryModel
compareTo
in interface java.lang.Comparable<Entry>
public java.lang.String getContent()
getContent
in interface EntryModel
public long getCreateDate()
getCreateDate
in interface EntryModel
public long getEntryId()
getEntryId
in interface EntryModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface EntryModel
getExpandoBridge
in interface BaseModel<Entry>
getExpandoBridge
in interface ClassedModel
public int getFlag()
getFlag
in interface EntryModel
public long getFromUserId()
getFromUserId
in interface EntryModel
public java.lang.String getFromUserUuid()
getFromUserUuid
in interface EntryModel
public long getPrimaryKey()
getPrimaryKey
in interface EntryModel
public java.io.Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface EntryModel
getPrimaryKeyObj
in interface BaseModel<Entry>
getPrimaryKeyObj
in interface ClassedModel
public long getToUserId()
getToUserId
in interface EntryModel
public java.lang.String getToUserUuid()
getToUserUuid
in interface EntryModel
public int hashCode()
hashCode
in interface EntryModel
hashCode
in class java.lang.Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface EntryModel
isCachedModel
in interface BaseModel<Entry>
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 EntryModel
isEscapedModel
in interface BaseModel<Entry>
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 EntryModel
isNew
in interface BaseModel<Entry>
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 EntryModel
setCachedModel
in interface BaseModel<Entry>
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setContent(java.lang.String content)
setContent
in interface EntryModel
content
- the content of this entrypublic void setCreateDate(long createDate)
setCreateDate
in interface EntryModel
createDate
- the create date of this entrypublic void setEntryId(long entryId)
setEntryId
in interface EntryModel
entryId
- the entry ID of this entrypublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface EntryModel
setExpandoBridgeAttributes
in interface BaseModel<Entry>
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface EntryModel
setExpandoBridgeAttributes
in interface BaseModel<Entry>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface EntryModel
setExpandoBridgeAttributes
in interface BaseModel<Entry>
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setFlag(int flag)
setFlag
in interface EntryModel
flag
- the flag of this entrypublic void setFromUserId(long fromUserId)
setFromUserId
in interface EntryModel
fromUserId
- the from user ID of this entrypublic void setFromUserUuid(java.lang.String fromUserUuid)
setFromUserUuid
in interface EntryModel
fromUserUuid
- the from user uuid of this entrypublic void setNew(boolean n)
BaseModel
setNew
in interface EntryModel
setNew
in interface BaseModel<Entry>
n
- whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface EntryModel
primaryKey
- the primary key of this entrypublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface EntryModel
setPrimaryKeyObj
in interface BaseModel<Entry>
setPrimaryKeyObj
in interface ClassedModel
primaryKeyObj
- the primary key of this model instancepublic void setToUserId(long toUserId)
setToUserId
in interface EntryModel
toUserId
- the to user ID of this entrypublic void setToUserUuid(java.lang.String toUserUuid)
setToUserUuid
in interface EntryModel
toUserUuid
- the to user uuid of this entrypublic CacheModel<Entry> toCacheModel()
BaseModel
toCacheModel
in interface EntryModel
toCacheModel
in interface BaseModel<Entry>
public Entry toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface EntryModel
toEscapedModel
in interface BaseModel<Entry>
AutoEscapeBeanHandler
public java.lang.String toString()
toString
in interface EntryModel
toString
in class java.lang.Object
public Entry toUnescapedModel()
toUnescapedModel
in interface EntryModel
toUnescapedModel
in interface BaseModel<Entry>
public java.lang.String toXmlString()
BaseModel
toXmlString
in interface EntryModel
toXmlString
in interface BaseModel<Entry>
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public Entry getWrappedModel()
getWrappedModel
in interface ModelWrapper<Entry>
public boolean isEntityCacheEnabled()
BaseModel
true
if this model's entity cache is enabled.isEntityCacheEnabled
in interface BaseModel<Entry>
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<Entry>
true
if this model's finder cache is enabled;
false
otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<Entry>