Liferay 6.0.5

com.liferay.portlet.announcements.model.impl
Class AnnouncementsEntryModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<AnnouncementsEntry>
      extended by com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl
All Implemented Interfaces:
BaseModel<AnnouncementsEntry>, AnnouncementsEntryModel, Serializable, Cloneable, Comparable<AnnouncementsEntry>
Direct Known Subclasses:
AnnouncementsEntryImpl

public class AnnouncementsEntryModelImpl
extends BaseModelImpl<AnnouncementsEntry>
implements AnnouncementsEntryModel

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

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

Never modify or reference this class directly. All methods that expect a announcements entry model instance should use the AnnouncementsEntry interface instead.

See Also:
AnnouncementsEntryImpl, AnnouncementsEntry, AnnouncementsEntryModel, 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
AnnouncementsEntryModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(AnnouncementsEntry announcementsEntry)
           
 boolean equals(Object obj)
           
 boolean getAlert()
          Gets the alert of this announcements entry.
 String getClassName()
          Gets the class name of the model instance this announcements entry is polymorphically associated with.
 long getClassNameId()
          Gets the class name id of this announcements entry.
 long getClassPK()
          Gets the class p k of this announcements entry.
 long getCompanyId()
          Gets the company id of this announcements entry.
 String getContent()
          Gets the content of this announcements entry.
 Date getCreateDate()
          Gets the create date of this announcements entry.
 Date getDisplayDate()
          Gets the display date of this announcements entry.
 long getEntryId()
          Gets the entry id of this announcements entry.
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 Date getExpirationDate()
          Gets the expiration date of this announcements entry.
 Date getModifiedDate()
          Gets the modified date of this announcements entry.
 long getPrimaryKey()
          Gets the primary key of this announcements entry.
 Serializable getPrimaryKeyObj()
          Gets the primary key of this model instance.
 int getPriority()
          Gets the priority of this announcements entry.
 String getTitle()
          Gets the title of this announcements entry.
 String getType()
          Gets the type of this announcements entry.
 String getUrl()
          Gets the url of this announcements entry.
 long getUserId()
          Gets the user id of this announcements entry.
 String getUserName()
          Gets the user name of this announcements entry.
 String getUserUuid()
          Gets the user uuid of this announcements entry.
 String getUuid()
          Gets the uuid of this announcements entry.
 int hashCode()
           
 boolean isAlert()
          Determines whether this announcements entry is alert.
 void setAlert(boolean alert)
          Sets whether this {$entity.humanName} is alert.
 void setClassNameId(long classNameId)
          Sets the class name id of this announcements entry.
 void setClassPK(long classPK)
          Sets the class p k of this announcements entry.
 void setCompanyId(long companyId)
          Sets the company id of this announcements entry.
 void setContent(String content)
          Sets the content of this announcements entry.
 void setCreateDate(Date createDate)
          Sets the create date of this announcements entry.
 void setDisplayDate(Date displayDate)
          Sets the display date of this announcements entry.
 void setEntryId(long entryId)
          Sets the entry id of this announcements entry.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setExpirationDate(Date expirationDate)
          Sets the expiration date of this announcements entry.
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this announcements entry.
 void setPrimaryKey(long pk)
          Sets the primary key of this announcements entry
 void setPriority(int priority)
          Sets the priority of this announcements entry.
 void setTitle(String title)
          Sets the title of this announcements entry.
 void setType(String type)
          Sets the type of this announcements entry.
 void setUrl(String url)
          Sets the url of this announcements entry.
 void setUserId(long userId)
          Sets the user id of this announcements entry.
 void setUserName(String userName)
          Sets the user name of this announcements entry.
 void setUserUuid(String userUuid)
          Sets the user uuid of this announcements entry.
 void setUuid(String uuid)
          Sets the uuid of this announcements entry.
 AnnouncementsEntry toEscapedModel()
          Gets a copy of this announcements entry as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
