|
Liferay 6.2-ce-ga3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.polls.model.PollsQuestionWrapper
@ProviderType 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)
|
boolean |
equals(Object obj)
|
String[] |
getAvailableLanguageIds()
|
List<PollsChoice> |
getChoices()
|
long |
getCompanyId()
Returns the company ID of this polls question. |
Date |
getCreateDate()
Returns the create date of this polls question. |
String |
getDefaultLanguageId()
|
String |
getDescription()
Returns the description of this polls question. |
String |
getDescription(Locale locale)
Returns the localized description of this polls question in the language. |
String |
getDescription(Locale locale,
boolean useDefault)
Returns the localized description of this polls question in the language, optionally using the default language if no localization exists for the requested language. |
String |
getDescription(String languageId)
Returns the localized description of this polls question in the language. |
String |
getDescription(String languageId,
boolean useDefault)
Returns the localized description of this polls question in the language, optionally using the default language if no localization exists for the requested language. |
String |
getDescriptionCurrentLanguageId()
|
String |
getDescriptionCurrentValue()
|
Map<Locale,String> |
getDescriptionMap()
Returns a map of the locales and localized descriptions of this polls question. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
Date |
getExpirationDate()
Returns the expiration date of this polls question. |
long |
getGroupId()
Returns the group ID of this polls question. |
Date |
getLastVoteDate()
Returns the last vote date of this polls question. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
Date |
getModifiedDate()
Returns the modified date of this polls question. |
long |
getPrimaryKey()
Returns the primary key of this polls question. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
long |
getQuestionId()
Returns the question ID of this polls question. |
StagedModelType |
getStagedModelType()
|
String |
getTitle()
Returns the title of this polls question. |
String |
getTitle(Locale locale)
Returns the localized title of this polls question in the language. |
String |
getTitle(Locale locale,
boolean useDefault)
Returns the localized title of this polls question in the language, optionally using the default language if no localization exists for the requested language. |
String |
getTitle(String languageId)
Returns the localized title of this polls question in the language. |
String |
getTitle(String languageId,
boolean useDefault)
Returns the localized title of this polls question in the language, optionally using the default language if no localization exists for the requested language. |
String |
getTitleCurrentLanguageId()
|
String |
getTitleCurrentValue()
|
Map<Locale,String> |
getTitleMap()
Returns a map of the locales and localized titles of this polls question. |
long |
getUserId()
Returns the user ID of this polls question. |
String |
getUserName()
Returns the user name of this polls question. |
String |
getUserUuid()
Returns the user uuid of this polls question. |
String |
getUuid()
Returns the uuid of this polls question. |
List<PollsVote> |
getVotes()
|
List<PollsVote> |
getVotes(int start,
int end)
|
int |
getVotesCount()
|
PollsQuestion |
getWrappedModel()
|
PollsQuestion |
getWrappedPollsQuestion()
Deprecated. As of 6.1.0, replaced by getWrappedModel() |
int |
hashCode()
|
boolean |
isCachedModel()
Returns true if this model instance was retrieved from the
entity cache. |
boolean |
isEscapedModel()
Returns true if this model instance is escaped. |
boolean |
isExpired()
|
boolean |
isExpired(ServiceContext serviceContext,
Date defaultCreateDate)
|
boolean |
isNew()
Returns true if this model instance does not yet exist in
the database. |
void |
persist()
Updates this model instance in the database or adds it if it does not yet exist. |
void |
prepareLocalizedFieldsForImport()
|
void |
prepareLocalizedFieldsForImport(Locale defaultImportLocale)
|
void |
resetOriginalValues()
Reset all original fields to current values. |
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(String description)
Sets the description of this polls question. |
void |
setDescription(String description,
Locale locale)
Sets the localized description of this polls question in the language. |
void |
setDescription(String description,
Locale locale,
Locale defaultLocale)
Sets the localized description of this polls question in the language, and sets the default locale. |
void |
setDescriptionCurrentLanguageId(String languageId)
|
void |
setDescriptionMap(Map<Locale,String> descriptionMap)
Sets the localized descriptions of this polls question from the map of locales and localized descriptions. |
void |
setDescriptionMap(Map<Locale,String> descriptionMap,
Locale defaultLocale)
Sets the localized descriptions of this polls question from the map of locales and localized descriptions, and sets the default locale. |
void |
setExpandoBridgeAttributes(BaseModel<?> baseModel)
|
void |
setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
|
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 |
setModelAttributes(Map<String,Object> attributes)
|
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 primaryKey)
Sets the primary key of this polls question. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setQuestionId(long questionId)
Sets the question ID of this polls question. |
void |
setTitle(String title)
Sets the title of this polls question. |
void |
setTitle(String title,
Locale locale)
Sets the localized title of this polls question in the language. |
void |
setTitle(String title,
Locale locale,
Locale defaultLocale)
Sets the localized title of this polls question in the language, and sets the default locale. |
void |
setTitleCurrentLanguageId(String languageId)
|
void |
setTitleMap(Map<Locale,String> titleMap)
Sets the localized titles of this polls question from the map of locales and localized titles. |
void |
setTitleMap(Map<Locale,String> titleMap,
Locale defaultLocale)
Sets the localized titles of this polls question from the map of locales and localized titles, and sets the default locale. |
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. |
CacheModel<PollsQuestion> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
PollsQuestion |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler. |
String |
toString()
|
PollsQuestion |
toUnescapedModel()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PollsQuestionWrapper(PollsQuestion pollsQuestion)
| Method Detail |
|---|
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<PollsQuestion>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<PollsQuestion>public long getPrimaryKey()
getPrimaryKey in interface PollsQuestionModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface PollsQuestionModelprimaryKey - the primary key of this polls questionpublic String getUuid()
getUuid in interface StagedModelgetUuid in interface PollsQuestionModelpublic void setUuid(String uuid)
setUuid in interface StagedModelsetUuid in interface PollsQuestionModeluuid - the uuid of this polls questionpublic long getQuestionId()
getQuestionId in interface PollsQuestionModelpublic void setQuestionId(long questionId)
setQuestionId in interface PollsQuestionModelquestionId - the question ID of this polls questionpublic long getGroupId()
getGroupId in interface GroupedModelgetGroupId in interface PollsQuestionModelpublic void setGroupId(long groupId)
setGroupId in interface GroupedModelsetGroupId in interface PollsQuestionModelgroupId - the group ID of this polls questionpublic long getCompanyId()
getCompanyId in interface AuditedModelgetCompanyId in interface StagedModelgetCompanyId in interface PollsQuestionModelpublic void setCompanyId(long companyId)
setCompanyId in interface AuditedModelsetCompanyId in interface StagedModelsetCompanyId in interface PollsQuestionModelcompanyId - the company ID of this polls questionpublic long getUserId()
getUserId in interface AuditedModelgetUserId in interface PollsQuestionModelpublic void setUserId(long userId)
setUserId in interface AuditedModelsetUserId in interface PollsQuestionModeluserId - the user ID of this polls question
public String getUserUuid()
throws SystemException
getUserUuid in interface AuditedModelgetUserUuid in interface PollsQuestionModelSystemException - if a system exception occurredpublic void setUserUuid(String userUuid)
setUserUuid in interface AuditedModelsetUserUuid in interface PollsQuestionModeluserUuid - the user uuid of this polls questionpublic String getUserName()
getUserName in interface AuditedModelgetUserName in interface PollsQuestionModelpublic void setUserName(String userName)
setUserName in interface AuditedModelsetUserName in interface PollsQuestionModeluserName - the user name of this polls questionpublic Date getCreateDate()
getCreateDate in interface AuditedModelgetCreateDate in interface StagedModelgetCreateDate in interface PollsQuestionModelpublic void setCreateDate(Date createDate)
setCreateDate in interface AuditedModelsetCreateDate in interface StagedModelsetCreateDate in interface PollsQuestionModelcreateDate - the create date of this polls questionpublic Date getModifiedDate()
getModifiedDate in interface AuditedModelgetModifiedDate in interface StagedModelgetModifiedDate in interface PollsQuestionModelpublic void setModifiedDate(Date modifiedDate)
setModifiedDate in interface AuditedModelsetModifiedDate in interface StagedModelsetModifiedDate in interface PollsQuestionModelmodifiedDate - the modified date of this polls questionpublic String getTitle()
getTitle in interface PollsQuestionModelpublic String getTitle(Locale locale)
getTitle in interface PollsQuestionModellocale - the locale of the language
public String getTitle(Locale locale,
boolean useDefault)
getTitle in interface PollsQuestionModellocale - the local of the languageuseDefault - 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)
getTitle in interface PollsQuestionModellanguageId - the ID of the language
public String getTitle(String languageId,
boolean useDefault)
getTitle in interface PollsQuestionModellanguageId - the ID of the languageuseDefault - whether to use the default language if no localization exists for the requested language
public String getTitleCurrentLanguageId()
getTitleCurrentLanguageId in interface PollsQuestionModelpublic String getTitleCurrentValue()
getTitleCurrentValue in interface PollsQuestionModelpublic Map<Locale,String> getTitleMap()
getTitleMap in interface PollsQuestionModelpublic void setTitle(String title)
setTitle in interface PollsQuestionModeltitle - the title of this polls question
public void setTitle(String title,
Locale locale)
setTitle in interface PollsQuestionModeltitle - the localized title of this polls questionlocale - the locale of the language
public void setTitle(String title,
Locale locale,
Locale defaultLocale)
setTitle in interface PollsQuestionModeltitle - the localized title of this polls questionlocale - the locale of the languagedefaultLocale - the default localepublic void setTitleCurrentLanguageId(String languageId)
setTitleCurrentLanguageId in interface PollsQuestionModelpublic void setTitleMap(Map<Locale,String> titleMap)
setTitleMap in interface PollsQuestionModeltitleMap - the locales and localized titles of this polls question
public void setTitleMap(Map<Locale,String> titleMap,
Locale defaultLocale)
setTitleMap in interface PollsQuestionModeltitleMap - the locales and localized titles of this polls questiondefaultLocale - the default localepublic String getDescription()
getDescription in interface PollsQuestionModelpublic String getDescription(Locale locale)
getDescription in interface PollsQuestionModellocale - the locale of the language
public String getDescription(Locale locale,
boolean useDefault)
getDescription in interface PollsQuestionModellocale - the local of the languageuseDefault - 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)
getDescription in interface PollsQuestionModellanguageId - the ID of the language
public String getDescription(String languageId,
boolean useDefault)
getDescription in interface PollsQuestionModellanguageId - the ID of the languageuseDefault - whether to use the default language if no localization exists for the requested language
public String getDescriptionCurrentLanguageId()
getDescriptionCurrentLanguageId in interface PollsQuestionModelpublic String getDescriptionCurrentValue()
getDescriptionCurrentValue in interface PollsQuestionModelpublic Map<Locale,String> getDescriptionMap()
getDescriptionMap in interface PollsQuestionModelpublic void setDescription(String description)
setDescription in interface PollsQuestionModeldescription - the description of this polls question
public void setDescription(String description,
Locale locale)
setDescription in interface PollsQuestionModeldescription - the localized description of this polls questionlocale - the locale of the language
public void setDescription(String description,
Locale locale,
Locale defaultLocale)
setDescription in interface PollsQuestionModeldescription - the localized description of this polls questionlocale - the locale of the languagedefaultLocale - the default localepublic void setDescriptionCurrentLanguageId(String languageId)
setDescriptionCurrentLanguageId in interface PollsQuestionModelpublic void setDescriptionMap(Map<Locale,String> descriptionMap)
setDescriptionMap in interface PollsQuestionModeldescriptionMap - the locales and localized descriptions of this polls question
public void setDescriptionMap(Map<Locale,String> descriptionMap,
Locale defaultLocale)
setDescriptionMap in interface PollsQuestionModeldescriptionMap - the locales and localized descriptions of this polls questiondefaultLocale - the default localepublic Date getExpirationDate()
getExpirationDate in interface PollsQuestionModelpublic void setExpirationDate(Date expirationDate)
setExpirationDate in interface PollsQuestionModelexpirationDate - the expiration date of this polls questionpublic Date getLastVoteDate()
getLastVoteDate in interface PollsQuestionModelpublic void setLastVoteDate(Date lastVoteDate)
setLastVoteDate in interface PollsQuestionModellastVoteDate - the last vote date of this polls questionpublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.
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()
BaseModeltrue if this model instance was retrieved from the
entity cache.
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()
BaseModeltrue if this model instance is escaped.
isEscapedModel in interface BaseModel<PollsQuestion>isEscapedModel in interface PollsQuestionModeltrue if this model instance is escaped;
false otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<PollsQuestion>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface PollsQuestionModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<PollsQuestion>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface PollsQuestionModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<PollsQuestion>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface PollsQuestionModelpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<PollsQuestion>setExpandoBridgeAttributes in interface PollsQuestionModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<PollsQuestion>setExpandoBridgeAttributes in interface PollsQuestionModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<PollsQuestion>setExpandoBridgeAttributes in interface PollsQuestionModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public String[] getAvailableLanguageIds()
getAvailableLanguageIds in interface PollsQuestionModelpublic String getDefaultLanguageId()
getDefaultLanguageId in interface PollsQuestionModel
public void prepareLocalizedFieldsForImport()
throws LocaleException
prepareLocalizedFieldsForImport in interface PollsQuestionModelLocaleException
public void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
throws LocaleException
prepareLocalizedFieldsForImport in interface PollsQuestionModelLocaleExceptionpublic Object clone()
BaseModel
clone in interface BaseModel<PollsQuestion>clone in interface StagedModelclone 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 CacheModel<PollsQuestion> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<PollsQuestion>toCacheModel in interface PollsQuestionModelpublic PollsQuestion toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<PollsQuestion>toEscapedModel in interface PollsQuestionModelAutoEscapeBeanHandlerpublic PollsQuestion toUnescapedModel()
toUnescapedModel in interface BaseModel<PollsQuestion>toUnescapedModel in interface PollsQuestionModelpublic String toString()
toString in interface PollsQuestionModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<PollsQuestion>toXmlString in interface PollsQuestionModel
public void persist()
throws SystemException
PersistedModel
persist in interface PersistedModelSystemException - if a system exception occurred
public List<PollsChoice> getChoices()
throws SystemException
getChoices in interface PollsQuestionSystemException
public List<PollsVote> getVotes()
throws SystemException
getVotes in interface PollsQuestionSystemException
public List<PollsVote> getVotes(int start,
int end)
throws SystemException
getVotes in interface PollsQuestionSystemException
public int getVotesCount()
throws SystemException
getVotesCount in interface PollsQuestionSystemExceptionpublic boolean isExpired()
isExpired in interface PollsQuestion
public boolean isExpired(ServiceContext serviceContext,
Date defaultCreateDate)
isExpired in interface PollsQuestionpublic boolean equals(Object obj)
equals in class Objectpublic StagedModelType getStagedModelType()
getStagedModelType in interface StagedModelpublic PollsQuestion getWrappedPollsQuestion()
getWrappedModel()
public PollsQuestion getWrappedModel()
getWrappedModel in interface ModelWrapper<PollsQuestion>public void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<PollsQuestion>
|
Liferay 6.2-ce-ga3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||