Liferay 6.0.5

com.liferay.portlet.announcements.model
Class AnnouncementsEntryWrapper

java.lang.Object
  extended by com.liferay.portlet.announcements.model.AnnouncementsEntryWrapper
All Implemented Interfaces:
BaseModel<AnnouncementsEntry>, AnnouncementsEntry, AnnouncementsEntryModel, Serializable, Cloneable, Comparable<AnnouncementsEntry>

public class AnnouncementsEntryWrapper
extends Object
implements 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 is generated.

Constructor Summary
AnnouncementsEntryWrapper(AnnouncementsEntry announcementsEntry)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(AnnouncementsEntry announcementsEntry)
           
 boolean getAlert()
          Gets the alert of this announcements entry.
 String getClassName()
          Gets the class name of the model instance this announcements entry is polymorphically associated with.
 long getClassNameId()
          Gets the class name id of this announcements entry.
 long getClassPK()
          Gets the class p k of this announcements entry.
 long getCompanyId()
          Gets the company id of this announcements entry.
 String getContent()
          Gets the content of this announcements entry.
 Date getCreateDate()
          Gets the create date of this announcements entry.
 Date getDisplayDate()
          Gets the display date of this announcements entry.
 long getEntryId()
          Gets the entry id of this announcements entry.
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 Date getExpirationDate()
          Gets the expiration date of this announcements entry.
 long getGroupId()
           
 Date getModifiedDate()
          Gets the modified date of this announcements entry.
 long getPrimaryKey()
          Gets the primary key of this announcements entry.
 Serializable getPrimaryKeyObj()
          Gets the primary key of this model instance.
 int getPriority()
          Gets the priority of this announcements entry.
 String getTitle()
          Gets the title of this announcements entry.
 String getType()
          Gets the type of this announcements entry.
 String getUrl()
          Gets the url of this announcements entry.
 long getUserId()
          Gets the user id of this announcements entry.
 String getUserName()
          Gets the user name of this announcements entry.
 String getUserUuid()
          Gets the user uuid of this announcements entry.
 String getUuid()
          Gets the uuid of this announcements entry.
 AnnouncementsEntry getWrappedAnnouncementsEntry()
           
 int hashCode()
           
 boolean isAlert()
          Determines whether this announcements entry is alert.
 boolean isCachedModel()
          Determines if this model instance was retrieved from the entity cache.
 boolean isEscapedModel()
          Determines if this model instance is escaped.
 boolean isNew()
          Determines if this model instance does not yet exist in the database.
 void setAlert(boolean alert)
          Sets whether this {$entity.humanName} is alert.
 void setCachedModel(boolean cachedModel)
          Sets whether this model instance was retrieved from the entity cache.
 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 setEscapedModel(boolean escapedModel)
          Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe.
 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 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 pk)
          Sets the primary key of this announcements entry
 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.
 AnnouncementsEntry toEscapedModel()
          Gets a copy of this announcements entry as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 String toXmlString()
          Gets the XML representation of this model instance.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnouncementsEntryWrapper

public AnnouncementsEntryWrapper(AnnouncementsEntry announcementsEntry)
Method Detail

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: AnnouncementsEntryModel
Gets 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 pk)
Description copied from interface: AnnouncementsEntryModel
Sets the primary key of this announcements entry

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

getUuid

public String getUuid()
Description copied from interface: AnnouncementsEntryModel
Gets the uuid of this announcements entry.

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

setUuid

public void setUuid(String uuid)
Description copied from interface: AnnouncementsEntryModel
Sets the uuid of this announcements entry.

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

getEntryId

public long getEntryId()
Description copied from interface: AnnouncementsEntryModel
Gets 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)
Description copied from interface: AnnouncementsEntryModel
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()
Description copied from interface: AnnouncementsEntryModel
Gets the company id of this announcements entry.

Specified by:
getCompanyId in interface AnnouncementsEntryModel
Returns:
the company id of this announcements entry

setCompanyId

public void setCompanyId(long companyId)
Description copied from interface: AnnouncementsEntryModel
Sets the company id of this announcements entry.

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

getUserId

public long getUserId()
Description copied from interface: AnnouncementsEntryModel
Gets the user id of this announcements entry.

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

setUserId

public void setUserId(long userId)
Description copied from interface: AnnouncementsEntryModel
Sets the user id of this announcements entry.

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

getUserUuid

public String getUserUuid()
                   throws SystemException
Description copied from interface: AnnouncementsEntryModel
Gets the user uuid of this announcements entry.

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)
Description copied from interface: AnnouncementsEntryModel
Sets the user uuid of this announcements entry.

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

getUserName

public String getUserName()
Description copied from interface: AnnouncementsEntryModel
Gets the user name of this announcements entry.

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

