Liferay 6.2-ce-ga5

com.liferay.portlet.announcements.model
Class AnnouncementsEntryWrapper

java.lang.Object
  extended by com.liferay.portlet.announcements.model.AnnouncementsEntryWrapper
All Implemented Interfaces:
AttachedModel, AuditedModel, BaseModel<AnnouncementsEntry>, ClassedModel, ModelWrapper<AnnouncementsEntry>, PersistedModel, StagedAuditedModel, StagedModel, TypedModel, AnnouncementsEntry, AnnouncementsEntryModel, Serializable, Cloneable, Comparable<AnnouncementsEntry>

@ProviderType
public class AnnouncementsEntryWrapper
extends Object
implements AnnouncementsEntry, ModelWrapper<AnnouncementsEntry>

This class is a wrapper for AnnouncementsEntry.

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

Constructor Summary
AnnouncementsEntryWrapper(AnnouncementsEntry announcementsEntry)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(AnnouncementsEntry announcementsEntry)
           
 boolean equals(Object obj)
           
 boolean getAlert()
          Returns the alert of this announcements entry.
 String getClassName()
          Returns the fully qualified class name of this announcements entry.
 long getClassNameId()
          Returns the class name ID of this announcements entry.
 long getClassPK()
          Returns the class p k of this announcements entry.
 long getCompanyId()
          Returns the company ID of this announcements entry.
 String getContent()
          Returns the content of this announcements entry.
 Date getCreateDate()
          Returns the create date of this announcements entry.
 Date getDisplayDate()
          Returns the display date of this announcements entry.
 long getEntryId()
          Returns the entry ID of this announcements entry.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 Date getExpirationDate()
          Returns the expiration date of this announcements entry.
 long getGroupId()
           
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date of this announcements entry.
 long getPrimaryKey()
          Returns the primary key of this announcements entry.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 int getPriority()
          Returns the priority of this announcements entry.
 StagedModelType getStagedModelType()
           
 String getTitle()
          Returns the title of this announcements entry.
 String getType()
          Returns the type of this announcements entry.
 String getUrl()
          Returns the url of this announcements entry.
 long getUserId()
          Returns the user ID of this announcements entry.
 String getUserName()
          Returns the user name of this announcements entry.
 String getUserUuid()
          Returns the user uuid of this announcements entry.
 String getUuid()
          Returns the uuid of this announcements entry.
 AnnouncementsEntry getWrappedAnnouncementsEntry()
          Deprecated. As of 6.1.0, replaced by getWrappedModel()
 AnnouncementsEntry getWrappedModel()
           
 int hashCode()
           
 boolean isAlert()
          Returns true if this announcements entry is alert.
 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 setAlert(boolean alert)
          Sets whether this announcements entry is alert.
 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 announcements entry.
 void setClassPK(long classPK)
          Sets the class p k of this announcements entry.
 void setCompanyId(long companyId)
          Sets the company ID of this announcements entry.
 void setContent(String content)
          Sets the content of this announcements entry.
 void setCreateDate(Date createDate)
          Sets the create date of this announcements entry.
 void setDisplayDate(Date displayDate)
          Sets the display date of this announcements entry.
 void setEntryId(long entryId)
          Sets the entry ID of this announcements 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 setExpirationDate(Date expirationDate)
          Sets the expiration date of this announcements entry.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this announcements entry.
 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 announcements entry.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setPriority(int priority)
          Sets the priority of this announcements entry.
 void setTitle(String title)
          Sets the title of this announcements entry.
 void setType(String type)
          Sets the type of this announcements entry.
 void setUrl(String url)
          Sets the url of this announcements entry.
 void setUserId(long userId)
          Sets the user ID of this announcements entry.
 void setUserName(String userName)
          Sets the user name of this announcements entry.
 void setUserUuid(String userUuid)
          Sets the user uuid of this announcements entry.
 void setUuid(String uuid)
          Sets the uuid of this announcements entry.
 CacheModel<AnnouncementsEntry> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 AnnouncementsEntry toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 AnnouncementsEntry 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

