Liferay 6.1.2-ce-ga3

com.liferay.portal.model
Class UserNotificationEventWrapper

java.lang.Object
  extended by com.liferay.portal.model.UserNotificationEventWrapper
All Implemented Interfaces:
BaseModel<UserNotificationEvent>, ClassedModel, ModelWrapper<UserNotificationEvent>, PersistedModel, UserNotificationEvent, UserNotificationEventModel, Serializable, Cloneable, Comparable<UserNotificationEvent>

public class UserNotificationEventWrapper
extends Object
implements UserNotificationEvent, ModelWrapper<UserNotificationEvent>

This class is a wrapper for UserNotificationEvent.

See Also:
UserNotificationEvent, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
UserNotificationEventWrapper(UserNotificationEvent userNotificationEvent)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(UserNotificationEvent userNotificationEvent)
           
 boolean equals(Object obj)
           
 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.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 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()
           
 UserNotificationEvent getWrappedUserNotificationEvent()
          Deprecated. Renamed to getWrappedModel()
 int hashCode()
           
 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 isEscapedModel()
          Returns true if this model instance is escaped.
 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 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 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 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.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserNotificationEventWrapper

public UserNotificationEventWrapper(UserNotificationEvent userNotificationEvent)
Method Detail

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface BaseModel<UserNotificationEvent>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<UserNotificationEvent>

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this user notification event.

Specified by:
getPrimaryKey in interface UserNotificationEventModel
Returns:
the primary key of this user notification event

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this user notification event.

Specified by:
setPrimaryKey in interface UserNotificationEventModel
Parameters:
primaryKey - the primary key of this user notification event

getUuid

public String getUuid()
Returns the uuid of this user notification event.

Specified by:
getUuid in interface UserNotificationEventModel
Returns:
the uuid of this user notification event

setUuid

public void setUuid(String uuid)
Sets the uuid of this user notification event.

Specified by:
setUuid in interface UserNotificationEventModel
Parameters:
uuid - the uuid of this user notification event

getUserNotificationEventId

public long getUserNotificationEventId()
Returns the user notification event ID of this user notification event.

Specified by:
getUserNotificationEventId in interface UserNotificationEventModel
Returns:
the user notification event ID of this user notification event

setUserNotificationEventId

public void setUserNotificationEventId(long userNotificationEventId)
Sets the user notification event ID of this user notification event.

Specified by:
setUserNotificationEventId in interface UserNotificationEventModel
Parameters:
userNotificationEventId - the user notification event ID of this user notification event

getCompanyId

public long getCompanyId()
Returns the company ID of this user notification event.

Specified by:
getCompanyId in interface UserNotificationEventModel
Returns:
the company ID of this user notification event

setCompanyId

public void setCompanyId(long companyId)
Sets the company ID of this user notification event.

Specified by:
setCompanyId in interface UserNotificationEventModel
Parameters:
companyId - the company ID of this user notification event

getUserId

public long getUserId()
Returns the user ID of this user notification event.

Specified by:
getUserId in interface UserNotificationEventModel
Returns:
the user ID of this user notification event

setUserId

public void setUserId(long userId)
Sets the user ID of this user notification event.

Specified by:
setUserId in interface UserNotificationEventModel
Parameters:
userId - the user ID of this user notification event

getUserUuid

public String getUserUuid()
                   throws SystemException
Returns the user uuid of this user notification event.

Specified by:
getUserUuid in interface UserNotificationEventModel
Returns:
the user uuid of this user notification event
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Sets the user uuid of this user notification event.

Specified by:
setUserUuid in interface UserNotificationEventModel
Parameters:
userUuid - the user uuid of this user notification event

getType

public String getType()
Returns the type of this user notification event.

Specified by:
getType in interface UserNotificationEventModel
Returns:
the type of this user notification event

setType

public void setType(String type)
Sets the type of this user notification event.

Specified by:
setType in interface UserNotificationEventModel
Parameters:
type - the type of this user notification event

getTimestamp

public long getTimestamp()
Returns the timestamp of this user notification event.

Specified by:
getTimestamp in interface UserNotificationEventModel
Returns:
the timestamp of this user notification event

setTimestamp

public void setTimestamp(long timestamp)
Sets the timestamp of this user notification event.

Specified by:
setTimestamp in interface UserNotificationEventModel
Parameters:
timestamp - the timestamp of this user notification event

getDeliverBy

public long getDeliverBy()
Returns the deliver by of this user notification event.

