Liferay 6.0.5

com.liferay.portlet.calendar.model
Class CalEventWrapper

java.lang.Object
  extended by com.liferay.portlet.calendar.model.CalEventWrapper
All Implemented Interfaces:
BaseModel<CalEvent>, CalEvent, CalEventModel, Serializable, Cloneable, Comparable<CalEvent>

public class CalEventWrapper
extends Object
implements CalEvent

This class is a wrapper for CalEvent.

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

Constructor Summary
CalEventWrapper(CalEvent calEvent)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(CalEvent calEvent)
           
 boolean getAllDay()
          Gets the all day of this cal event.
 long getCompanyId()
          Gets the company id of this cal event.
 Date getCreateDate()
          Gets the create date of this cal event.
 String getDescription()
          Gets the description of this cal event.
 int getDurationHour()
          Gets the duration hour of this cal event.
 int getDurationMinute()
          Gets the duration minute of this cal event.
 Date getEndDate()
          Gets the end date of this cal event.
 long getEventId()
          Gets the event id of this cal event.
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 int getFirstReminder()
          Gets the first reminder of this cal event.
 long getGroupId()
          Gets the group id of this cal event.
 Date getModifiedDate()
          Gets the modified date of this cal event.
 long getPrimaryKey()
          Gets the primary key of this cal event.
 Serializable getPrimaryKeyObj()
          Gets the primary key of this model instance.
 String getRecurrence()
          Gets the recurrence of this cal event.
 TZSRecurrence getRecurrenceObj()
           
 int getRemindBy()
          Gets the remind by of this cal event.
 boolean getRepeating()
          Gets the repeating of this cal event.
 int getSecondReminder()
          Gets the second reminder of this cal event.
 Date getStartDate()
          Gets the start date of this cal event.
 boolean getTimeZoneSensitive()
          Gets the time zone sensitive of this cal event.
 String getTitle()
          Gets the title of this cal event.
 String getType()
          Gets the type of this cal event.
 long getUserId()
          Gets the user id of this cal event.
 String getUserName()
          Gets the user name of this cal event.
 String getUserUuid()
          Gets the user uuid of this cal event.
 String getUuid()
          Gets the uuid of this cal event.
 CalEvent getWrappedCalEvent()
           
 int hashCode()
           
 boolean isAllDay()
          Determines whether this cal event is all day.
 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.
 boolean isRepeating()
          Determines whether this cal event is repeating.
 boolean isTimeZoneSensitive()
          Determines whether this cal event is time zone sensitive.
 void setAllDay(boolean allDay)
          Sets whether this {$entity.humanName} is all day.
 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 cal event.
 void setCreateDate(Date createDate)
          Sets the create date of this cal event.
 void setDescription(String description)
          Sets the description of this cal event.
 void setDurationHour(int durationHour)
          Sets the duration hour of this cal event.
 void setDurationMinute(int durationMinute)
          Sets the duration minute of this cal event.
 void setEndDate(Date endDate)
          Sets the end date of this cal event.
 void setEscapedModel(boolean escapedModel)
          Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe.
 void setEventId(long eventId)
          Sets the event id of this cal event.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setFirstReminder(int firstReminder)
          Sets the first reminder of this cal event.
 void setGroupId(long groupId)
          Sets the group id of this cal event.
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this cal event.
 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 cal event
 void setRecurrence(String recurrence)
          Sets the recurrence of this cal event.
 void setRecurrenceObj(TZSRecurrence recurrenceObj)
           
 void setRemindBy(int remindBy)
          Sets the remind by of this cal event.
 void setRepeating(boolean repeating)
          Sets whether this {$entity.humanName} is repeating.
 void setSecondReminder(int secondReminder)
          Sets the second reminder of this cal event.
 void setStartDate(Date startDate)
          Sets the start date of this cal event.
 void setTimeZoneSensitive(boolean timeZoneSensitive)
          Sets whether this {$entity.humanName} is time zone sensitive.
 void setTitle(String title)
          Sets the title of this cal event.
 void setType(String type)
          Sets the type of this cal event.
 void setUserId(long userId)
          Sets the user id of this cal event.
 void setUserName(String userName)
          Sets the user name of this cal event.
 void setUserUuid(String userUuid)
          Sets the user uuid of this cal event.
 void setUuid(String uuid)
          Sets the uuid of this cal event.
 CalEvent toEscapedModel()
          Gets a copy of this cal event 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