AnnouncementsEntryWrapper

public AnnouncementsEntryWrapper(AnnouncementsEntry announcementsEntry)
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<AnnouncementsEntry>

setModelAttributes

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

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this announcements entry.

Specified by:
getPrimaryKey in interface AnnouncementsEntryModel
Returns:
the primary key of this announcements entry

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this announcements entry.

Specified by:
setPrimaryKey in interface AnnouncementsEntryModel
Parameters:
primaryKey - the primary key of this announcements entry

getUuid

public String getUuid()
Returns the uuid of this announcements entry.

Specified by:
getUuid in interface StagedModel
Specified by:
getUuid in interface AnnouncementsEntryModel
Returns:
the uuid of this announcements entry

setUuid

public void setUuid(String uuid)
Sets the uuid of this announcements entry.

Specified by:
setUuid in interface StagedModel
Specified by:
setUuid in interface AnnouncementsEntryModel
Parameters:
uuid - the uuid of this announcements entry

getEntryId

public long getEntryId()
Returns the entry ID of this announcements entry.

Specified by:
getEntryId in interface AnnouncementsEntryModel
Returns:
the entry ID of this announcements entry

setEntryId

public void setEntryId(long entryId)
Sets the entry ID of this announcements entry.

Specified by:
setEntryId in interface AnnouncementsEntryModel
Parameters:
entryId - the entry ID of this announcements entry

getCompanyId

public long getCompanyId()
Returns the company ID of this announcements entry.

Specified by:
getCompanyId in interface AuditedModel
Specified by:
getCompanyId in interface StagedModel
Specified by:
getCompanyId in interface AnnouncementsEntryModel
Returns:
the company ID of this announcements entry

setCompanyId

public void setCompanyId(long companyId)
Sets the company ID of this announcements entry.

Specified by:
setCompanyId in interface AuditedModel
Specified by:
setCompanyId in interface StagedModel
Specified by:
setCompanyId in interface AnnouncementsEntryModel
Parameters:
companyId - the company ID of this announcements entry

getUserId

public long getUserId()
Returns the user ID of this announcements entry.

Specified by:
getUserId in interface AuditedModel
Specified by:
getUserId in interface AnnouncementsEntryModel
Returns:
the user ID of this announcements entry

setUserId

public void setUserId(long userId)
Sets the user ID of this announcements entry.

Specified by:
setUserId in interface AuditedModel
Specified by:
setUserId in interface AnnouncementsEntryModel
Parameters:
userId - the user ID of this announcements entry

getUserUuid

public String getUserUuid()
                   throws SystemException
Returns the user uuid of this announcements entry.

Specified by:
getUserUuid in interface AuditedModel
Specified by:
getUserUuid in interface AnnouncementsEntryModel
Returns:
the user uuid of this announcements entry
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Sets the user uuid of this announcements entry.

Specified by:
setUserUuid in interface AuditedModel
Specified by:
setUserUuid in interface AnnouncementsEntryModel
Parameters:
userUuid - the user uuid of this announcements entry

getUserName

public String getUserName()
Returns the user name of this announcements entry.

Specified by:
getUserName in interface AuditedModel
Specified by:
getUserName in interface AnnouncementsEntryModel
Returns:
the user name of this announcements entry

setUserName

public void setUserName(String userName)
Sets the user name of this announcements entry.

Specified by:
setUserName in interface AuditedModel
Specified by:
setUserName in interface AnnouncementsEntryModel
Parameters:
userName - the user name of this announcements entry

getCreateDate

public Date getCreateDate()
Returns the create date of this announcements entry.

Specified by:
getCreateDate in interface AuditedModel
Specified by:
getCreateDate in interface StagedModel
Specified by:
getCreateDate in interface AnnouncementsEntryModel
Returns:
the create date of this announcements entry

setCreateDate

public void setCreateDate(Date createDate)
Sets the create date of this announcements entry.

Specified by:
setCreateDate in interface AuditedModel
Specified by:
setCreateDate in interface StagedModel
Specified by:
setCreateDate in interface AnnouncementsEntryModel
Parameters:
createDate - the create date of this announcements entry

