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

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

@JSON(strict=true)
public class CalEventModelImpl
extends com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portlet.calendar.model.CalEvent>
implements com.liferay.portlet.calendar.model.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.

Author:
Brian Wing Shun Chan
See Also:
CalEventImpl, CalEvent, CalEventModel, Serialized Form
Generated:

Field Summary
static boolean COLUMN_BITMASK_ENABLED
           
static long COMPANYID_COLUMN_BITMASK
           
static java.lang.String DATA_SOURCE
           
static boolean ENTITY_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED
           
static long GROUPID_COLUMN_BITMASK
           
static long LOCK_EXPIRATION_TIME
           
static java.lang.String ORDER_BY_JPQL
           
static java.lang.String ORDER_BY_SQL
           
static long REMINDBY_COLUMN_BITMASK
           
static long REPEATING_COLUMN_BITMASK
           
static java.lang.String SESSION_FACTORY
           
static java.lang.Object[][] TABLE_COLUMNS
           
static java.lang.String TABLE_NAME
           
static java.lang.String TABLE_SQL_CREATE
           
static java.lang.String TABLE_SQL_DROP
           
static java.lang.String TX_MANAGER
           
static long TYPE_COLUMN_BITMASK
           
static long UUID_COLUMN_BITMASK
           
 
Constructor Summary
CalEventModelImpl()
           
 
Method Summary
 java.lang.Object clone()
           
 int compareTo(com.liferay.portlet.calendar.model.CalEvent calEvent)
           
 boolean equals(java.lang.Object obj)
           
 boolean getAllDay()
           
 long getColumnBitmask()
           
 long getCompanyId()
           
 java.util.Date getCreateDate()
           
 java.lang.String getDescription()
           
 int getDurationHour()
           
 int getDurationMinute()
           
 java.util.Date getEndDate()
           
 long getEventId()
           
 com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge()
           
 int getFirstReminder()
           
 long getGroupId()
           
 java.lang.String getLocation()
           
 java.lang.Class<?> getModelClass()
           
 java.lang.String getModelClassName()
           
 java.util.Date getModifiedDate()
           
 long getOriginalCompanyId()
           
 long getOriginalGroupId()
           
 int getOriginalRemindBy()
           
 boolean getOriginalRepeating()
           
 java.lang.String getOriginalType()
           
 java.lang.String getOriginalUuid()
           
 long getPrimaryKey()
           
 java.io.Serializable getPrimaryKeyObj()
           
 java.lang.String getRecurrence()
           
 int getRemindBy()
           
 boolean getRepeating()
           
 int getSecondReminder()
           
 java.util.Date getStartDate()
           
 boolean getTimeZoneSensitive()
           
 java.lang.String getTitle()
           
 java.lang.String getType()
           
 long getUserId()
           
 java.lang.String getUserName()
           
 java.lang.String getUserUuid()
           
 java.lang.String getUuid()
           
 int hashCode()
           
 boolean isAllDay()
           
 boolean isRepeating()
           
 boolean isTimeZoneSensitive()
           
 void resetOriginalValues()
           
 void setAllDay(boolean allDay)
           
 void setCompanyId(long companyId)
           
 void setCreateDate(java.util.Date createDate)
           
 void setDescription(java.lang.String description)
           
 void setDurationHour(int durationHour)
           
 void setDurationMinute(int durationMinute)
           
 void setEndDate(java.util.Date endDate)
           
 void setEventId(long eventId)
           
 void setExpandoBridgeAttributes(com.liferay.portal.service.ServiceContext serviceContext)
           
 void setFirstReminder(int firstReminder)
           
 void setGroupId(long groupId)
           
 void setLocation(java.lang.String location)
           
 void setModifiedDate(java.util.Date modifiedDate)
           
 void setPrimaryKey(long primaryKey)
           
 void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
           
 void setRecurrence(java.lang.String recurrence)
           
 void setRemindBy(int remindBy)
           
 void setRepeating(boolean repeating)
           
 void setSecondReminder(int secondReminder)
           
 void setStartDate(java.util.Date startDate)
           
 void setTimeZoneSensitive(boolean timeZoneSensitive)
           
 void setTitle(java.lang.String title)
           
 void setType(java.lang.String type)
           
 void setUserId(long userId)
           
 void setUserName(java.lang.String userName)
           
 void setUserUuid(java.lang.String userUuid)
           
 void setUuid(java.lang.String uuid)
           
 com.liferay.portal.model.CacheModel<com.liferay.portlet.calendar.model.CalEvent> toCacheModel()
           
 com.liferay.portlet.calendar.model.CalEvent toEscapedModel()
           
