@ProviderType public class UserNotificationEventWrapper extends Object implements UserNotificationEvent, ModelWrapper<UserNotificationEvent>
This class is a wrapper for UserNotificationEvent.
UserNotificationEvent,
Serialized FormUSER_NOTIFICATION_EVENT_ID_ACCESSOR| Constructor and Description |
|---|
UserNotificationEventWrapper(UserNotificationEvent userNotificationEvent) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(UserNotificationEvent userNotificationEvent) |
boolean |
equals(Object obj) |
boolean |
getActionRequired()
Returns the action required of this user notification event.
|
boolean |
getArchived()
Returns the archived of this user notification event.
|
long |
getCompanyId()
Returns the company ID of this user notification event.
|
long |
getDeliverBy()
Returns the deliver by of this user notification event.
|
boolean |
getDelivered()
Returns the delivered of this user notification event.
|
int |
getDeliveryType()
Returns the delivery type of this user notification event.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
Map<String,Object> |
getModelAttributes() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
long |
getMvccVersion()
Returns the mvcc version of this user notification event.
|
String |
getPayload()
Returns the payload of this user notification event.
|
long |
getPrimaryKey()
Returns the primary key of this user notification event.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long |
getTimestamp()
Returns the timestamp of this user notification event.
|
String |
getType()
Returns the type of this user notification event.
|
long |
getUserId()
Returns the user ID of this user notification event.
|
long |
getUserNotificationEventId()
Returns the user notification event ID of this user notification event.
|
String |
getUserUuid()
Returns the user uuid of this user notification event.
|
String |
getUuid()
Returns the uuid of this user notification event.
|
UserNotificationEvent |
getWrappedModel() |
int |
hashCode() |
boolean |
isActionRequired()
Returns
true if this user notification event is action required. |
boolean |
isArchived()
Returns
true if this user notification event is archived. |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isDelivered()
Returns
true if this user notification event is delivered. |
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 |
setActionRequired(boolean actionRequired)
Sets whether this user notification event is action required.
|
void |
setArchived(boolean archived)
Sets whether this user notification event is archived.
|
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache.
|
void |
setCompanyId(long companyId)
Sets the company ID of this user notification event.
|
void |
setDeliverBy(long deliverBy)
Sets the deliver by of this user notification event.
|
void |
setDelivered(boolean delivered)
Sets whether this user notification event is delivered.
|
void |
setDeliveryType(int deliveryType)
Sets the delivery type of this user notification 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 |
setModelAttributes(Map<String,Object> attributes) |
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this user notification event.
|
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
void |
setPayload(String payload)
Sets the payload of this user notification event.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this user notification event.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setTimestamp(long timestamp)
Sets the timestamp of this user notification event.
|
void |
setType(String type)
Sets the type of this user notification event.
|
void |
setUserId(long userId)
Sets the user ID of this user notification event.
|
void |
setUserNotificationEventId(long userNotificationEventId)
Sets the user notification event ID of this user notification event.
|
void |
setUserUuid(String userUuid)
Sets the user uuid of this user notification event.
|
void |
setUuid(String uuid)
Sets the uuid of this user notification event.
|
CacheModel<UserNotificationEvent> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
UserNotificationEvent |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler. |
String |
toString() |
UserNotificationEvent |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public UserNotificationEventWrapper(UserNotificationEvent userNotificationEvent)
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<UserNotificationEvent>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<UserNotificationEvent>public CacheModel<UserNotificationEvent> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<UserNotificationEvent>toCacheModel in interface UserNotificationEventModelpublic UserNotificationEvent toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<UserNotificationEvent>toEscapedModel in interface UserNotificationEventModelAutoEscapeBeanHandlerpublic UserNotificationEvent toUnescapedModel()
toUnescapedModel in interface BaseModel<UserNotificationEvent>toUnescapedModel in interface UserNotificationEventModelpublic boolean getActionRequired()
getActionRequired in interface UserNotificationEventModelpublic boolean getArchived()
getArchived in interface UserNotificationEventModelpublic boolean getDelivered()
getDelivered in interface UserNotificationEventModelpublic boolean isActionRequired()
true if this user notification event is action required.isActionRequired in interface UserNotificationEventModeltrue if this user notification event is action required; false otherwisepublic boolean isArchived()
true if this user notification event is archived.isArchived in interface UserNotificationEventModeltrue if this user notification event is archived; false otherwisepublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface BaseModel<UserNotificationEvent>isCachedModel in interface UserNotificationEventModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public boolean isDelivered()
true if this user notification event is delivered.isDelivered in interface UserNotificationEventModeltrue if this user notification event is delivered; false otherwisepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface BaseModel<UserNotificationEvent>isEscapedModel in interface UserNotificationEventModeltrue if this model instance is escaped;
false otherwisepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface BaseModel<UserNotificationEvent>isNew in interface UserNotificationEventModeltrue if this model instance does not yet exist in
the database; false otherwisepublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<UserNotificationEvent>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface UserNotificationEventModelpublic int compareTo(UserNotificationEvent userNotificationEvent)
compareTo in interface UserNotificationEventModelcompareTo in interface Comparable<UserNotificationEvent>public int getDeliveryType()
getDeliveryType in interface UserNotificationEventModelpublic int hashCode()
hashCode in interface UserNotificationEventModelhashCode in class Objectpublic Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<UserNotificationEvent>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface UserNotificationEventModelpublic Object clone()
BaseModelclone in interface BaseModel<UserNotificationEvent>clone in interface UserNotificationEventModelclone in class Objectpublic String getPayload()
getPayload in interface UserNotificationEventModelpublic String getType()
getType in interface UserNotificationEventModelpublic String getUserUuid()
getUserUuid in interface UserNotificationEventModelpublic String getUuid()
getUuid in interface UserNotificationEventModelpublic String toString()
toString in interface UserNotificationEventModeltoString in class Objectpublic String toXmlString()
BaseModeltoXmlString in interface BaseModel<UserNotificationEvent>toXmlString in interface UserNotificationEventModelpublic long getCompanyId()
getCompanyId in interface ShardedModelgetCompanyId in interface UserNotificationEventModelpublic long getDeliverBy()
getDeliverBy in interface UserNotificationEventModelpublic long getMvccVersion()
getMvccVersion in interface MVCCModelgetMvccVersion in interface UserNotificationEventModelpublic long getPrimaryKey()
getPrimaryKey in interface UserNotificationEventModelpublic long getTimestamp()
getTimestamp in interface UserNotificationEventModelpublic long getUserId()
getUserId in interface UserNotificationEventModelpublic long getUserNotificationEventId()
getUserNotificationEventId in interface UserNotificationEventModelpublic void persist()
PersistedModelpersist in interface PersistedModelpublic void setActionRequired(boolean actionRequired)
setActionRequired in interface UserNotificationEventModelactionRequired - the action required of this user notification eventpublic void setArchived(boolean archived)
setArchived in interface UserNotificationEventModelarchived - the archived of this user notification eventpublic void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<UserNotificationEvent>setCachedModel in interface UserNotificationEventModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic void setCompanyId(long companyId)
setCompanyId in interface ShardedModelsetCompanyId in interface UserNotificationEventModelcompanyId - the company ID of this user notification eventpublic void setDeliverBy(long deliverBy)
setDeliverBy in interface UserNotificationEventModeldeliverBy - the deliver by of this user notification eventpublic void setDelivered(boolean delivered)
setDelivered in interface UserNotificationEventModeldelivered - the delivered of this user notification eventpublic void setDeliveryType(int deliveryType)
setDeliveryType in interface UserNotificationEventModeldeliveryType - the delivery type of this user notification eventpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<UserNotificationEvent>setExpandoBridgeAttributes in interface UserNotificationEventModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<UserNotificationEvent>setExpandoBridgeAttributes in interface UserNotificationEventModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<UserNotificationEvent>setExpandoBridgeAttributes in interface UserNotificationEventModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes()public void setMvccVersion(long mvccVersion)
setMvccVersion in interface MVCCModelsetMvccVersion in interface UserNotificationEventModelmvccVersion - the mvcc version of this user notification eventpublic void setNew(boolean n)
BaseModelsetNew in interface BaseModel<UserNotificationEvent>setNew in interface UserNotificationEventModeln - whether this model instance does not yet exist in the databasepublic void setPayload(String payload)
setPayload in interface UserNotificationEventModelpayload - the payload of this user notification eventpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface UserNotificationEventModelprimaryKey - the primary key of this user notification eventpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<UserNotificationEvent>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface UserNotificationEventModelprimaryKeyObj - the primary key of this model instancepublic void setTimestamp(long timestamp)
setTimestamp in interface UserNotificationEventModeltimestamp - the timestamp of this user notification eventpublic void setType(String type)
setType in interface UserNotificationEventModeltype - the type of this user notification eventpublic void setUserId(long userId)
setUserId in interface UserNotificationEventModeluserId - the user ID of this user notification eventpublic void setUserNotificationEventId(long userNotificationEventId)
setUserNotificationEventId in interface UserNotificationEventModeluserNotificationEventId - the user notification event ID of this user notification eventpublic void setUserUuid(String userUuid)
setUserUuid in interface UserNotificationEventModeluserUuid - the user uuid of this user notification eventpublic void setUuid(String uuid)
setUuid in interface UserNotificationEventModeluuid - the uuid of this user notification eventpublic UserNotificationEvent getWrappedModel()
getWrappedModel in interface ModelWrapper<UserNotificationEvent>public boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.isEntityCacheEnabled in interface BaseModel<UserNotificationEvent>true if this model's entity cache is enabled;
false otherwisepublic boolean isFinderCacheEnabled()
BaseModeltrue if this model's finder cache is enabled.isFinderCacheEnabled in interface BaseModel<UserNotificationEvent>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<UserNotificationEvent>