CalEventWrapper

public CalEventWrapper(CalEvent calEvent)
Method Detail

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: CalEventModel
Gets the primary key of this cal event.

Specified by:
getPrimaryKey in interface CalEventModel
Returns:
the primary key of this cal event

setPrimaryKey

public void setPrimaryKey(long pk)
Description copied from interface: CalEventModel
Sets the primary key of this cal event

Specified by:
setPrimaryKey in interface CalEventModel
Parameters:
pk - the primary key of this cal event

getUuid

public String getUuid()
Description copied from interface: CalEventModel
Gets the uuid of this cal event.

Specified by:
getUuid in interface CalEventModel
Returns:
the uuid of this cal event

setUuid

public void setUuid(String uuid)
Description copied from interface: CalEventModel
Sets the uuid of this cal event.

Specified by:
setUuid in interface CalEventModel
Parameters:
uuid - the uuid of this cal event

getEventId

public long getEventId()
Description copied from interface: CalEventModel
Gets the event id of this cal event.

Specified by:
getEventId in interface CalEventModel
Returns:
the event id of this cal event

setEventId

public void setEventId(long eventId)
Description copied from interface: CalEventModel
Sets the event id of this cal event.

Specified by:
setEventId in interface CalEventModel
Parameters:
eventId - the event id of this cal event

getGroupId

public long getGroupId()
Description copied from interface: CalEventModel
Gets the group id of this cal event.

Specified by:
getGroupId in interface CalEventModel
Returns:
the group id of this cal event

setGroupId

public void setGroupId(long groupId)
Description copied from interface: CalEventModel
Sets the group id of this cal event.

Specified by:
setGroupId in interface CalEventModel
Parameters:
groupId - the group id of this cal event

getCompanyId

public long getCompanyId()
Description copied from interface: CalEventModel
Gets the company id of this cal event.

Specified by:
getCompanyId in interface CalEventModel
Returns:
the company id of this cal event

setCompanyId

public void setCompanyId(long companyId)
Description copied from interface: CalEventModel
Sets the company id of this cal event.

Specified by:
setCompanyId in interface CalEventModel
Parameters:
companyId - the company id of this cal event

getUserId

public long getUserId()
Description copied from interface: CalEventModel
Gets the user id of this cal event.

Specified by:
getUserId in interface CalEventModel
Returns:
the user id of this cal event

setUserId

public void setUserId(long userId)
Description copied from interface: CalEventModel
Sets the user id of this cal event.

Specified by:
setUserId in interface CalEventModel
Parameters:
userId - the user id of this cal event

getUserUuid

public String getUserUuid()
                   throws SystemException
Description copied from interface: CalEventModel
Gets the user uuid of this cal event.

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

setUserUuid

public void setUserUuid(String userUuid)
Description copied from interface: CalEventModel
Sets the user uuid of this cal event.

Specified by:
setUserUuid in interface CalEventModel
Parameters:
userUuid - the user uuid of this cal event

getUserName

public String getUserName()
Description copied from interface: CalEventModel
Gets the user name of this cal event.

Specified by:
getUserName in interface CalEventModel
Returns:
the user name of this cal event

setUserName

public void setUserName(String userName)
Description copied from interface: CalEventModel
Sets the user name of this cal event.

Specified by:
setUserName in interface CalEventModel
Parameters:
userName - the user name of this cal event

getCreateDate

public Date getCreateDate()
Description copied from interface: CalEventModel
Gets the create date of this cal event.

Specified by:
getCreateDate in interface CalEventModel
Returns:
the create date of this cal event

setCreateDate

public void setCreateDate(Date createDate)
Description copied from interface: CalEventModel
Sets the create date of this cal event.

Specified by:
setCreateDate in interface CalEventModel
Parameters:
createDate - the create date of this cal event

getModifiedDate

public Date getModifiedDate()
Description copied from interface: CalEventModel
Gets the modified date of this cal event.

Specified by:
getModifiedDate in interface CalEventModel
Returns:
the modified date of this cal event

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Description copied from interface: CalEventModel
Sets the modified date of this cal event.

Specified by:
setModifiedDate in interface CalEventModel
Parameters:
modifiedDate - the modified date of this cal event

getTitle