getModifiedDate

public Date getModifiedDate()
Returns the modified date of this announcements entry.

Specified by:
getModifiedDate in interface AuditedModel
Specified by:
getModifiedDate in interface StagedModel
Specified by:
getModifiedDate in interface AnnouncementsEntryModel
Returns:
the modified date of this announcements entry

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Sets the modified date of this announcements entry.

Specified by:
setModifiedDate in interface AuditedModel
Specified by:
setModifiedDate in interface StagedModel
Specified by:
setModifiedDate in interface AnnouncementsEntryModel
Parameters:
modifiedDate - the modified date of this announcements entry

getClassName

public String getClassName()
Returns the fully qualified class name of this announcements entry.

Specified by:
getClassName in interface TypedModel
Specified by:
getClassName in interface AnnouncementsEntryModel
Returns:
the fully qualified class name of this announcements entry

setClassName

public void setClassName(String className)
Specified by:
setClassName in interface AnnouncementsEntryModel

getClassNameId

public long getClassNameId()
Returns the class name ID of this announcements entry.

Specified by:
getClassNameId in interface TypedModel
Specified by:
getClassNameId in interface AnnouncementsEntryModel
Returns:
the class name ID of this announcements entry

setClassNameId

public void setClassNameId(long classNameId)
Sets the class name ID of this announcements entry.

Specified by:
setClassNameId in interface TypedModel
Specified by:
setClassNameId in interface AnnouncementsEntryModel
Parameters:
classNameId - the class name ID of this announcements entry

getClassPK

public long getClassPK()
Returns the class p k of this announcements entry.

Specified by:
getClassPK in interface AttachedModel
Specified by:
getClassPK in interface AnnouncementsEntryModel
Returns:
the class p k of this announcements entry

setClassPK

public void setClassPK(long classPK)
Sets the class p k of this announcements entry.

Specified by:
setClassPK in interface AttachedModel
Specified by:
setClassPK in interface AnnouncementsEntryModel
Parameters:
classPK - the class p k of this announcements entry

getTitle

public String getTitle()
Returns the title of this announcements entry.

Specified by:
getTitle in interface AnnouncementsEntryModel
Returns:
the title of this announcements entry

setTitle

public void setTitle(String title)
Sets the title of this announcements entry.

Specified by:
setTitle in interface AnnouncementsEntryModel
Parameters:
title - the title of this announcements entry

getContent

public String getContent()
Returns the content of this announcements entry.

Specified by:
getContent in interface AnnouncementsEntryModel
Returns:
the content of this announcements entry

setContent

public void setContent(String content)
Sets the content of this announcements entry.

Specified by:
setContent in interface AnnouncementsEntryModel
Parameters:
content - the content of this announcements entry

getUrl

public String getUrl()
Returns the url of this announcements entry.

Specified by:
getUrl in interface AnnouncementsEntryModel
Returns:
the url of this announcements entry

setUrl

public void setUrl(String url)
Sets the url of this announcements entry.

Specified by:
setUrl in interface AnnouncementsEntryModel
Parameters:
url - the url of this announcements entry

getType

public String getType()
Returns the type of this announcements entry.

Specified by:
getType in interface AnnouncementsEntryModel
Returns:
the type of this announcements entry

setType

public void setType(String type)
Sets the type of this announcements entry.

Specified by:
setType in interface AnnouncementsEntryModel
Parameters:
type - the type of this announcements entry

getDisplayDate

public Date getDisplayDate()
Returns the display date of this announcements entry.

Specified by:
getDisplayDate in interface AnnouncementsEntryModel
Returns:
the display date of this announcements entry

setDisplayDate

public void setDisplayDate(Date displayDate)
Sets the display date of this announcements entry.

Specified by:
setDisplayDate in interface AnnouncementsEntryModel
Parameters:
displayDate - the display date of this announcements entry

getExpirationDate

public Date getExpirationDate()
Returns the expiration date of this announcements entry.