static AnnouncementsEntry toModel(AnnouncementsEntrySoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<AnnouncementsEntry> toModels(AnnouncementsEntrySoap[] 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.announcements.model.AnnouncementsEntryModel
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

AnnouncementsEntryModelImpl

public AnnouncementsEntryModelImpl()
Method Detail

toModel

public static AnnouncementsEntry toModel(AnnouncementsEntrySoap 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<AnnouncementsEntry> toModels(AnnouncementsEntrySoap[] 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: AnnouncementsEntryModel
Gets the primary key of this announcements entry.

Specified by:
getPrimaryKey in interface AnnouncementsEntryModel
Returns:
the primary key of this announcements entry

setPrimaryKey

public void setPrimaryKey(long pk)
Description copied from interface: AnnouncementsEntryModel
Sets the primary key of this announcements entry

Specified by:
setPrimaryKey in interface AnnouncementsEntryModel
Parameters:
pk - the primary key of this announcements entry

getPrimaryKeyObj

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

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

getUuid

public String getUuid()
Description copied from interface: AnnouncementsEntryModel
Gets the uuid of this announcements entry.

Specified by:
getUuid in interface AnnouncementsEntryModel
Returns:
the uuid of this announcements entry

setUuid

public void setUuid(String uuid)
Description copied from interface: AnnouncementsEntryModel
Sets the uuid of this announcements entry.

Specified by:
setUuid in interface AnnouncementsEntryModel
Parameters:
uuid - the uuid of this announcements entry

getEntryId

public long getEntryId()
Description copied from interface: AnnouncementsEntryModel
Gets the entry id of this announcements entry.

Specified by:
getEntryId in interface AnnouncementsEntryModel
Returns:
the entry id of this announcements entry

setEntryId

public void setEntryId(long entryId)
Description copied from interface: AnnouncementsEntryModel
Sets the entry id of this announcements entry.

Specified by:
setEntryId in interface AnnouncementsEntryModel
Parameters:
entryId - the entry id of this announcements entry

getCompanyId

public long getCompanyId()
Description copied from interface: AnnouncementsEntryModel
Gets the company id of this announcements entry.

Specified by:
getCompanyId in interface AnnouncementsEntryModel
Returns:
the company id of this announcements entry

setCompanyId

public void setCompanyId(long companyId)
Description copied from interface: AnnouncementsEntryModel
Sets the company id of this announcements entry.

Specified by:
setCompanyId in interface AnnouncementsEntryModel
Parameters:
companyId - the company id of this announcements entry

getUserId

public long getUserId()
Description copied from interface: AnnouncementsEntryModel
Gets the user id of this announcements entry.

Specified by:
getUserId in interface AnnouncementsEntryModel
Returns:
the user id of this announcements entry

setUserId

public void setUserId(long userId)
Description copied from interface: AnnouncementsEntryModel
Sets the user id of this announcements entry.

Specified by:
setUserId in interface AnnouncementsEntryModel
Parameters:
userId - the user id of this announcements entry

getUserUuid

public String getUserUuid()
                   throws SystemException
Description copied from interface: AnnouncementsEntryModel
Gets the user uuid of this announcements entry.

Specified by:
getUserUuid in interface AnnouncementsEntryModel
Returns:
the user uuid of this announcements entry
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Description copied from interface: AnnouncementsEntryModel
Sets the user uuid of this announcements entry.

Specified by:
setUserUuid in interface AnnouncementsEntryModel
Parameters:
userUuid - the user uuid of this announcements entry

getUserName

public String getUserName()
Description copied from interface: AnnouncementsEntryModel
Gets the user name of this announcements entry.

Specified by:
getUserName in interface AnnouncementsEntryModel
Returns:
the user name of this announcements entry

setUserName

public void setUserName(String userName)
Description copied from interface: AnnouncementsEntryModel
Sets the user name of this announcements entry.

Specified by:
setUserName in interface AnnouncementsEntryModel
Parameters:
userName - the user name of this announcements entry

getCreateDate

public Date getCreateDate()
Description copied from interface: AnnouncementsEntryModel
Gets the create date of this announcements entry.

Specified by:
getCreateDate in interface AnnouncementsEntryModel
Returns:
the create date of this announcements entry

setCreateDate

public void setCreateDate(Date createDate)
Description copied from interface: AnnouncementsEntryModel
Sets the create date of this announcements entry.

Specified by:
setCreateDate in interface AnnouncementsEntryModel
Parameters:
createDate - the create date of this announcements entry

getModifiedDate

public Date getModifiedDate()
Description copied from interface: AnnouncementsEntryModel
Gets the modified date of this announcements entry.

Specified by:
getModifiedDate in interface AnnouncementsEntryModel
Returns:
the modified date of this announcements entry

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Description copied from interface: AnnouncementsEntryModel
Sets the modified date of this announcements entry.

Specified by:
setModifiedDate in interface AnnouncementsEntryModel
Parameters:
modifiedDate - the modified date of this announcements entry

getClassName

public String getClassName()
Description copied from interface: AnnouncementsEntryModel
Gets the class name of the model instance this announcements entry is polymorphically associated with.

Specified by:
getClassName in interface AnnouncementsEntryModel
Returns:
the class name of the model instance this announcements entry is polymorphically associated with

getClassNameId

public long getClassNameId()
Description copied from interface: AnnouncementsEntryModel
Gets the class name id of this announcements entry.

Specified by:
getClassNameId in interface AnnouncementsEntryModel
Returns:
the class name id of this announcements entry

setClassNameId

public void setClassNameId(long classNameId)
Description copied from interface: AnnouncementsEntryModel
Sets the class name id of this announcements entry.

Specified by:
setClassNameId in interface AnnouncementsEntryModel
Parameters:
classNameId - the class name id of this announcements entry

getClassPK

public long getClassPK()
Description copied from interface: AnnouncementsEntryModel
Gets the class p k of this announcements entry.

Specified by:
getClassPK in interface AnnouncementsEntryModel
Returns:
the class p k of this announcements entry

setClassPK

public void setClassPK(long classPK)
Description copied from interface: AnnouncementsEntryModel
Sets the class p k of this announcements entry.

Specified by:
setClassPK in interface AnnouncementsEntryModel
Parameters:
classPK - the class p k of this announcements entry

getTitle

public String getTitle()
Description copied from interface: AnnouncementsEntryModel
Gets the title of this announcements entry.

Specified by:
getTitle in interface AnnouncementsEntryModel
Returns:
the title of this announcements entry

setTitle

public void setTitle(String title)
Description copied from interface: AnnouncementsEntryModel
Sets the title of this announcements entry.

Specified by:
setTitle in interface AnnouncementsEntryModel
Parameters:
title - the title of this announcements entry

getContent

public String getContent()
Description copied from interface: AnnouncementsEntryModel
Gets the content of this announcements entry.

Specified by:
getContent in interface AnnouncementsEntryModel
Returns:
the content of this announcements entry

setContent

public void setContent(String content)
Description copied from interface: AnnouncementsEntryModel
Sets the content of this announcements entry.

Specified by:
setContent in interface AnnouncementsEntryModel
Parameters:
content - the content of this announcements entry

getUrl

public String getUrl()
Description copied from interface: AnnouncementsEntryModel
Gets the url of this announcements entry.

Specified by:
getUrl in interface AnnouncementsEntryModel
Returns:
the url of this announcements entry

setUrl

public void setUrl(String url)
Description copied from interface: AnnouncementsEntryModel
Sets the url of this announcements entry.

Specified by:
setUrl in interface AnnouncementsEntryModel
Parameters:
url - the url of this announcements entry

getType

public String getType()
Description copied from interface: AnnouncementsEntryModel
Gets the type of this announcements entry.

Specified by:
getType in interface AnnouncementsEntryModel
Returns:
the type of this announcements entry

setType

public void setType(String type)
Description copied from interface: AnnouncementsEntryModel
Sets the type of this announcements entry.

Specified by:
setType in interface AnnouncementsEntryModel
Parameters:
type - the type of this announcements entry

getDisplayDate

public Date getDisplayDate()
Description copied from interface: AnnouncementsEntryModel
Gets the display date of this announcements entry.

Specified by:
getDisplayDate in interface AnnouncementsEntryModel
Returns:
the display date of this announcements entry

setDisplayDate

public void setDisplayDate(Date displayDate)
Description copied from interface: AnnouncementsEntryModel
Sets the display date of this announcements entry.

Specified by:
setDisplayDate in interface AnnouncementsEntryModel
Parameters:
displayDate - the display date of this announcements entry

getExpirationDate

public Date getExpirationDate()
Description copied from interface: AnnouncementsEntryModel
Gets the expiration date of this announcements entry.

Specified by:
getExpirationDate in interface AnnouncementsEntryModel
Returns:
the expiration date of this announcements entry

setExpirationDate

public void setExpirationDate(Date expirationDate)
Description copied from interface: AnnouncementsEntryModel
Sets the expiration date of this announcements entry.

Specified by:
setExpirationDate in interface AnnouncementsEntryModel
Parameters:
expirationDate - the expiration date of this announcements entry

getPriority

public int getPriority()
Description copied from interface: AnnouncementsEntryModel
Gets the priority of this announcements entry.

Specified by:
getPriority in interface AnnouncementsEntryModel
Returns:
the priority of this announcements entry

setPriority

public void setPriority(int priority)
Description copied from interface: AnnouncementsEntryModel
Sets the priority of this announcements entry.

Specified by:
setPriority in interface AnnouncementsEntryModel
Parameters:
priority - the priority of this announcements entry

getAlert

public boolean getAlert()
Description copied from interface: AnnouncementsEntryModel
Gets the alert of this announcements entry.

Specified by:
getAlert in interface AnnouncementsEntryModel
Returns:
the alert of this announcements entry

isAlert

public boolean isAlert()
Description copied from interface: AnnouncementsEntryModel
Determines whether this announcements entry is alert.

Specified by:
isAlert in interface AnnouncementsEntryModel
Returns:
whether this announcements entry is alert

setAlert

public void setAlert(boolean alert)
Description copied from interface: AnnouncementsEntryModel
Sets whether this {$entity.humanName} is alert.

Specified by:
setAlert in interface AnnouncementsEntryModel
Parameters:
alert - the alert of this announcements entry

toEscapedModel

public AnnouncementsEntry toEscapedModel()
Description copied from interface: AnnouncementsEntryModel
Gets a copy of this announcements entry as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface AnnouncementsEntryModel
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<AnnouncementsEntry>
Specified by:
getExpandoBridge in interface AnnouncementsEntryModel
Overrides:
getExpandoBridge in class BaseModelImpl<AnnouncementsEntry>
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<AnnouncementsEntry>
Specified by:
setExpandoBridgeAttributes in interface AnnouncementsEntryModel
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<AnnouncementsEntry>
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<AnnouncementsEntry>
Specified by:
clone in interface AnnouncementsEntryModel
Specified by:
clone in class BaseModelImpl<AnnouncementsEntry>
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(AnnouncementsEntry announcementsEntry)
Specified by:
compareTo in interface AnnouncementsEntryModel
Specified by:
compareTo in interface Comparable<AnnouncementsEntry>

equals

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

hashCode

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

toString

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

Liferay 6.0.5