public String getTitle()
Description copied from interface: CalEventModel
Gets the title of this cal event.

Specified by:
getTitle in interface CalEventModel
Returns:
the title of this cal event

setTitle

public void setTitle(String title)
Description copied from interface: CalEventModel
Sets the title of this cal event.

Specified by:
setTitle in interface CalEventModel
Parameters:
title - the title of this cal event

getDescription

public String getDescription()
Description copied from interface: CalEventModel
Gets the description of this cal event.

Specified by:
getDescription in interface CalEventModel
Returns:
the description of this cal event

setDescription

public void setDescription(String description)
Description copied from interface: CalEventModel
Sets the description of this cal event.

Specified by:
setDescription in interface CalEventModel
Parameters:
description - the description of this cal event

getStartDate

public Date getStartDate()
Description copied from interface: CalEventModel
Gets the start date of this cal event.

Specified by:
getStartDate in interface CalEventModel
Returns:
the start date of this cal event

setStartDate

public void setStartDate(Date startDate)
Description copied from interface: CalEventModel
Sets the start date of this cal event.

Specified by:
setStartDate in interface CalEventModel
Parameters:
startDate - the start date of this cal event

getEndDate

public Date getEndDate()
Description copied from interface: CalEventModel
Gets the end date of this cal event.

Specified by:
getEndDate in interface CalEventModel
Returns:
the end date of this cal event

setEndDate

public void setEndDate(Date endDate)
Description copied from interface: CalEventModel
Sets the end date of this cal event.

Specified by:
setEndDate in interface CalEventModel
Parameters:
endDate - the end date of this cal event

getDurationHour

public int getDurationHour()
Description copied from interface: CalEventModel
Gets the duration hour of this cal event.

Specified by:
getDurationHour in interface CalEventModel
Returns:
the duration hour of this cal event

setDurationHour

public void setDurationHour(int durationHour)
Description copied from interface: CalEventModel
Sets the duration hour of this cal event.

Specified by:
setDurationHour in interface CalEventModel
Parameters:
durationHour - the duration hour of this cal event

getDurationMinute

public int getDurationMinute()
Description copied from interface: CalEventModel
Gets the duration minute of this cal event.

Specified by:
getDurationMinute in interface CalEventModel
Returns:
the duration minute of this cal event

setDurationMinute

public void setDurationMinute(int durationMinute)
Description copied from interface: CalEventModel
Sets the duration minute of this cal event.

Specified by:
setDurationMinute in interface CalEventModel
Parameters:
durationMinute - the duration minute of this cal event

getAllDay

public boolean getAllDay()
Description copied from interface: CalEventModel
Gets the all day of this cal event.

Specified by:
getAllDay in interface CalEventModel
Returns:
the all day of this cal event

isAllDay

public boolean isAllDay()
Description copied from interface: CalEventModel
Determines whether this cal event is all day.

Specified by:
isAllDay in interface CalEventModel
Returns:
whether this cal event is all day

setAllDay

public void setAllDay(boolean allDay)
Description copied from interface: CalEventModel
Sets whether this {$entity.humanName} is all day.

Specified by:
setAllDay in interface CalEventModel
Parameters:
allDay - the all day of this cal event

getTimeZoneSensitive

public boolean getTimeZoneSensitive()
Description copied from interface: CalEventModel
Gets the time zone sensitive of this cal event.

Specified by:
getTimeZoneSensitive in interface CalEventModel
Returns:
the time zone sensitive of this cal event

isTimeZoneSensitive

public boolean isTimeZoneSensitive()
Description copied from interface: CalEventModel
Determines whether this cal event is time zone sensitive.

Specified by:
isTimeZoneSensitive in interface CalEventModel
Returns:
whether this cal event is time zone sensitive

setTimeZoneSensitive

public void setTimeZoneSensitive(boolean timeZoneSensitive)
Description copied from interface: CalEventModel
Sets whether this {$entity.humanName} is time zone sensitive.

Specified by:
setTimeZoneSensitive in interface CalEventModel
Parameters:
timeZoneSensitive - the time zone sensitive of this cal event

getType

public String getType()
Description copied from interface: CalEventModel
Gets the type of this cal event.

Specified by:
getType in interface CalEventModel
Returns:
the type of this cal event

setType

public void setType(String type)
Description copied from interface: CalEventModel
Sets the type of this cal event.