Specified by:
getExpirationDate in interface AnnouncementsEntryModel
Returns:
the expiration date of this announcements entry

setExpirationDate

public void setExpirationDate(Date expirationDate)
Sets the expiration date of this announcements entry.

Specified by:
setExpirationDate in interface AnnouncementsEntryModel
Parameters:
expirationDate - the expiration date of this announcements entry

getPriority

public int getPriority()
Returns the priority of this announcements entry.

Specified by:
getPriority in interface AnnouncementsEntryModel
Returns:
the priority of this announcements entry

setPriority

public void setPriority(int priority)
Sets the priority of this announcements entry.

Specified by:
setPriority in interface AnnouncementsEntryModel
Parameters:
priority - the priority of this announcements entry

getAlert

public boolean getAlert()
Returns the alert of this announcements entry.

Specified by:
getAlert in interface AnnouncementsEntryModel
Returns:
the alert of this announcements entry

isAlert

public boolean isAlert()
Returns true if this announcements entry is alert.

Specified by:
isAlert in interface AnnouncementsEntryModel
Returns:
true if this announcements entry is alert; false otherwise

setAlert

public void setAlert(boolean alert)
Sets whether this announcements entry is alert.

Specified by:
setAlert in interface AnnouncementsEntryModel
Parameters:
alert - the alert of this announcements entry

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<AnnouncementsEntry>
Specified by:
isNew in interface AnnouncementsEntryModel
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<AnnouncementsEntry>
Specified by:
setNew in interface AnnouncementsEntryModel
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<AnnouncementsEntry>
Specified by:
isCachedModel in interface AnnouncementsEntryModel
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<AnnouncementsEntry>
Specified by:
setCachedModel in interface AnnouncementsEntryModel
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<AnnouncementsEntry>
Specified by:
isEscapedModel in interface AnnouncementsEntryModel
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<AnnouncementsEntry>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface AnnouncementsEntryModel
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<AnnouncementsEntry>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface AnnouncementsEntryModel
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<AnnouncementsEntry>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface AnnouncementsEntryModel
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<AnnouncementsEntry>
Specified by:
setExpandoBridgeAttributes in interface AnnouncementsEntryModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<AnnouncementsEntry>
Specified by:
setExpandoBridgeAttributes in interface AnnouncementsEntryModel

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<AnnouncementsEntry>
Specified by:
setExpandoBridgeAttributes in interface AnnouncementsEntryModel
Parameters:
serviceContext - the service context to be applied
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<AnnouncementsEntry>
Specified by:
clone in interface StagedModel
Specified by:
clone in interface AnnouncementsEntryModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(AnnouncementsEntry announcementsEntry)
Specified by:
compareTo in interface AnnouncementsEntryModel
Specified by:
compareTo in interface Comparable<AnnouncementsEntry>

hashCode

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

toCacheModel

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

Specified by:
toCacheModel in interface BaseModel<AnnouncementsEntry>
Specified by:
toCacheModel in interface AnnouncementsEntryModel
Returns:
the cache model object

toEscapedModel

public AnnouncementsEntry 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<AnnouncementsEntry>
Specified by:
toEscapedModel in interface AnnouncementsEntryModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public AnnouncementsEntry toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<AnnouncementsEntry>
Specified by:
toUnescapedModel in interface AnnouncementsEntryModel

toString

public String toString()
Specified by:
toString in interface AnnouncementsEntryModel
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<AnnouncementsEntry>
Specified by:
toXmlString in interface AnnouncementsEntryModel
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

getGroupId

public long getGroupId()
                throws PortalException,
                       SystemException
Specified by:
getGroupId in interface AnnouncementsEntry
Throws:
PortalException
SystemException

equals

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

getStagedModelType

public StagedModelType getStagedModelType()
Specified by:
getStagedModelType in interface StagedModel

getWrappedAnnouncementsEntry

public AnnouncementsEntry getWrappedAnnouncementsEntry()
Deprecated. As of 6.1.0, replaced by getWrappedModel()


getWrappedModel

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

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<AnnouncementsEntry>

Liferay 6.2-ce-ga5