Liferay 6.0.5

com.liferay.portlet.calendar.model.impl
Class CalEventModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<CalEvent>
      extended by com.liferay.portlet.calendar.model.impl.CalEventModelImpl
All Implemented Interfaces:
BaseModel<CalEvent>, CalEventModel, Serializable, Cloneable, Comparable<CalEvent>
Direct Known Subclasses:
CalEventImpl

public class CalEventModelImpl
extends BaseModelImpl<CalEvent>
implements CalEventModel

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

This implementation and its corresponding interface CalEventModel 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 class directly. All methods that expect a cal event model instance should use the CalEvent interface instead.

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

Field Summary
static String DATA_SOURCE
           
static boolean ENTITY_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED
           
static long LOCK_EXPIRATION_TIME
           
static String ORDER_BY_JPQL
           
static String ORDER_BY_SQL
           
static String SESSION_FACTORY
           
static Object[][] TABLE_COLUMNS
           
static String TABLE_NAME
           
static String TABLE_SQL_CREATE
           
static String TABLE_SQL_DROP
           
static String TX_MANAGER
           
 
Constructor Summary
CalEventModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(CalEvent calEvent)
           
 boolean equals(Object obj)
           
 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 getOriginalGroupId()
           
 String getOriginalUuid()
           
 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 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 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 setModifiedDate(Date modifiedDate)
          Sets the modified date of this cal event.
 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.
static CalEvent toModel(CalEventSoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<CalEvent> toModels(CalEventSoap[] soapModels)
          Converts the soap model instances into normal model instances.
 String toString()
           
 String toXmlString()
          Gets the XML representation of this model instance.
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.calendar.model.CalEventModel
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, setNew
 

Field Detail

TABLE_NAME

public static final String TABLE_NAME
See Also:
Constant Field Values

TABLE_COLUMNS

public static final Object[][] TABLE_COLUMNS

TABLE_SQL_CREATE

public static final String TABLE_SQL_CREATE
See Also:
Constant Field Values

TABLE_SQL_DROP

public static final String TABLE_SQL_DROP
See Also:
Constant Field Values

ORDER_BY_JPQL

public static final String ORDER_BY_JPQL
See Also:
Constant Field Values

ORDER_BY_SQL

public static final String ORDER_BY_SQL
See Also:
Constant Field Values

DATA_SOURCE

public static final String DATA_SOURCE
See Also:
Constant Field Values

SESSION_FACTORY

public static final String SESSION_FACTORY
See Also:
Constant Field Values

TX_MANAGER

public static final String TX_MANAGER
See Also:
Constant Field Values

ENTITY_CACHE_ENABLED

public static final boolean ENTITY_CACHE_ENABLED

FINDER_CACHE_ENABLED

public static final boolean FINDER_CACHE_ENABLED

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

CalEventModelImpl

public CalEventModelImpl()
Method Detail

toModel

public static CalEvent toModel(CalEventSoap soapModel)
Converts the soap model instance into a normal model instance.

Parameters:
soapModel - the soap model instance to convert
Returns:
the normal model instance

toModels

public static List<CalEvent> toModels(CalEventSoap[] soapModels)
Converts the soap model instances into normal model instances.

Parameters:
soapModels - the soap model instances to convert
Returns:
the normal model instances

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

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

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

getOriginalUuid

public String getOriginalUuid()

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

getOriginalGroupId

public long getOriginalGroupId()

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

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
Overrides:
getExpandoBridge in class BaseModelImpl<CalEvent>
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
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<CalEvent>
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
Specified by:
clone in class BaseModelImpl<CalEvent>
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>

equals

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

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

Liferay 6.0.5