Specified by:
getDeliverBy in interface UserNotificationEventModel
Returns:
the deliver by of this user notification event

setDeliverBy

public void setDeliverBy(long deliverBy)
Sets the deliver by of this user notification event.

Specified by:
setDeliverBy in interface UserNotificationEventModel
Parameters:
deliverBy - the deliver by of this user notification event

getPayload

public String getPayload()
Returns the payload of this user notification event.

Specified by:
getPayload in interface UserNotificationEventModel
Returns:
the payload of this user notification event

setPayload

public void setPayload(String payload)
Sets the payload of this user notification event.

Specified by:
setPayload in interface UserNotificationEventModel
Parameters:
payload - the payload of this user notification event

getArchived

public boolean getArchived()
Returns the archived of this user notification event.

Specified by:
getArchived in interface UserNotificationEventModel
Returns:
the archived of this user notification event

isArchived

public boolean isArchived()
Returns true if this user notification event is archived.

Specified by:
isArchived in interface UserNotificationEventModel
Returns:
true if this user notification event is archived; false otherwise

setArchived

public void setArchived(boolean archived)
Sets whether this user notification event is archived.

Specified by:
setArchived in interface UserNotificationEventModel
Parameters:
archived - the archived of this user notification event

isNew

public boolean isNew()
Description copied from interface: BaseModel
Returns true if this model instance does not yet exist in the database.

Specified by:
isNew in interface BaseModel<UserNotificationEvent>
Specified by:
isNew in interface UserNotificationEventModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface BaseModel<UserNotificationEvent>
Specified by:
setNew in interface UserNotificationEventModel
Parameters:
n - whether this model instance does not yet exist in the database

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Returns true if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface BaseModel<UserNotificationEvent>
Specified by:
isCachedModel in interface UserNotificationEventModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface BaseModel<UserNotificationEvent>
Specified by:
setCachedModel in interface UserNotificationEventModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Returns true if this model instance is escaped.

Specified by:
isEscapedModel in interface BaseModel<UserNotificationEvent>
Specified by:
isEscapedModel in interface UserNotificationEventModel
Returns:
true if this model instance is escaped; false otherwise

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Returns the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<UserNotificationEvent>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface UserNotificationEventModel
Returns:
the primary key of this model instance

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Description copied from interface: BaseModel
Sets the primary key of this model instance.

Specified by:
setPrimaryKeyObj in interface BaseModel<UserNotificationEvent>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface UserNotificationEventModel
Parameters:
primaryKeyObj - the primary key of this model instance

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Returns the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<UserNotificationEvent>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface UserNotificationEventModel
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<UserNotificationEvent>
Specified by:
setExpandoBridgeAttributes in interface UserNotificationEventModel
Parameters:
serviceContext - the service context
See Also:
ServiceContext.getExpandoBridgeAttributes( )

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<UserNotificationEvent>
Specified by:
clone in interface UserNotificationEventModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(UserNotificationEvent userNotificationEvent)
Specified by:
compareTo in interface UserNotificationEventModel
Specified by:
compareTo in interface Comparable<UserNotificationEvent>

hashCode

public int hashCode()
Specified by:
hashCode in interface UserNotificationEventModel
Overrides:
hashCode in class Object

toCacheModel

public CacheModel<UserNotificationEvent> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface BaseModel<UserNotificationEvent>
Specified by:
toCacheModel in interface UserNotificationEventModel
Returns:
the cache model object

toEscapedModel

public UserNotificationEvent toEscapedModel()
Description copied from interface: BaseModel
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface BaseModel<UserNotificationEvent>
Specified by:
toEscapedModel in interface UserNotificationEventModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public UserNotificationEvent toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<UserNotificationEvent>
Specified by:
toUnescapedModel in interface UserNotificationEventModel

toString

public String toString()
Specified by:
toString in interface UserNotificationEventModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Returns the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<UserNotificationEvent>
Specified by:
toXmlString in interface UserNotificationEventModel
Returns:
the XML representation of this model instance

persist

public void persist()
             throws SystemException
Description copied from interface: PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
persist in interface PersistedModel
Throws:
SystemException - if a system exception occurred

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getWrappedUserNotificationEvent

public UserNotificationEvent getWrappedUserNotificationEvent()
Deprecated. Renamed to getWrappedModel()


getWrappedModel

public UserNotificationEvent getWrappedModel()
Specified by:
getWrappedModel in interface ModelWrapper<UserNotificationEvent>

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<UserNotificationEvent>

Liferay 6.1.2-ce-ga3