setUserName

public void setUserName(String userName)
Description copied from interface: AnnouncementsEntryModel
Sets the user name of this announcements entry.

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

getCreateDate

public Date getCreateDate()
Description copied from interface: AnnouncementsEntryModel
Gets the create date of this announcements entry.

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

setCreateDate

public void setCreateDate(Date createDate)
Description copied from interface: AnnouncementsEntryModel
Sets the create date of this announcements entry.

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

getModifiedDate

public Date getModifiedDate()
Description copied from interface: AnnouncementsEntryModel
Gets the modified date of this announcements entry.

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

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Description copied from interface: AnnouncementsEntryModel
Sets the modified date of this announcements entry.

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

getClassName

public String getClassName()
Description copied from interface: AnnouncementsEntryModel
Gets the class name of the model instance this announcements entry is polymorphically associated with.

Specified by:
getClassName in interface AnnouncementsEntryModel
Returns:
the class name of the model instance this announcements entry is polymorphically associated with

getClassNameId

public long getClassNameId()
Description copied from interface: AnnouncementsEntryModel
Gets the class name id of this announcements entry.

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

setClassNameId

public void setClassNameId(long classNameId)
Description copied from interface: AnnouncementsEntryModel
Sets the class name id of this announcements entry.

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

getClassPK

public long getClassPK()
Description copied from interface: AnnouncementsEntryModel
Gets the class p k of this announcements entry.

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

setClassPK

public void setClassPK(long classPK)
Description copied from interface: AnnouncementsEntryModel
Sets the class p k of this announcements entry.

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

getTitle

public String getTitle()
Description copied from interface: AnnouncementsEntryModel
Gets 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)
Description copied from interface: AnnouncementsEntryModel
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()
Description copied from interface: AnnouncementsEntryModel
Gets 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)
Description copied from interface: AnnouncementsEntryModel
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()
Description copied from interface: AnnouncementsEntryModel
Gets 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)
Description copied from interface: AnnouncementsEntryModel
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()
Description copied from interface: AnnouncementsEntryModel
Gets 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)
Description copied from interface: AnnouncementsEntryModel
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()
Description copied from interface: AnnouncementsEntryModel
Gets 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)
Description copied from interface: AnnouncementsEntryModel
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()
Description copied from interface: AnnouncementsEntryModel
Gets 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)
Description copied from interface: AnnouncementsEntryModel
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()
Description copied from interface: AnnouncementsEntryModel
Gets 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)
Description copied from interface: AnnouncementsEntryModel
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()
Description copied from interface: AnnouncementsEntryModel
Gets the alert of this announcements entry.

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

isAlert

public boolean isAlert()
Description copied from interface: AnnouncementsEntryModel
Determines whether this announcements entry is alert.

Specified by:
isAlert in interface AnnouncementsEntryModel
Returns:
whether this announcements entry is alert

setAlert

public void setAlert(boolean alert)
Description copied from interface: AnnouncementsEntryModel
Sets whether this {$entity.humanName} is alert.

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

toEscapedModel

public AnnouncementsEntry toEscapedModel()
Description copied from interface: AnnouncementsEntryModel
Gets a copy of this announcements entry as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface AnnouncementsEntryModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

isNew

public boolean isNew()
Description copied from interface: BaseModel
Determines 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
Determines 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
Determines 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
See Also:
BaseModel.setEscapedModel(boolean)

setEscapedModel

public void setEscapedModel(boolean escapedModel)
Description copied from interface: BaseModel
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe.

A model instance can be made escaped by wrapping it with an HTML auto escape handler using its toEscapedModel method. For example, UserModel.toEscapedModel().

Specified by:
setEscapedModel in interface BaseModel<AnnouncementsEntry>
Specified by:
setEscapedModel in interface AnnouncementsEntryModel
Parameters:
escapedModel - whether this model instance is escaped
See Also:
AutoEscapeBeanHandler

getPrimaryKeyObj

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

Specified by:
getPrimaryKeyObj in interface BaseModel<AnnouncementsEntry>
Specified by:
getPrimaryKeyObj in interface AnnouncementsEntryModel
Returns:
the primary key of this model instance

getExpandoBridge

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

Specified by:
getExpandoBridge in interface BaseModel<AnnouncementsEntry>
Specified by:
getExpandoBridge in interface AnnouncementsEntryModel
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<AnnouncementsEntry>
Specified by:
setExpandoBridgeAttributes in interface AnnouncementsEntryModel
Parameters:
serviceContext - the service context to retrieve the expando bridge attributes from
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 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

toString

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

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Gets 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

getGroupId

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

getWrappedAnnouncementsEntry

public AnnouncementsEntry getWrappedAnnouncementsEntry()

Liferay 6.0.5