|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.model.impl.BaseModelImpl<PollsQuestion> com.liferay.portlet.polls.model.impl.PollsQuestionModelImpl
public class PollsQuestionModelImpl
The base model implementation for the PollsQuestion service. Represents a row in the "PollsQuestion" database table, with each column mapped to a property of this class.
This implementation and its corresponding interface PollsQuestionModel
exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in PollsQuestionImpl
.
Never modify or reference this class directly. All methods that expect a polls question model instance should use the PollsQuestion
interface instead.
PollsQuestionImpl
,
PollsQuestion
,
PollsQuestionModel
,
Serialized FormField 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 | |
---|---|
PollsQuestionModelImpl()
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(PollsQuestion pollsQuestion)
|
boolean |
equals(Object obj)
|
long |
getCompanyId()
Gets the company id of this polls question. |
Date |
getCreateDate()
Gets the create date of this polls question. |
String |
getDescription()
Gets the description of this polls question. |
String |
getDescription(Locale locale)
Gets the localized description of this polls question. |
String |
getDescription(Locale locale,
boolean useDefault)
Gets the localized description of this polls question, optionally using the default language if no localization exists for the requested language. |
String |
getDescription(String languageId)
Gets the localized description of this polls question. |
String |
getDescription(String languageId,
boolean useDefault)
Gets the localized description of this polls question, optionally using the default language if no localization exists for the requested language. |
Map<Locale,String> |
getDescriptionMap()
Gets a map of the locales and localized description of this polls question. |
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
Date |
getExpirationDate()
Gets the expiration date of this polls question. |
long |
getGroupId()
Gets the group id of this polls question. |
Date |
getLastVoteDate()
Gets the last vote date of this polls question. |
Date |
getModifiedDate()
Gets the modified date of this polls question. |
long |
getOriginalGroupId()
|
String |
getOriginalUuid()
|
long |
getPrimaryKey()
Gets the primary key of this polls question. |
Serializable |
getPrimaryKeyObj()
Gets the primary key of this model instance. |
long |
getQuestionId()
Gets the question id of this polls question. |
String |
getTitle()
Gets the title of this polls question. |
String |
getTitle(Locale locale)
Gets the localized title of this polls question. |
String |
getTitle(Locale locale,
boolean useDefault)
Gets the localized title of this polls question, optionally using the default language if no localization exists for the requested language. |
String |
getTitle(String languageId)
Gets the localized title of this polls question. |
String |
getTitle(String languageId,
boolean useDefault)
Gets the localized title of this polls question, optionally using the default language if no localization exists for the requested language. |
Map<Locale,String> |
getTitleMap()
Gets a map of the locales and localized title of this polls question. |
long |
getUserId()
Gets the user id of this polls question. |
String |
getUserName()
Gets the user name of this polls question. |
String |
getUserUuid()
Gets the user uuid of this polls question. |
String |
getUuid()
Gets the uuid of this polls question. |
int |
hashCode()
|
void |
setCompanyId(long companyId)
Sets the company id of this polls question. |
void |
setCreateDate(Date createDate)
Sets the create date of this polls question. |
void |
setDescription(Locale locale,
String description)
Sets the localized description of this polls question. |
void |
setDescription(String description)
Sets the description of this polls question. |
void |
setDescriptionMap(Map<Locale,String> descriptionMap)
Sets the localized descriptions of this polls question from the map of locales and localized descriptions. |
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 polls question. |
void |
setGroupId(long groupId)
Sets the group id of this polls question. |
void |
setLastVoteDate(Date lastVoteDate)
Sets the last vote date of this polls question. |
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this polls question. |
void |
setPrimaryKey(long pk)
Sets the primary key of this polls question |
void |
setQuestionId(long questionId)
Sets the question id of this polls question. |
void |
setTitle(Locale locale,
String title)
Sets the localized title of this polls question. |
void |
setTitle(String title)
Sets the title of this polls question. |
void |
setTitleMap(Map<Locale,String> titleMap)
Sets the localized titles of this polls question from the map of locales and localized titles. |
void |
setUserId(long userId)
Sets the user id of this polls question. |
void |
setUserName(String userName)
Sets the user name of this polls question. |
void |
setUserUuid(String userUuid)
Sets the user uuid of this polls question. |
void |
setUuid(String uuid)
Sets the uuid of this polls question. |
PollsQuestion |
toEscapedModel()
Gets a copy of this polls question as an escaped model instance by wrapping it with an AutoEscapeBeanHandler . |
static PollsQuestion |
toModel(PollsQuestionSoap soapModel)
Converts the soap model instance into a normal model instance. |
static List<PollsQuestion> |
toModels(PollsQuestionSoap[] 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.polls.model.PollsQuestionModel |
---|
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, setNew |
Field Detail |
---|
public static final String TABLE_NAME
public static final Object[][] TABLE_COLUMNS
public static final String TABLE_SQL_CREATE
public static final String TABLE_SQL_DROP
public static final String ORDER_BY_JPQL
public static final String ORDER_BY_SQL
public static final String DATA_SOURCE
public static final String SESSION_FACTORY
public static final String TX_MANAGER
public static final boolean ENTITY_CACHE_ENABLED
public static final boolean FINDER_CACHE_ENABLED
public static final long LOCK_EXPIRATION_TIME
Constructor Detail |
---|
public PollsQuestionModelImpl()
Method Detail |
---|
public static PollsQuestion toModel(PollsQuestionSoap soapModel)
soapModel
- the soap model instance to convert
public static List<PollsQuestion> toModels(PollsQuestionSoap[] soapModels)
soapModels
- the soap model instances to convert
public long getPrimaryKey()
PollsQuestionModel
getPrimaryKey
in interface PollsQuestionModel
public void setPrimaryKey(long pk)
PollsQuestionModel
setPrimaryKey
in interface PollsQuestionModel
pk
- the primary key of this polls questionpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<PollsQuestion>
getPrimaryKeyObj
in interface PollsQuestionModel
public String getUuid()
PollsQuestionModel
getUuid
in interface PollsQuestionModel
public void setUuid(String uuid)
PollsQuestionModel
setUuid
in interface PollsQuestionModel
uuid
- the uuid of this polls questionpublic String getOriginalUuid()
public long getQuestionId()
PollsQuestionModel
getQuestionId
in interface PollsQuestionModel
public void setQuestionId(long questionId)
PollsQuestionModel
setQuestionId
in interface PollsQuestionModel
questionId
- the question id of this polls questionpublic long getGroupId()
PollsQuestionModel
getGroupId
in interface PollsQuestionModel
public void setGroupId(long groupId)
PollsQuestionModel
setGroupId
in interface PollsQuestionModel
groupId
- the group id of this polls questionpublic long getOriginalGroupId()
public long getCompanyId()
PollsQuestionModel
getCompanyId
in interface PollsQuestionModel
public void setCompanyId(long companyId)
PollsQuestionModel
setCompanyId
in interface PollsQuestionModel
companyId
- the company id of this polls questionpublic long getUserId()
PollsQuestionModel
getUserId
in interface PollsQuestionModel
public void setUserId(long userId)
PollsQuestionModel
setUserId
in interface PollsQuestionModel
userId
- the user id of this polls questionpublic String getUserUuid() throws SystemException
PollsQuestionModel
getUserUuid
in interface PollsQuestionModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
PollsQuestionModel
setUserUuid
in interface PollsQuestionModel
userUuid
- the user uuid of this polls questionpublic String getUserName()
PollsQuestionModel
getUserName
in interface PollsQuestionModel
public void setUserName(String userName)
PollsQuestionModel
setUserName
in interface PollsQuestionModel
userName
- the user name of this polls questionpublic Date getCreateDate()
PollsQuestionModel
getCreateDate
in interface PollsQuestionModel
public void setCreateDate(Date createDate)
PollsQuestionModel
setCreateDate
in interface PollsQuestionModel
createDate
- the create date of this polls questionpublic Date getModifiedDate()
PollsQuestionModel
getModifiedDate
in interface PollsQuestionModel
public void setModifiedDate(Date modifiedDate)
PollsQuestionModel
setModifiedDate
in interface PollsQuestionModel
modifiedDate
- the modified date of this polls questionpublic String getTitle()
PollsQuestionModel
getTitle
in interface PollsQuestionModel
public String getTitle(Locale locale)
PollsQuestionModel
getTitle
in interface PollsQuestionModel
locale
- the locale to get the localized title for
public String getTitle(Locale locale, boolean useDefault)
PollsQuestionModel
getTitle
in interface PollsQuestionModel
locale
- the local to get the localized title foruseDefault
- whether to use the default language if no localization exists for the requested language
useDefault
is false
and no localization exists for the requested language, an empty string will be returned.public String getTitle(String languageId)
PollsQuestionModel
getTitle
in interface PollsQuestionModel
languageId
- the id of the language to get the localized title for
public String getTitle(String languageId, boolean useDefault)
PollsQuestionModel
getTitle
in interface PollsQuestionModel
languageId
- the id of the language to get the localized title foruseDefault
- whether to use the default language if no localization exists for the requested language
public Map<Locale,String> getTitleMap()
PollsQuestionModel
getTitleMap
in interface PollsQuestionModel
public void setTitle(String title)
PollsQuestionModel
setTitle
in interface PollsQuestionModel
title
- the title of this polls questionpublic void setTitle(Locale locale, String title)
PollsQuestionModel
setTitle
in interface PollsQuestionModel
locale
- the locale to set the localized title fortitle
- the localized title of this polls questionpublic void setTitleMap(Map<Locale,String> titleMap)
PollsQuestionModel
setTitleMap
in interface PollsQuestionModel
titleMap
- the locales and localized titles of this polls questionpublic String getDescription()
PollsQuestionModel
getDescription
in interface PollsQuestionModel
public String getDescription(Locale locale)
PollsQuestionModel
getDescription
in interface PollsQuestionModel
locale
- the locale to get the localized description for
public String getDescription(Locale locale, boolean useDefault)
PollsQuestionModel
getDescription
in interface PollsQuestionModel
locale
- the local to get the localized description foruseDefault
- whether to use the default language if no localization exists for the requested language
useDefault
is false
and no localization exists for the requested language, an empty string will be returned.public String getDescription(String languageId)
PollsQuestionModel
getDescription
in interface PollsQuestionModel
languageId
- the id of the language to get the localized description for
public String getDescription(String languageId, boolean useDefault)
PollsQuestionModel
getDescription
in interface PollsQuestionModel
languageId
- the id of the language to get the localized description foruseDefault
- whether to use the default language if no localization exists for the requested language
public Map<Locale,String> getDescriptionMap()
PollsQuestionModel
getDescriptionMap
in interface PollsQuestionModel
public void setDescription(String description)
PollsQuestionModel
setDescription
in interface PollsQuestionModel
description
- the description of this polls questionpublic void setDescription(Locale locale, String description)
PollsQuestionModel
setDescription
in interface PollsQuestionModel
locale
- the locale to set the localized description fordescription
- the localized description of this polls questionpublic void setDescriptionMap(Map<Locale,String> descriptionMap)
PollsQuestionModel
setDescriptionMap
in interface PollsQuestionModel
descriptionMap
- the locales and localized descriptions of this polls questionpublic Date getExpirationDate()
PollsQuestionModel
getExpirationDate
in interface PollsQuestionModel
public void setExpirationDate(Date expirationDate)
PollsQuestionModel
setExpirationDate
in interface PollsQuestionModel
expirationDate
- the expiration date of this polls questionpublic Date getLastVoteDate()
PollsQuestionModel
getLastVoteDate
in interface PollsQuestionModel
public void setLastVoteDate(Date lastVoteDate)
PollsQuestionModel
setLastVoteDate
in interface PollsQuestionModel
lastVoteDate
- the last vote date of this polls questionpublic PollsQuestion toEscapedModel()
PollsQuestionModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface PollsQuestionModel
AutoEscapeBeanHandler
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<PollsQuestion>
getExpandoBridge
in interface PollsQuestionModel
getExpandoBridge
in class BaseModelImpl<PollsQuestion>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<PollsQuestion>
setExpandoBridgeAttributes
in interface PollsQuestionModel
setExpandoBridgeAttributes
in class BaseModelImpl<PollsQuestion>
serviceContext
- the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<PollsQuestion>
clone
in interface PollsQuestionModel
clone
in class BaseModelImpl<PollsQuestion>
public int compareTo(PollsQuestion pollsQuestion)
compareTo
in interface PollsQuestionModel
compareTo
in interface Comparable<PollsQuestion>
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in interface PollsQuestionModel
hashCode
in class Object
public String toString()
toString
in interface PollsQuestionModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<PollsQuestion>
toXmlString
in interface PollsQuestionModel
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |