Liferay 6.0.5

com.liferay.portlet.calendar.model
Interface CalEventModel

All Superinterfaces:
BaseModel<CalEvent>, Cloneable, Comparable<CalEvent>, Serializable
All Known Subinterfaces:
CalEvent
All Known Implementing Classes:
CalEventImpl, CalEventModelImpl, CalEventWrapper

public interface CalEventModel
extends BaseModel<CalEvent>

The base model interface for the CalEvent service. Represents a row in the "CalEvent" database table, with each column mapped to a property of this class.

This interface and its corresponding implementation CalEventModelImpl exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in CalEventImpl.

Never modify or reference this interface directly. All methods that expect a cal event model instance should use the CalEvent interface instead.

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

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.
 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.
 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 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.
 

Method Detail

getPrimaryKey

long getPrimaryKey()
Gets the primary key of this cal event.

Returns:
the primary key of this cal event

setPrimaryKey

void setPrimaryKey(long pk)
Sets the primary key of this cal event

Parameters:
pk - the primary key of this cal event

getUuid

@AutoEscape
String getUuid()
Gets the uuid of this cal event.

Returns:
the uuid of this cal event

setUuid

void setUuid(String uuid)
Sets the uuid of this cal event.

Parameters:
uuid - the uuid of this cal event

getEventId

long getEventId()
Gets the event id of this cal event.

Returns:
the event id of this cal event

setEventId

void setEventId(long eventId)
Sets the event id of this cal event.

Parameters:
eventId - the event id of this cal event

getGroupId

long getGroupId()
Gets the group id of this cal event.

Returns:
the group id of this cal event

setGroupId

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

Parameters:
groupId - the group id of this cal event

getCompanyId

long getCompanyId()
Gets the company id of this cal event.

Returns:
the company id of this cal event

setCompanyId

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

Parameters:
companyId - the company id of this cal event

getUserId

long getUserId()
Gets the user id of this cal event.

Returns:
the user id of this cal event

setUserId

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

Parameters:
userId - the user id of this cal event

getUserUuid

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

Returns:
the user uuid of this cal event
Throws:
SystemException - if a system exception occurred

setUserUuid

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

Parameters:
userUuid - the user uuid of this cal event

getUserName

@AutoEscape
String getUserName()
Gets the user name of this cal event.

Returns:
the user name of this cal event

setUserName

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

Parameters:
userName - the user name of this cal event

getCreateDate

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

Returns:
the create date of this cal event

setCreateDate

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

Parameters:
createDate - the create date of this cal event

getModifiedDate

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

Returns:
the modified date of this cal event

setModifiedDate

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

Parameters:
modifiedDate - the modified date of this cal event

getTitle

@AutoEscape
String getTitle()
Gets the title of this cal event.

Returns:
the title of this cal event

setTitle

void setTitle(String title)
Sets the title of this cal event.

Parameters:
title - the title of this cal event

getDescription

@AutoEscape
String getDescription()
Gets the description of this cal event.

Returns:
the description of this cal event

setDescription

void setDescription(String description)
Sets the description of this cal event.

Parameters:
description - the description of this cal event

getStartDate

Date getStartDate()
Gets the start date of this cal event.

Returns:
the start date of this cal event

setStartDate

void setStartDate(Date startDate)
Sets the start date of this cal event.

Parameters:
startDate - the start date of this cal event

getEndDate

Date getEndDate()
Gets the end date of this cal event.

Returns:
the end date of this cal event

setEndDate

void setEndDate(Date endDate)
Sets the end date of this cal event.

Parameters:
endDate - the end date of this cal event

getDurationHour

int getDurationHour()
Gets the duration hour of this cal event.

Returns:
the duration hour of this cal event

setDurationHour

void setDurationHour(int durationHour)
Sets the duration hour of this cal event.

Parameters:
durationHour - the duration hour of this cal event

getDurationMinute

int getDurationMinute()
Gets the duration minute of this cal event.

Returns:
the duration minute of this cal event