static com.liferay.portlet.calendar.model.CalEvent toModel(com.liferay.portlet.calendar.model.CalEventSoap soapModel)
          Converts the soap model instance into a normal model instance.
static java.util.List<com.liferay.portlet.calendar.model.CalEvent> toModels(com.liferay.portlet.calendar.model.CalEventSoap[] soapModels)
          Converts the soap model instances into normal model instances.
 java.lang.String toString()
           
 java.lang.String toXmlString()
           
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, 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, setNew
 

Field Detail

TABLE_NAME

public static final java.lang.String TABLE_NAME
See Also:
Constant Field Values

TABLE_COLUMNS

public static final java.lang.Object[][] TABLE_COLUMNS

TABLE_SQL_CREATE

public static final java.lang.String TABLE_SQL_CREATE
See Also:
Constant Field Values

TABLE_SQL_DROP

public static final java.lang.String TABLE_SQL_DROP
See Also:
Constant Field Values

ORDER_BY_JPQL

public static final java.lang.String ORDER_BY_JPQL
See Also:
Constant Field Values

ORDER_BY_SQL

public static final java.lang.String ORDER_BY_SQL
See Also:
Constant Field Values

DATA_SOURCE

public static final java.lang.String DATA_SOURCE
See Also:
Constant Field Values

SESSION_FACTORY

public static final java.lang.String SESSION_FACTORY
See Also:
Constant Field Values

TX_MANAGER

public static final java.lang.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

COLUMN_BITMASK_ENABLED

public static final boolean COLUMN_BITMASK_ENABLED

COMPANYID_COLUMN_BITMASK

public static long COMPANYID_COLUMN_BITMASK

GROUPID_COLUMN_BITMASK

public static long GROUPID_COLUMN_BITMASK

REMINDBY_COLUMN_BITMASK

public static long REMINDBY_COLUMN_BITMASK

REPEATING_COLUMN_BITMASK

public static long REPEATING_COLUMN_BITMASK

TYPE_COLUMN_BITMASK

public static long TYPE_COLUMN_BITMASK

UUID_COLUMN_BITMASK

public static long UUID_COLUMN_BITMASK

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

CalEventModelImpl

public CalEventModelImpl()
Method Detail

toModel