Specified by:
setType in interface CalEventModel
Parameters:
type - the type of this cal event

getRepeating

public boolean getRepeating()
Description copied from interface: CalEventModel
Gets the repeating of this cal event.

Specified by:
getRepeating in interface CalEventModel
Returns:
the repeating of this cal event

isRepeating

public boolean isRepeating()
Description copied from interface: CalEventModel
Determines whether this cal event is repeating.

Specified by:
isRepeating in interface CalEventModel
Returns:
whether this cal event is repeating

setRepeating

public void setRepeating(boolean repeating)
Description copied from interface: CalEventModel
Sets whether this {$entity.humanName} is repeating.

Specified by:
setRepeating in interface CalEventModel
Parameters:
repeating - the repeating of this cal event

getRecurrence

public String getRecurrence()
Description copied from interface: CalEventModel
Gets the recurrence of this cal event.

Specified by:
getRecurrence in interface CalEventModel
Returns:
the recurrence of this cal event

setRecurrence

public void setRecurrence(String recurrence)
Description copied from interface: CalEventModel
Sets the recurrence of this cal event.

Specified by:
setRecurrence in interface CalEvent
Specified by:
setRecurrence in interface CalEventModel
Parameters:
recurrence - the recurrence of this cal event

getRemindBy

public int getRemindBy()
Description copied from interface: CalEventModel
Gets the remind by of this cal event.

Specified by:
getRemindBy in interface CalEventModel
Returns:
the remind by of this cal event

setRemindBy

public void setRemindBy(int remindBy)
Description copied from interface: CalEventModel
Sets the remind by of this cal event.

Specified by:
setRemindBy in interface CalEventModel
Parameters:
remindBy - the remind by of this cal event

getFirstReminder

public int getFirstReminder()
Description copied from interface: CalEventModel
Gets the first reminder of this cal event.

Specified by:
getFirstReminder in interface CalEventModel
Returns:
the first reminder of this cal event

setFirstReminder

public void setFirstReminder(int firstReminder)
Description copied from interface: CalEventModel
Sets the first reminder of this cal event.

Specified by:
setFirstReminder in interface CalEventModel
Parameters:
firstReminder - the first reminder of this cal event

getSecondReminder

public int getSecondReminder()
Description copied from interface: CalEventModel
Gets the second reminder of this cal event.

Specified by:
getSecondReminder in interface CalEventModel
Returns:
the second reminder of this cal event

setSecondReminder

public void setSecondReminder(int secondReminder)
Description copied from interface: CalEventModel
Sets the second reminder of this cal event.

Specified by:
setSecondReminder in interface CalEventModel
Parameters:
secondReminder - the second reminder of this cal event

toEscapedModel

public CalEvent toEscapedModel()
Description copied from interface: CalEventModel
Gets a copy of this cal event as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface CalEventModel
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<CalEvent>
Specified by:
isNew in interface CalEventModel
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<CalEvent>
Specified by:
setNew in interface CalEventModel
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<CalEvent>
Specified by:
isCachedModel in interface CalEventModel
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<CalEvent>
Specified by:
setCachedModel in interface CalEventModel
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<CalEvent>
Specified by:
isEscapedModel in interface CalEventModel
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<CalEvent>
Specified by:
setEscapedModel in interface CalEventModel
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<CalEvent>
Specified by:
getPrimaryKeyObj in interface CalEventModel
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<CalEvent>
Specified by:
getExpandoBridge in interface CalEventModel
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<CalEvent>
Specified by:
setExpandoBridgeAttributes in interface CalEventModel
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<CalEvent>
Specified by:
clone in interface CalEventModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(CalEvent calEvent)
Specified by:
compareTo in interface CalEventModel
Specified by:
compareTo in interface Comparable<CalEvent>

hashCode

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

toString

public String toString()
Specified by:
toString in interface CalEventModel
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<CalEvent>
Specified by:
toXmlString in interface CalEventModel
Returns:
the XML representation of this model instance

getRecurrenceObj

public TZSRecurrence getRecurrenceObj()
Specified by:
getRecurrenceObj in interface CalEvent

setRecurrenceObj

public void setRecurrenceObj(TZSRecurrence recurrenceObj)
Specified by:
setRecurrenceObj in interface CalEvent

getWrappedCalEvent

public CalEvent getWrappedCalEvent()

Liferay 6.0.5