Liferay 6.1.2-ce-ga3

com.liferay.portlet.calendar.model
Class CalEventWrapper

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

public class CalEventWrapper
extends Object
implements CalEvent, ModelWrapper<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 it is generated.

Constructor Summary
CalEventWrapper(CalEvent calEvent)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(CalEvent calEvent)
           
 boolean equals(Object obj)
           
 boolean getAllDay()
          Returns the all day of this cal event.
 long getCompanyId()
          Returns the company ID of this cal event.
 Date getCreateDate()
          Returns the create date of this cal event.
 String getDescription()
          Returns the description of this cal event.
 int getDurationHour()
          Returns the duration hour of this cal event.
 int getDurationMinute()
          Returns the duration minute of this cal event.
 Date getEndDate()
          Returns the end date of this cal event.
 long getEventId()
          Returns the event ID of this cal event.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 int getFirstReminder()
          Returns the first reminder of this cal event.
 long getGroupId()
          Returns the group ID of this cal event.
 String getLocation()
          Returns the location of this cal event.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date of this cal event.
 long getPrimaryKey()
          Returns the primary key of this cal event.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 String getRecurrence()
          Returns the recurrence of this cal event.
 TZSRecurrence getRecurrenceObj()
           
 int getRemindBy()
          Returns the remind by of this cal event.
 boolean getRepeating()
          Returns the repeating of this cal event.
 int getSecondReminder()
          Returns the second reminder of this cal event.
 Date getStartDate()
          Returns the start date of this cal event.
 boolean getTimeZoneSensitive()
          Returns the time zone sensitive of this cal event.
 String getTitle()
          Returns the title of this cal event.
 String getType()
          Returns the type of this cal event.
 long getUserId()
          Returns the user ID of this cal event.
 String getUserName()
          Returns the user name of this cal event.
 String getUserUuid()
          Returns the user uuid of this cal event.
 String getUuid()
          Returns the uuid of this cal event.
 CalEvent getWrappedCalEvent()
          Deprecated. Renamed to getWrappedModel()
 CalEvent getWrappedModel()
           
 int hashCode()
           
 boolean isAllDay()
          Returns true if this cal event is all day.
 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.
 boolean isRepeating()
          Returns true if this cal event is repeating.
 boolean isTimeZoneSensitive()
          Returns true if this cal event is time zone sensitive.
 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 setAllDay(boolean allDay)
          Sets whether this cal event 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 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 setLocation(String location)
          Sets the location of this cal event.
 void setModelAttributes(Map<String,Object> attributes)
           
 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 primaryKey)
          Sets the primary key of this cal event.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 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 cal event 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 cal event 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.
 CacheModel<CalEvent> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 CalEvent toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 CalEvent 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

CalEventWrapper

public CalEventWrapper(CalEvent calEvent)
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<CalEvent>

setModelAttributes

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

getPrimaryKey

public long getPrimaryKey()
Returns 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 primaryKey)
Sets the primary key of this cal event.

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

getUuid

public String getUuid()
Returns 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)
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()
Returns 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)
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()
Returns the group ID of this cal event.

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

setGroupId

public void setGroupId(long groupId)
Sets the group ID of this cal event.

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

getCompanyId

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

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

setCompanyId

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

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

getUserId

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

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

setUserId

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

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

getUserUuid

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

Specified by:
getUserUuid in interface AuditedModel
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)
Sets the user uuid of this cal event.

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

getUserName

public String getUserName()
Returns the user name of this cal event.

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

setUserName

public void setUserName(String userName)
Sets the user name of this cal event.

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

getCreateDate

public Date getCreateDate()
Returns the create date of this cal event.

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

setCreateDate

public void setCreateDate(Date createDate)
Sets the create date of this cal event.

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

getModifiedDate

public Date getModifiedDate()
Returns the modified date of this cal event.

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

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Sets the modified date of this cal event.

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

getTitle

public String getTitle()
Returns 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)
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()
Returns 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)
Sets the description of this cal event.

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

getLocation

public String getLocation()
Returns the location of this cal event.

Specified by:
getLocation in interface CalEventModel
Returns:
the location of this cal event

setLocation

public void setLocation(String location)
Sets the location of this cal event.

Specified by:
setLocation in interface CalEventModel
Parameters:
location - the location of this cal event

getStartDate

public Date getStartDate()
Returns 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)
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()
Returns 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)
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()
Returns 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)
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()
Returns 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)
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()
Returns 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()
Returns true if this cal event is all day.

Specified by:
isAllDay in interface CalEventModel
Returns:
true if this cal event is all day; false otherwise

setAllDay

public void setAllDay(boolean allDay)
Sets whether this cal event is all day.

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

getTimeZoneSensitive

public boolean getTimeZoneSensitive()
Returns 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()
Returns true if this cal event is time zone sensitive.

Specified by:
isTimeZoneSensitive in interface CalEventModel
Returns:
true if this cal event is time zone sensitive; false otherwise

setTimeZoneSensitive

public void setTimeZoneSensitive(boolean timeZoneSensitive)
Sets whether this cal event is time zone sensitive.

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

getType

public String getType()
Returns 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)
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()
Returns the repeating of this cal event.

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

isRepeating

public boolean isRepeating()
Returns true if this cal event is repeating.

Specified by:
isRepeating in interface CalEventModel
Returns:
true if this cal event is repeating; false otherwise

setRepeating

public void setRepeating(boolean repeating)
Sets whether this cal event is repeating.

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

getRecurrence

public String getRecurrence()
Returns 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)
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()
Returns 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)
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()
Returns 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)
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()
Returns 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)
Sets the second reminder of this cal event.

Specified by:
setSecondReminder in interface CalEventModel
Parameters:
secondReminder - the second reminder of this cal 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<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
Returns true 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
Returns true 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

getPrimaryKeyObj

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

Specified by:
getPrimaryKeyObj in interface BaseModel<CalEvent>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface CalEventModel
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<CalEvent>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface CalEventModel
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<CalEvent>
Specified by:
getExpandoBridge in interface ClassedModel
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
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

toCacheModel

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

Specified by:
toCacheModel in interface BaseModel<CalEvent>
Specified by:
toCacheModel in interface CalEventModel
Returns:
the cache model object

toEscapedModel

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

toUnescapedModel

public CalEvent toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<CalEvent>
Specified by:
toUnescapedModel in interface CalEventModel

toString

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

getRecurrenceObj

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

setRecurrenceObj

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

equals

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

getWrappedCalEvent

public CalEvent getWrappedCalEvent()
Deprecated. Renamed to getWrappedModel()


getWrappedModel

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

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<CalEvent>

Liferay 6.1.2-ce-ga3