public static com.liferay.portlet.calendar.model.CalEvent toModel(com.liferay.portlet.calendar.model.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 java.util.List<com.liferay.portlet.calendar.model.CalEvent> toModels(com.liferay.portlet.calendar.model.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()
Specified by:
getPrimaryKey in interface com.liferay.portlet.calendar.model.CalEventModel

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Specified by:
setPrimaryKey in interface com.liferay.portlet.calendar.model.CalEventModel

getPrimaryKeyObj

public java.io.Serializable getPrimaryKeyObj()
Specified by:
getPrimaryKeyObj in interface com.liferay.portal.model.BaseModel<com.liferay.portlet.calendar.model.CalEvent>
Specified by:
getPrimaryKeyObj in interface com.liferay.portal.model.ClassedModel
Specified by:
getPrimaryKeyObj in interface com.liferay.portlet.calendar.model.CalEventModel

setPrimaryKeyObj

public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
Specified by:
setPrimaryKeyObj in interface com.liferay.portal.model.BaseModel<com.liferay.portlet.calendar.model.CalEvent>
Specified by:
setPrimaryKeyObj in interface com.liferay.portal.model.ClassedModel
Specified by:
setPrimaryKeyObj in interface com.liferay.portlet.calendar.model.CalEventModel

getModelClass

public java.lang.Class<?> getModelClass()
Specified by:
getModelClass in interface com.liferay.portal.model.ClassedModel

getModelClassName

public java.lang.String getModelClassName()
Specified by:
getModelClassName in interface com.liferay.portal.model.ClassedModel

getUuid

@JSON
public java.lang.String getUuid()
Specified by:
getUuid in interface com.liferay.portlet.calendar.model.CalEventModel

setUuid

public void setUuid(java.lang.String uuid)
Specified by:
setUuid in interface com.liferay.portlet.calendar.model.CalEventModel

getOriginalUuid

public java.lang.String getOriginalUuid()

getEventId

@JSON
public long getEventId()
Specified by:
getEventId in interface com.liferay.portlet.calendar.model.CalEventModel

setEventId

public void setEventId(long eventId)
Specified by:
setEventId in interface com.liferay.portlet.calendar.model.CalEventModel

getGroupId

@JSON
public long getGroupId()
Specified by:
getGroupId in interface com.liferay.portal.model.GroupedModel
Specified by:
getGroupId in interface com.liferay.portlet.calendar.model.CalEventModel

setGroupId

public void setGroupId(long groupId)
Specified by:
setGroupId in interface com.liferay.portal.model.GroupedModel
Specified by:
setGroupId in interface com.liferay.portlet.calendar.model.CalEventModel

getOriginalGroupId

public long getOriginalGroupId()

getCompanyId

@JSON
public long getCompanyId()
Specified by:
getCompanyId in interface com.liferay.portal.model.AuditedModel
Specified by:
getCompanyId in interface com.liferay.portlet.calendar.model.CalEventModel

setCompanyId

public void setCompanyId(long companyId)
Specified by:
setCompanyId in interface com.liferay.portal.model.AuditedModel
Specified by:
setCompanyId in interface com.liferay.portlet.calendar.model.CalEventModel

getOriginalCompanyId

public long getOriginalCompanyId()

getUserId

@JSON
public long getUserId()
Specified by:
getUserId in interface com.liferay.portal.model.AuditedModel
Specified by:
getUserId in interface com.liferay.portlet.calendar.model.CalEventModel

setUserId

public void setUserId(long userId)
Specified by:
setUserId in interface com.liferay.portal.model.AuditedModel
Specified by:
setUserId in interface com.liferay.portlet.calendar.model.CalEventModel

getUserUuid

public java.lang.String getUserUuid()
                             throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getUserUuid in interface com.liferay.portal.model.AuditedModel
Specified by:
getUserUuid in interface com.liferay.portlet.calendar.model.CalEventModel
Throws:
com.liferay.portal.kernel.exception.SystemException

setUserUuid

public void setUserUuid(java.lang.String userUuid)
Specified by:
setUserUuid in interface com.liferay.portal.model.AuditedModel
Specified by:
setUserUuid in interface com.liferay.portlet.calendar.model.CalEventModel

getUserName

@JSON
public java.lang.String getUserName()
Specified by:
getUserName in interface com.liferay.portal.model.AuditedModel
Specified by:
getUserName in interface com.liferay.portlet.calendar.model.CalEventModel

setUserName

public void setUserName(java.lang.String userName)
Specified by:
setUserName in interface com.liferay.portal.model.AuditedModel
Specified by:
setUserName in interface com.liferay.portlet.calendar.model.CalEventModel

getCreateDate

@JSON
public java.util.Date getCreateDate()
Specified by:
getCreateDate in interface com.liferay.portal.model.AuditedModel
Specified by:
getCreateDate in interface com.liferay.portlet.calendar.model.CalEventModel

setCreateDate

public void setCreateDate(java.util.Date createDate)
Specified by:
setCreateDate in interface com.liferay.portal.model.AuditedModel
Specified by:
setCreateDate in interface com.liferay.portlet.calendar.model.CalEventModel

getModifiedDate

@JSON
public java.util.Date getModifiedDate()
Specified by:
getModifiedDate in interface com.liferay.portal.model.AuditedModel
Specified by:
getModifiedDate in interface com.liferay.portlet.calendar.model.CalEventModel

setModifiedDate

public void setModifiedDate(java.util.Date modifiedDate)
Specified by:
setModifiedDate in interface com.liferay.portal.model.AuditedModel
Specified by:
setModifiedDate in interface com.liferay.portlet.calendar.model.CalEventModel

getTitle

@JSON
public java.lang.String getTitle()
Specified by:
getTitle in interface com.liferay.portlet.calendar.model.CalEventModel

setTitle

public void setTitle(java.lang.String title)
Specified by:
setTitle in interface com.liferay.portlet.calendar.model.CalEventModel

getDescription

@JSON
public java.lang.String getDescription()
Specified by:
getDescription in interface com.liferay.portlet.calendar.model.CalEventModel

setDescription

public void setDescription(java.lang.String description)
Specified by:
setDescription in interface com.liferay.portlet.calendar.model.CalEventModel

getLocation

@JSON
public java.lang.String getLocation()
Specified by:
getLocation in interface com.liferay.portlet.calendar.model.CalEventModel

setLocation

public void setLocation(java.lang.String location)
Specified by:
setLocation in interface com.liferay.portlet.calendar.model.CalEventModel

getStartDate

@JSON
public java.util.Date getStartDate()
Specified by:
getStartDate in interface com.liferay.portlet.calendar.model.CalEventModel

setStartDate

public void setStartDate(java.util.Date startDate)
Specified by:
setStartDate in interface com.liferay.portlet.calendar.model.CalEventModel

getEndDate

@JSON
public java.util.Date getEndDate()
Specified by:
getEndDate in interface com.liferay.portlet.calendar.model.CalEventModel

setEndDate

public void setEndDate(java.util.Date endDate)
Specified by:
setEndDate in interface com.liferay.portlet.calendar.model.CalEventModel

getDurationHour

@JSON
public int getDurationHour()
Specified by:
getDurationHour in interface com.liferay.portlet.calendar.model.CalEventModel

setDurationHour

public void setDurationHour(int durationHour)
Specified by:
setDurationHour in interface com.liferay.portlet.calendar.model.CalEventModel

getDurationMinute

@JSON
public int getDurationMinute()
Specified by:
getDurationMinute in interface com.liferay.portlet.calendar.model.CalEventModel

setDurationMinute

public void setDurationMinute(int durationMinute)
Specified by:
setDurationMinute in interface com.liferay.portlet.calendar.model.CalEventModel

getAllDay

@JSON
public boolean getAllDay()
Specified by:
getAllDay in interface com.liferay.portlet.calendar.model.CalEventModel

isAllDay

public boolean isAllDay()
Specified by:
isAllDay in interface com.liferay.portlet.calendar.model.CalEventModel

setAllDay

public void setAllDay(boolean allDay)
Specified by:
setAllDay in interface com.liferay.portlet.calendar.model.CalEventModel

getTimeZoneSensitive

@JSON
public boolean getTimeZoneSensitive()
Specified by:
getTimeZoneSensitive in interface com.liferay.portlet.calendar.model.CalEventModel

isTimeZoneSensitive

public boolean isTimeZoneSensitive()
Specified by:
isTimeZoneSensitive in interface com.liferay.portlet.calendar.model.CalEventModel

setTimeZoneSensitive

public void setTimeZoneSensitive(boolean timeZoneSensitive)
Specified by:
setTimeZoneSensitive in interface com.liferay.portlet.calendar.model.CalEventModel

getType

@JSON
public java.lang.String getType()
Specified by:
getType in interface com.liferay.portlet.calendar.model.CalEventModel

setType

public void setType(java.lang.String type)
Specified by:
setType in interface com.liferay.portlet.calendar.model.CalEventModel

getOriginalType

public java.lang.String getOriginalType()

getRepeating

@JSON
public boolean getRepeating()
Specified by:
getRepeating in interface com.liferay.portlet.calendar.model.CalEventModel

isRepeating

public boolean isRepeating()
Specified by:
isRepeating in interface com.liferay.portlet.calendar.model.CalEventModel

setRepeating

public void setRepeating(boolean repeating)
Specified by:
setRepeating in interface com.liferay.portlet.calendar.model.CalEventModel

getOriginalRepeating

public boolean getOriginalRepeating()

getRecurrence

@JSON
public java.lang.String getRecurrence()
Specified by:
getRecurrence in interface com.liferay.portlet.calendar.model.CalEventModel

setRecurrence

public void setRecurrence(java.lang.String recurrence)
Specified by:
setRecurrence in interface com.liferay.portlet.calendar.model.CalEventModel

getRemindBy

@JSON
public int getRemindBy()
Specified by:
getRemindBy in interface com.liferay.portlet.calendar.model.CalEventModel

setRemindBy

public void setRemindBy(int remindBy)
Specified by:
setRemindBy in interface com.liferay.portlet.calendar.model.CalEventModel

getOriginalRemindBy

public int getOriginalRemindBy()

getFirstReminder

@JSON
public int getFirstReminder()
Specified by:
getFirstReminder in interface com.liferay.portlet.calendar.model.CalEventModel

setFirstReminder

public void setFirstReminder(int firstReminder)
Specified by:
setFirstReminder in interface com.liferay.portlet.calendar.model.CalEventModel

getSecondReminder

@JSON
public int getSecondReminder()
Specified by:
getSecondReminder in interface com.liferay.portlet.calendar.model.CalEventModel

setSecondReminder

public void setSecondReminder(int secondReminder)
Specified by:
setSecondReminder in interface com.liferay.portlet.calendar.model.CalEventModel

getColumnBitmask

public long getColumnBitmask()

toEscapedModel

public com.liferay.portlet.calendar.model.CalEvent toEscapedModel()
Specified by:
toEscapedModel in interface com.liferay.portal.model.BaseModel<com.liferay.portlet.calendar.model.CalEvent>
Specified by:
toEscapedModel in interface com.liferay.portlet.calendar.model.CalEventModel
Overrides:
toEscapedModel in class com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portlet.calendar.model.CalEvent>

getExpandoBridge

public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge()
Specified by:
getExpandoBridge in interface com.liferay.portal.model.BaseModel<com.liferay.portlet.calendar.model.CalEvent>
Specified by:
getExpandoBridge in interface com.liferay.portal.model.ClassedModel
Specified by:
getExpandoBridge in interface com.liferay.portlet.calendar.model.CalEventModel
Overrides:
getExpandoBridge in class com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portlet.calendar.model.CalEvent>

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(com.liferay.portal.service.ServiceContext serviceContext)
Specified by:
setExpandoBridgeAttributes in interface com.liferay.portal.model.BaseModel<com.liferay.portlet.calendar.model.CalEvent>
Specified by:
setExpandoBridgeAttributes in interface com.liferay.portlet.calendar.model.CalEventModel
Overrides:
setExpandoBridgeAttributes in class com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portlet.calendar.model.CalEvent>

clone

public java.lang.Object clone()
Specified by:
clone in interface com.liferay.portal.model.BaseModel<com.liferay.portlet.calendar.model.CalEvent>
Specified by:
clone in interface com.liferay.portlet.calendar.model.CalEventModel
Specified by:
clone in class com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portlet.calendar.model.CalEvent>

compareTo

public int compareTo(com.liferay.portlet.calendar.model.CalEvent calEvent)
Specified by:
compareTo in interface com.liferay.portlet.calendar.model.CalEventModel
Specified by:
compareTo in interface java.lang.Comparable<com.liferay.portlet.calendar.model.CalEvent>

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface com.liferay.portlet.calendar.model.CalEventModel
Overrides:
hashCode in class java.lang.Object

resetOriginalValues

public void resetOriginalValues()
Specified by:
resetOriginalValues in interface com.liferay.portal.model.BaseModel<com.liferay.portlet.calendar.model.CalEvent>
Overrides:
resetOriginalValues in class com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portlet.calendar.model.CalEvent>

toCacheModel

public com.liferay.portal.model.CacheModel<com.liferay.portlet.calendar.model.CalEvent> toCacheModel()
Specified by:
toCacheModel in interface com.liferay.portal.model.BaseModel<com.liferay.portlet.calendar.model.CalEvent>
Specified by:
toCacheModel in interface com.liferay.portlet.calendar.model.CalEventModel
Overrides:
toCacheModel in class com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portlet.calendar.model.CalEvent>

toString

public java.lang.String toString()
Specified by:
toString in interface com.liferay.portlet.calendar.model.CalEventModel
Overrides:
toString in class java.lang.Object

toXmlString

public java.lang.String toXmlString()
Specified by:
toXmlString in interface com.liferay.portal.model.BaseModel<com.liferay.portlet.calendar.model.CalEvent>
Specified by:
toXmlString in interface com.liferay.portlet.calendar.model.CalEventModel