setDurationMinute

void setDurationMinute(int durationMinute)
Sets the duration minute of this cal event.

Parameters:
durationMinute - the duration minute of this cal event

getAllDay

boolean getAllDay()
Gets the all day of this cal event.

Returns:
the all day of this cal event

isAllDay

boolean isAllDay()
Determines whether this cal event is all day.

Returns:
whether this cal event is all day

setAllDay

void setAllDay(boolean allDay)
Sets whether this {$entity.humanName} is all day.

Parameters:
allDay - the all day of this cal event

getTimeZoneSensitive

boolean getTimeZoneSensitive()
Gets the time zone sensitive of this cal event.

Returns:
the time zone sensitive of this cal event

isTimeZoneSensitive

boolean isTimeZoneSensitive()
Determines whether this cal event is time zone sensitive.

Returns:
whether this cal event is time zone sensitive

setTimeZoneSensitive

void setTimeZoneSensitive(boolean timeZoneSensitive)
Sets whether this {$entity.humanName} is time zone sensitive.

Parameters:
timeZoneSensitive - the time zone sensitive of this cal event

getType

@AutoEscape
String getType()
Gets the type of this cal event.

Returns:
the type of this cal event

setType

void setType(String type)
Sets the type of this cal event.

Parameters:
type - the type of this cal event

getRepeating

boolean getRepeating()
Gets the repeating of this cal event.

Returns:
the repeating of this cal event

isRepeating

boolean isRepeating()
Determines whether this cal event is repeating.

Returns:
whether this cal event is repeating

setRepeating

void setRepeating(boolean repeating)
Sets whether this {$entity.humanName} is repeating.

Parameters:
repeating - the repeating of this cal event

getRecurrence

String getRecurrence()
Gets the recurrence of this cal event.

Returns:
the recurrence of this cal event

setRecurrence

void setRecurrence(String recurrence)
Sets the recurrence of this cal event.

Parameters:
recurrence - the recurrence of this cal event

getRemindBy

int getRemindBy()
Gets the remind by of this cal event.

Returns:
the remind by of this cal event

setRemindBy

void setRemindBy(int remindBy)
Sets the remind by of this cal event.

Parameters:
remindBy - the remind by of this cal event

getFirstReminder

int getFirstReminder()
Gets the first reminder of this cal event.

Returns:
the first reminder of this cal event

setFirstReminder

void setFirstReminder(int firstReminder)
Sets the first reminder of this cal event.

Parameters:
firstReminder - the first reminder of this cal event

getSecondReminder

int getSecondReminder()
Gets the second reminder of this cal event.

Returns:
the second reminder of this cal event

setSecondReminder

void setSecondReminder(int secondReminder)
Sets the second reminder of this cal event.

Parameters:
secondReminder - the second reminder of this cal event

toEscapedModel

CalEvent toEscapedModel()
Gets a copy of this cal event as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

isNew

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>
Returns:
true if this model instance does not yet exist in the database; false otherwise

setNew

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>
Parameters:
n - whether this model instance does not yet exist in the database

isCachedModel

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>
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

setCachedModel

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>
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

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

Specified by:
isEscapedModel in interface BaseModel<CalEvent>
Returns:
true if this model instance is escaped; false otherwise
See Also:
BaseModel.setEscapedModel(boolean)

setEscapedModel

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>
Parameters:
escapedModel - whether this model instance is escaped
See Also:
AutoEscapeBeanHandler

getPrimaryKeyObj

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

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

getExpandoBridge

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

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

setExpandoBridgeAttributes

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>
Parameters:
serviceContext - the service context to retrieve the expando bridge attributes from
See Also:
ServiceContext.getExpandoBridgeAttributes( )

clone

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

Specified by:
clone in interface BaseModel<CalEvent>
Returns:
the shallow clone of this model instance

compareTo

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

hashCode

int hashCode()
Overrides:
hashCode in class Object

toString

String toString()
Overrides:
toString in class Object

toXmlString

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

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

Liferay 6.0.5