|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.polls.model.PollsQuestionWrapper
public class PollsQuestionWrapper
This class is a wrapper for PollsQuestion.
PollsQuestion,
Serialized Form| Constructor Summary | |
|---|---|
PollsQuestionWrapper(PollsQuestion pollsQuestion)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(PollsQuestion pollsQuestion)
|
List<PollsChoice> |
getChoices()
|
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 |
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 |
getVotesCount()
|
PollsQuestion |
getWrappedPollsQuestion()
|
int |
hashCode()
|
boolean |
isCachedModel()
Determines if this model instance was retrieved from the entity cache. |
boolean |
isEscapedModel()
Determines if this model instance is escaped. |
boolean |
isExpired()
|
boolean |
isNew()
Determines if this model instance does not yet exist in the database. |
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 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 |
setEscapedModel(boolean escapedModel)
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe. |
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 |
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 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. |
String |
toString()
|
String |
toXmlString()
Gets the XML representation of this model instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PollsQuestionWrapper(PollsQuestion pollsQuestion)
| Method Detail |
|---|
public long getPrimaryKey()
PollsQuestionModel
getPrimaryKey in interface PollsQuestionModelpublic void setPrimaryKey(long pk)
PollsQuestionModel
setPrimaryKey in interface PollsQuestionModelpk - the primary key of this polls questionpublic String getUuid()
PollsQuestionModel
getUuid in interface PollsQuestionModelpublic void setUuid(String uuid)
PollsQuestionModel
setUuid in interface PollsQuestionModeluuid - the uuid of this polls questionpublic long getQuestionId()
PollsQuestionModel
getQuestionId in interface PollsQuestionModelpublic void setQuestionId(long questionId)
PollsQuestionModel
setQuestionId in interface PollsQuestionModelquestionId - the question id of this polls questionpublic long getGroupId()
PollsQuestionModel
getGroupId in interface PollsQuestionModelpublic void setGroupId(long groupId)
PollsQuestionModel
setGroupId in interface PollsQuestionModelgroupId - the group id of this polls questionpublic long getCompanyId()
PollsQuestionModel
getCompanyId in interface PollsQuestionModelpublic void setCompanyId(long companyId)
PollsQuestionModel
setCompanyId in interface PollsQuestionModelcompanyId - the company id of this polls questionpublic long getUserId()
PollsQuestionModel
getUserId in interface PollsQuestionModelpublic void setUserId(long userId)
PollsQuestionModel
setUserId in interface PollsQuestionModeluserId - the user id of this polls question
public String getUserUuid()
throws SystemException
PollsQuestionModel
getUserUuid in interface PollsQuestionModelSystemException - if a system exception occurredpublic void setUserUuid(String userUuid)
PollsQuestionModel
setUserUuid in interface PollsQuestionModeluserUuid - the user uuid of this polls questionpublic String getUserName()
PollsQuestionModel
getUserName in interface PollsQuestionModelpublic void setUserName(String userName)
PollsQuestionModel
setUserName in interface PollsQuestionModeluserName - the user name of this polls questionpublic Date getCreateDate()
PollsQuestionModel
getCreateDate in interface PollsQuestionModelpublic void setCreateDate(Date createDate)
PollsQuestionModel
setCreateDate in interface PollsQuestionModelcreateDate - the create date of this polls questionpublic Date getModifiedDate()
PollsQuestionModel
getModifiedDate in interface PollsQuestionModelpublic void setModifiedDate(Date modifiedDate)
PollsQuestionModel
setModifiedDate in interface PollsQuestionModelmodifiedDate - the modified date of this polls questionpublic String getTitle()
PollsQuestionModel
getTitle in interface PollsQuestionModelpublic String getTitle(Locale locale)
PollsQuestionModel
getTitle in interface PollsQuestionModellocale - the locale to get the localized title for
public String getTitle(Locale locale,
boolean useDefault)
PollsQuestionModel
getTitle in interface PollsQuestionModellocale - 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 PollsQuestionModellanguageId - the id of the language to get the localized title for
public String getTitle(String languageId,
boolean useDefault)
PollsQuestionModel
getTitle in interface PollsQuestionModellanguageId - 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 PollsQuestionModelpublic void setTitle(String title)
PollsQuestionModel
setTitle in interface PollsQuestionModeltitle - the title of this polls question
public void setTitle(Locale locale,
String title)
PollsQuestionModel
setTitle in interface PollsQuestionModellocale - 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 PollsQuestionModeltitleMap - the locales and localized titles of this polls questionpublic String getDescription()
PollsQuestionModel
getDescription in interface PollsQuestionModelpublic String getDescription(Locale locale)
PollsQuestionModel
getDescription in interface PollsQuestionModellocale - the locale to get the localized description for
public String getDescription(Locale locale,
boolean useDefault)
PollsQuestionModel
getDescription in interface PollsQuestionModellocale - 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 PollsQuestionModellanguageId - the id of the language to get the localized description for
public String getDescription(String languageId,
boolean useDefault)
PollsQuestionModel
getDescription in interface PollsQuestionModellanguageId - 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 PollsQuestionModelpublic void setDescription(String description)
PollsQuestionModel
setDescription in interface PollsQuestionModeldescription - the description of this polls question
public void setDescription(Locale locale,
String description)
PollsQuestionModel
setDescription in interface PollsQuestionModellocale - 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 PollsQuestionModeldescriptionMap - the locales and localized descriptions of this polls questionpublic Date getExpirationDate()
PollsQuestionModel
getExpirationDate in interface PollsQuestionModelpublic void setExpirationDate(Date expirationDate)
PollsQuestionModel
setExpirationDate in interface PollsQuestionModelexpirationDate - the expiration date of this polls questionpublic Date getLastVoteDate()
PollsQuestionModel
getLastVoteDate in interface PollsQuestionModelpublic void setLastVoteDate(Date lastVoteDate)
PollsQuestionModel
setLastVoteDate in interface PollsQuestionModellastVoteDate - the last vote date of this polls questionpublic PollsQuestion toEscapedModel()
PollsQuestionModelAutoEscapeBeanHandler.
toEscapedModel in interface PollsQuestionModelAutoEscapeBeanHandlerpublic boolean isNew()
BaseModel
isNew in interface BaseModel<PollsQuestion>isNew in interface PollsQuestionModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModel
setNew in interface BaseModel<PollsQuestion>setNew in interface PollsQuestionModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel in interface BaseModel<PollsQuestion>isCachedModel in interface PollsQuestionModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<PollsQuestion>setCachedModel in interface PollsQuestionModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModel
isEscapedModel in interface BaseModel<PollsQuestion>isEscapedModel in interface PollsQuestionModeltrue if this model instance is escaped;
false otherwiseBaseModel.setEscapedModel(boolean)public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be made escaped by wrapping it with an HTML auto
escape handler using its toEscapedModel method. For example,
UserModel.toEscapedModel().
setEscapedModel in interface BaseModel<PollsQuestion>setEscapedModel in interface PollsQuestionModelescapedModel - whether this model instance is escapedAutoEscapeBeanHandlerpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<PollsQuestion>getPrimaryKeyObj in interface PollsQuestionModelpublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<PollsQuestion>getExpandoBridge in interface PollsQuestionModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<PollsQuestion>setExpandoBridgeAttributes in interface PollsQuestionModelserviceContext - the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<PollsQuestion>clone in interface PollsQuestionModelclone in class Objectpublic int compareTo(PollsQuestion pollsQuestion)
compareTo in interface PollsQuestionModelcompareTo in interface Comparable<PollsQuestion>public int hashCode()
hashCode in interface PollsQuestionModelhashCode in class Objectpublic String toString()
toString in interface PollsQuestionModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<PollsQuestion>toXmlString in interface PollsQuestionModel
public List<PollsChoice> getChoices()
throws SystemException
getChoices in interface PollsQuestionSystemException
public int getVotesCount()
throws SystemException
getVotesCount in interface PollsQuestionSystemExceptionpublic boolean isExpired()
isExpired in interface PollsQuestionpublic PollsQuestion getWrappedPollsQuestion()
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||