@ProviderType public class SystemEventWrapper extends Object implements SystemEvent, ModelWrapper<SystemEvent>
This class is a wrapper for SystemEvent
.
SystemEvent
,
Serialized FormSYSTEM_EVENT_ID_ACCESSOR
Constructor and Description |
---|
SystemEventWrapper(SystemEvent systemEvent) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(SystemEvent systemEvent) |
boolean |
equals(Object obj) |
String |
getClassName()
Returns the fully qualified class name of this system event.
|
long |
getClassNameId()
Returns the class name ID of this system event.
|
long |
getClassPK()
Returns the class pk of this system event.
|
String |
getClassUuid()
Returns the class uuid of this system event.
|
long |
getCompanyId()
Returns the company ID of this system event.
|
Date |
getCreateDate()
Returns the create date of this system event.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
String |
getExtraData()
Returns the extra data of this system event.
|
long |
getGroupId()
Returns the group ID of this system event.
|
Map<String,Object> |
getModelAttributes() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
long |
getMvccVersion()
Returns the mvcc version of this system event.
|
long |
getParentSystemEventId()
Returns the parent system event ID of this system event.
|
long |
getPrimaryKey()
Returns the primary key of this system event.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
String |
getReferrerClassName() |
long |
getReferrerClassNameId()
Returns the referrer class name ID of this system event.
|
long |
getSystemEventId()
Returns the system event ID of this system event.
|
long |
getSystemEventSetKey()
Returns the system event set key of this system event.
|
int |
getType()
Returns the type of this system event.
|
long |
getUserId()
Returns the user ID of this system event.
|
String |
getUserName()
Returns the user name of this system event.
|
String |
getUserUuid()
Returns the user uuid of this system event.
|
SystemEvent |
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 system event.
|
void |
setClassPK(long classPK)
Sets the class pk of this system event.
|
void |
setClassUuid(String classUuid)
Sets the class uuid of this system event.
|
void |
setCompanyId(long companyId)
Sets the company ID of this system event.
|
void |
setCreateDate(Date createDate)
Sets the create date of this system event.
|
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 |
setExtraData(String extraData)
Sets the extra data of this system event.
|
void |
setGroupId(long groupId)
Sets the group ID of this system event.
|
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this system event.
|
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
void |
setParentSystemEventId(long parentSystemEventId)
Sets the parent system event ID of this system event.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this system event.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setReferrerClassName(String referrerClassName) |
void |
setReferrerClassNameId(long referrerClassNameId)
Sets the referrer class name ID of this system event.
|
void |
setSystemEventId(long systemEventId)
Sets the system event ID of this system event.
|
void |
setSystemEventSetKey(long systemEventSetKey)
Sets the system event set key of this system event.
|
void |
setType(int type)
Sets the type of this system event.
|
void |
setUserId(long userId)
Sets the user ID of this system event.
|
void |
setUserName(String userName)
Sets the user name of this system event.
|
void |
setUserUuid(String userUuid)
Sets the user uuid of this system event.
|
CacheModel<SystemEvent> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
SystemEvent |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler . |
String |
toString() |
SystemEvent |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public SystemEventWrapper(SystemEvent systemEvent)
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<SystemEvent>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<SystemEvent>
public Object clone()
BaseModel
clone
in interface BaseModel<SystemEvent>
clone
in interface SystemEventModel
clone
in class Object
public int compareTo(SystemEvent systemEvent)
compareTo
in interface SystemEventModel
compareTo
in interface Comparable<SystemEvent>
public String getClassName()
getClassName
in interface SystemEventModel
getClassName
in interface TypedModel
public long getClassNameId()
getClassNameId
in interface SystemEventModel
getClassNameId
in interface TypedModel
public long getClassPK()
getClassPK
in interface AttachedModel
getClassPK
in interface SystemEventModel
public String getClassUuid()
getClassUuid
in interface SystemEventModel
public long getCompanyId()
getCompanyId
in interface ShardedModel
getCompanyId
in interface SystemEventModel
public Date getCreateDate()
getCreateDate
in interface SystemEventModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<SystemEvent>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface SystemEventModel
public String getExtraData()
getExtraData
in interface SystemEventModel
public long getGroupId()
getGroupId
in interface SystemEventModel
public long getMvccVersion()
getMvccVersion
in interface MVCCModel
getMvccVersion
in interface SystemEventModel
public long getParentSystemEventId()
getParentSystemEventId
in interface SystemEventModel
public long getPrimaryKey()
getPrimaryKey
in interface SystemEventModel
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<SystemEvent>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface SystemEventModel
public String getReferrerClassName()
getReferrerClassName
in interface SystemEvent
public long getReferrerClassNameId()
getReferrerClassNameId
in interface SystemEventModel
public long getSystemEventId()
getSystemEventId
in interface SystemEventModel
public long getSystemEventSetKey()
getSystemEventSetKey
in interface SystemEventModel
public int getType()
getType
in interface SystemEventModel
public long getUserId()
getUserId
in interface SystemEventModel
public String getUserName()
getUserName
in interface SystemEventModel
public String getUserUuid()
getUserUuid
in interface SystemEventModel
public int hashCode()
hashCode
in interface SystemEventModel
hashCode
in class Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface BaseModel<SystemEvent>
isCachedModel
in interface SystemEventModel
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 BaseModel<SystemEvent>
isEscapedModel
in interface SystemEventModel
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 BaseModel<SystemEvent>
isNew
in interface SystemEventModel
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 BaseModel<SystemEvent>
setCachedModel
in interface SystemEventModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setClassName(String className)
setClassName
in interface SystemEventModel
public void setClassNameId(long classNameId)
setClassNameId
in interface SystemEventModel
setClassNameId
in interface TypedModel
classNameId
- the class name ID of this system eventpublic void setClassPK(long classPK)
setClassPK
in interface AttachedModel
setClassPK
in interface SystemEventModel
classPK
- the class pk of this system eventpublic void setClassUuid(String classUuid)
setClassUuid
in interface SystemEventModel
classUuid
- the class uuid of this system eventpublic void setCompanyId(long companyId)
setCompanyId
in interface ShardedModel
setCompanyId
in interface SystemEventModel
companyId
- the company ID of this system eventpublic void setCreateDate(Date createDate)
setCreateDate
in interface SystemEventModel
createDate
- the create date of this system eventpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<SystemEvent>
setExpandoBridgeAttributes
in interface SystemEventModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<SystemEvent>
setExpandoBridgeAttributes
in interface SystemEventModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<SystemEvent>
setExpandoBridgeAttributes
in interface SystemEventModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setExtraData(String extraData)
setExtraData
in interface SystemEventModel
extraData
- the extra data of this system eventpublic void setGroupId(long groupId)
setGroupId
in interface SystemEventModel
groupId
- the group ID of this system eventpublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface MVCCModel
setMvccVersion
in interface SystemEventModel
mvccVersion
- the mvcc version of this system eventpublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<SystemEvent>
setNew
in interface SystemEventModel
n
- whether this model instance does not yet exist in the databasepublic void setParentSystemEventId(long parentSystemEventId)
setParentSystemEventId
in interface SystemEventModel
parentSystemEventId
- the parent system event ID of this system eventpublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface SystemEventModel
primaryKey
- the primary key of this system eventpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<SystemEvent>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface SystemEventModel
primaryKeyObj
- the primary key of this model instancepublic void setReferrerClassName(String referrerClassName)
setReferrerClassName
in interface SystemEvent
public void setReferrerClassNameId(long referrerClassNameId)
setReferrerClassNameId
in interface SystemEventModel
referrerClassNameId
- the referrer class name ID of this system eventpublic void setSystemEventId(long systemEventId)
setSystemEventId
in interface SystemEventModel
systemEventId
- the system event ID of this system eventpublic void setSystemEventSetKey(long systemEventSetKey)
setSystemEventSetKey
in interface SystemEventModel
systemEventSetKey
- the system event set key of this system eventpublic void setType(int type)
setType
in interface SystemEventModel
type
- the type of this system eventpublic void setUserId(long userId)
setUserId
in interface SystemEventModel
userId
- the user ID of this system eventpublic void setUserName(String userName)
setUserName
in interface SystemEventModel
userName
- the user name of this system eventpublic void setUserUuid(String userUuid)
setUserUuid
in interface SystemEventModel
userUuid
- the user uuid of this system eventpublic CacheModel<SystemEvent> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<SystemEvent>
toCacheModel
in interface SystemEventModel
public SystemEvent toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface BaseModel<SystemEvent>
toEscapedModel
in interface SystemEventModel
AutoEscapeBeanHandler
public String toString()
toString
in interface SystemEventModel
toString
in class Object
public SystemEvent toUnescapedModel()
toUnescapedModel
in interface BaseModel<SystemEvent>
toUnescapedModel
in interface SystemEventModel
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<SystemEvent>
toXmlString
in interface SystemEventModel
public boolean equals(Object obj)
equals
in class Object
public SystemEvent getWrappedModel()
getWrappedModel
in interface ModelWrapper<SystemEvent>
public boolean isEntityCacheEnabled()
BaseModel
true
if this model's entity cache is enabled.isEntityCacheEnabled
in interface BaseModel<SystemEvent>
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<SystemEvent>
true
if this model's finder cache is enabled;
false
otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<SystemEvent>