@ProviderType public class PollsChoiceWrapper extends java.lang.Object implements PollsChoice, ModelWrapper<PollsChoice>
This class is a wrapper for PollsChoice.
PollsChoice,
Serialized Form| Constructor and Description |
|---|
PollsChoiceWrapper(PollsChoice pollsChoice) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(PollsChoice pollsChoice) |
boolean |
equals(java.lang.Object obj) |
java.lang.String[] |
getAvailableLanguageIds() |
long |
getChoiceId()
Returns the choice ID of this polls choice.
|
long |
getCompanyId()
Returns the company ID of this polls choice.
|
java.util.Date |
getCreateDate()
Returns the create date of this polls choice.
|
java.lang.String |
getDefaultLanguageId() |
java.lang.String |
getDescription()
Returns the description of this polls choice.
|
java.lang.String |
getDescription(java.util.Locale locale)
Returns the localized description of this polls choice in the language.
|
java.lang.String |
getDescription(java.util.Locale locale,
boolean useDefault)
Returns the localized description of this polls choice in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getDescription(java.lang.String languageId)
Returns the localized description of this polls choice in the language.
|
java.lang.String |
getDescription(java.lang.String languageId,
boolean useDefault)
Returns the localized description of this polls choice in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getDescriptionCurrentLanguageId() |
java.lang.String |
getDescriptionCurrentValue() |
java.util.Map<java.util.Locale,java.lang.String> |
getDescriptionMap()
Returns a map of the locales and localized descriptions of this polls choice.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
long |
getGroupId()
Returns the group ID of this polls choice.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
java.util.Date |
getModifiedDate()
Returns the modified date of this polls choice.
|
java.lang.String |
getName()
Returns the name of this polls choice.
|
long |
getPrimaryKey()
Returns the primary key of this polls choice.
|
java.io.Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long |
getQuestionId()
Returns the question ID of this polls choice.
|
StagedModelType |
getStagedModelType() |
long |
getUserId()
Returns the user ID of this polls choice.
|
java.lang.String |
getUserName()
Returns the user name of this polls choice.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this polls choice.
|
java.lang.String |
getUuid()
Returns the uuid of this polls choice.
|
int |
getVotesCount() |
PollsChoice |
getWrappedModel() |
PollsChoice |
getWrappedPollsChoice()
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 |
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(java.util.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 |
setChoiceId(long choiceId)
Sets the choice ID of this polls choice.
|
void |
setCompanyId(long companyId)
Sets the company ID of this polls choice.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this polls choice.
|
void |
setDescription(java.lang.String description)
Sets the description of this polls choice.
|
void |
setDescription(java.lang.String description,
java.util.Locale locale)
Sets the localized description of this polls choice in the language.
|
void |
setDescription(java.lang.String description,
java.util.Locale locale,
java.util.Locale defaultLocale)
Sets the localized description of this polls choice in the language, and sets the default locale.
|
void |
setDescriptionCurrentLanguageId(java.lang.String languageId) |
void |
setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap)
Sets the localized descriptions of this polls choice from the map of locales and localized descriptions.
|
void |
setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.util.Locale defaultLocale)
Sets the localized descriptions of this polls choice 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 |
setGroupId(long groupId)
Sets the group ID of this polls choice.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this polls choice.
|
void |
setName(java.lang.String name)
Sets the name of this polls choice.
|
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 choice.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setQuestionId(long questionId)
Sets the question ID of this polls choice.
|
void |
setUserId(long userId)
Sets the user ID of this polls choice.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this polls choice.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this polls choice.
|
void |
setUuid(java.lang.String uuid)
Sets the uuid of this polls choice.
|
CacheModel<PollsChoice> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
PollsChoice |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler. |
java.lang.String |
toString() |
PollsChoice |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
public PollsChoiceWrapper(PollsChoice pollsChoice)
public java.lang.Class<?> getModelClass()
getModelClass in interface ClassedModelpublic java.lang.String getModelClassName()
getModelClassName in interface ClassedModelpublic java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface BaseModel<PollsChoice>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<PollsChoice>public long getPrimaryKey()
getPrimaryKey in interface PollsChoiceModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface PollsChoiceModelprimaryKey - the primary key of this polls choicepublic java.lang.String getUuid()
getUuid in interface StagedModelgetUuid in interface PollsChoiceModelpublic void setUuid(java.lang.String uuid)
setUuid in interface StagedModelsetUuid in interface PollsChoiceModeluuid - the uuid of this polls choicepublic long getChoiceId()
getChoiceId in interface PollsChoiceModelpublic void setChoiceId(long choiceId)
setChoiceId in interface PollsChoiceModelchoiceId - the choice ID of this polls choicepublic long getGroupId()
getGroupId in interface GroupedModelgetGroupId in interface PollsChoiceModelpublic void setGroupId(long groupId)
setGroupId in interface GroupedModelsetGroupId in interface PollsChoiceModelgroupId - the group ID of this polls choicepublic long getCompanyId()
getCompanyId in interface AuditedModelgetCompanyId in interface StagedModelgetCompanyId in interface PollsChoiceModelpublic void setCompanyId(long companyId)
setCompanyId in interface AuditedModelsetCompanyId in interface StagedModelsetCompanyId in interface PollsChoiceModelcompanyId - the company ID of this polls choicepublic long getUserId()
getUserId in interface AuditedModelgetUserId in interface PollsChoiceModelpublic void setUserId(long userId)
setUserId in interface AuditedModelsetUserId in interface PollsChoiceModeluserId - the user ID of this polls choicepublic java.lang.String getUserUuid()
throws SystemException
getUserUuid in interface AuditedModelgetUserUuid in interface PollsChoiceModelSystemException - if a system exception occurredpublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface AuditedModelsetUserUuid in interface PollsChoiceModeluserUuid - the user uuid of this polls choicepublic java.lang.String getUserName()
getUserName in interface AuditedModelgetUserName in interface PollsChoiceModelpublic void setUserName(java.lang.String userName)
setUserName in interface AuditedModelsetUserName in interface PollsChoiceModeluserName - the user name of this polls choicepublic java.util.Date getCreateDate()
getCreateDate in interface AuditedModelgetCreateDate in interface StagedModelgetCreateDate in interface PollsChoiceModelpublic void setCreateDate(java.util.Date createDate)
setCreateDate in interface AuditedModelsetCreateDate in interface StagedModelsetCreateDate in interface PollsChoiceModelcreateDate - the create date of this polls choicepublic java.util.Date getModifiedDate()
getModifiedDate in interface AuditedModelgetModifiedDate in interface StagedModelgetModifiedDate in interface PollsChoiceModelpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface AuditedModelsetModifiedDate in interface StagedModelsetModifiedDate in interface PollsChoiceModelmodifiedDate - the modified date of this polls choicepublic long getQuestionId()
getQuestionId in interface PollsChoiceModelpublic void setQuestionId(long questionId)
setQuestionId in interface PollsChoiceModelquestionId - the question ID of this polls choicepublic java.lang.String getName()
getName in interface PollsChoiceModelpublic void setName(java.lang.String name)
setName in interface PollsChoiceModelname - the name of this polls choicepublic java.lang.String getDescription()
getDescription in interface PollsChoiceModelpublic java.lang.String getDescription(java.util.Locale locale)
getDescription in interface PollsChoiceModellocale - the locale of the languagepublic java.lang.String getDescription(java.util.Locale locale,
boolean useDefault)
getDescription in interface PollsChoiceModellocale - the local of the languageuseDefault - whether to use the default language if no localization exists for the requested languageuseDefault is false and no localization exists for the requested language, an empty string will be returned.public java.lang.String getDescription(java.lang.String languageId)
getDescription in interface PollsChoiceModellanguageId - the ID of the languagepublic java.lang.String getDescription(java.lang.String languageId,
boolean useDefault)
getDescription in interface PollsChoiceModellanguageId - the ID of the languageuseDefault - whether to use the default language if no localization exists for the requested languagepublic java.lang.String getDescriptionCurrentLanguageId()
getDescriptionCurrentLanguageId in interface PollsChoiceModelpublic java.lang.String getDescriptionCurrentValue()
getDescriptionCurrentValue in interface PollsChoiceModelpublic java.util.Map<java.util.Locale,java.lang.String> getDescriptionMap()
getDescriptionMap in interface PollsChoiceModelpublic void setDescription(java.lang.String description)
setDescription in interface PollsChoiceModeldescription - the description of this polls choicepublic void setDescription(java.lang.String description,
java.util.Locale locale)
setDescription in interface PollsChoiceModeldescription - the localized description of this polls choicelocale - the locale of the languagepublic void setDescription(java.lang.String description,
java.util.Locale locale,
java.util.Locale defaultLocale)
setDescription in interface PollsChoiceModeldescription - the localized description of this polls choicelocale - the locale of the languagedefaultLocale - the default localepublic void setDescriptionCurrentLanguageId(java.lang.String languageId)
setDescriptionCurrentLanguageId in interface PollsChoiceModelpublic void setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap)
setDescriptionMap in interface PollsChoiceModeldescriptionMap - the locales and localized descriptions of this polls choicepublic void setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.util.Locale defaultLocale)
setDescriptionMap in interface PollsChoiceModeldescriptionMap - the locales and localized descriptions of this polls choicedefaultLocale - the default localepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface BaseModel<PollsChoice>isNew in interface PollsChoiceModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModelsetNew in interface BaseModel<PollsChoice>setNew in interface PollsChoiceModeln - 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<PollsChoice>isCachedModel in interface PollsChoiceModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<PollsChoice>setCachedModel in interface PollsChoiceModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface BaseModel<PollsChoice>isEscapedModel in interface PollsChoiceModeltrue if this model instance is escaped;
false otherwisepublic java.io.Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<PollsChoice>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface PollsChoiceModelpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<PollsChoice>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface PollsChoiceModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<PollsChoice>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface PollsChoiceModelpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<PollsChoice>setExpandoBridgeAttributes in interface PollsChoiceModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<PollsChoice>setExpandoBridgeAttributes in interface PollsChoiceModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<PollsChoice>setExpandoBridgeAttributes in interface PollsChoiceModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public java.lang.String[] getAvailableLanguageIds()
getAvailableLanguageIds in interface PollsChoiceModelpublic java.lang.String getDefaultLanguageId()
getDefaultLanguageId in interface PollsChoiceModelpublic void prepareLocalizedFieldsForImport()
throws LocaleException
prepareLocalizedFieldsForImport in interface PollsChoiceModelLocaleExceptionpublic void prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale)
throws LocaleException
prepareLocalizedFieldsForImport in interface PollsChoiceModelLocaleExceptionpublic java.lang.Object clone()
BaseModelclone in interface BaseModel<PollsChoice>clone in interface StagedModelclone in interface PollsChoiceModelclone in class java.lang.Objectpublic int compareTo(PollsChoice pollsChoice)
compareTo in interface PollsChoiceModelcompareTo in interface java.lang.Comparable<PollsChoice>public int hashCode()
hashCode in interface PollsChoiceModelhashCode in class java.lang.Objectpublic CacheModel<PollsChoice> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<PollsChoice>toCacheModel in interface PollsChoiceModelpublic PollsChoice toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<PollsChoice>toEscapedModel in interface PollsChoiceModelAutoEscapeBeanHandlerpublic PollsChoice toUnescapedModel()
toUnescapedModel in interface BaseModel<PollsChoice>toUnescapedModel in interface PollsChoiceModelpublic java.lang.String toString()
toString in interface PollsChoiceModeltoString in class java.lang.Objectpublic java.lang.String toXmlString()
BaseModeltoXmlString in interface BaseModel<PollsChoice>toXmlString in interface PollsChoiceModelpublic void persist()
throws SystemException
PersistedModelpersist in interface PersistedModelSystemException - if a system exception occurredpublic int getVotesCount()
throws SystemException
getVotesCount in interface PollsChoiceSystemExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic StagedModelType getStagedModelType()
getStagedModelType in interface StagedModelpublic PollsChoice getWrappedPollsChoice()
getWrappedModel()public PollsChoice getWrappedModel()
getWrappedModel in interface ModelWrapper<PollsChoice>public void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<PollsChoice>