|
Liferay 6.2.0-ce-m1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.impl.BaseModelImpl<PollsQuestion>
com.liferay.portlet.polls.model.impl.PollsQuestionModelImpl
@JSON(strict=true) 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.
PollsQuestionImpl,
PollsQuestion,
PollsQuestionModel,
Serialized Form| Field Summary | |
|---|---|
static boolean |
COLUMN_BITMASK_ENABLED
|
static long |
COMPANYID_COLUMN_BITMASK
|
static String |
DATA_SOURCE
|
static boolean |
ENTITY_CACHE_ENABLED
|
static boolean |
FINDER_CACHE_ENABLED
|
static long |
GROUPID_COLUMN_BITMASK
|
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
|
static long |
UUID_COLUMN_BITMASK
|
| Constructor Summary | |
|---|---|
PollsQuestionModelImpl()
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(PollsQuestion pollsQuestion)
|
boolean |
equals(Object obj)
|
long |
getColumnBitmask()
|
long |
getCompanyId()
Returns the company ID of this polls question. |
Date |
getCreateDate()
Returns the create date of this polls question. |
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 |
getOriginalCompanyId()
|
long |
getOriginalGroupId()
|
String |
getOriginalUuid()
|
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. |
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. |
int |
hashCode()
|
void |
prepareLocalizedFieldsForImport(Locale defaultImportLocale)
|
void |
resetOriginalValues()
Reset all original fields to current values. |
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(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 |
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. |
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()
Returns the XML representation of this model instance. |
| Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl |
|---|
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, 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, 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 boolean COLUMN_BITMASK_ENABLED
public static long COMPANYID_COLUMN_BITMASK
public static long GROUPID_COLUMN_BITMASK
public static long UUID_COLUMN_BITMASK
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 PollsQuestionModelpublic void setPrimaryKey(long primaryKey)
PollsQuestionModel
setPrimaryKey in interface PollsQuestionModelprimaryKey - the primary key of this polls questionpublic 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 Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<PollsQuestion>getModelAttributes in class BaseModelImpl<PollsQuestion>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<PollsQuestion>setModelAttributes in class BaseModelImpl<PollsQuestion>@JSON public String getUuid()
PollsQuestionModel
getUuid in interface PollsQuestionModelpublic void setUuid(String uuid)
PollsQuestionModel
setUuid in interface PollsQuestionModeluuid - the uuid of this polls questionpublic String getOriginalUuid()
@JSON public long getQuestionId()
PollsQuestionModel
getQuestionId in interface PollsQuestionModelpublic void setQuestionId(long questionId)
PollsQuestionModel
setQuestionId in interface PollsQuestionModelquestionId - the question ID of this polls question@JSON public long getGroupId()
PollsQuestionModel
getGroupId in interface GroupedModelgetGroupId in interface PollsQuestionModelpublic void setGroupId(long groupId)
PollsQuestionModel
setGroupId in interface GroupedModelsetGroupId in interface PollsQuestionModelgroupId - the group ID of this polls questionpublic long getOriginalGroupId()
@JSON public long getCompanyId()
PollsQuestionModel
getCompanyId in interface AuditedModelgetCompanyId in interface PollsQuestionModelpublic void setCompanyId(long companyId)
PollsQuestionModel
setCompanyId in interface AuditedModelsetCompanyId in interface PollsQuestionModelcompanyId - the company ID of this polls questionpublic long getOriginalCompanyId()
@JSON public long getUserId()
PollsQuestionModel
getUserId in interface AuditedModelgetUserId in interface PollsQuestionModelpublic void setUserId(long userId)
PollsQuestionModel
setUserId in interface AuditedModelsetUserId in interface PollsQuestionModeluserId - the user ID of this polls question
public String getUserUuid()
throws SystemException
PollsQuestionModel
getUserUuid in interface AuditedModelgetUserUuid in interface PollsQuestionModelSystemException - if a system exception occurredpublic void setUserUuid(String userUuid)
PollsQuestionModel
setUserUuid in interface AuditedModelsetUserUuid in interface PollsQuestionModeluserUuid - the user uuid of this polls question@JSON public String getUserName()
PollsQuestionModel
getUserName in interface AuditedModelgetUserName in interface PollsQuestionModelpublic void setUserName(String userName)
PollsQuestionModel
setUserName in interface AuditedModelsetUserName in interface PollsQuestionModeluserName - the user name of this polls question@JSON public Date getCreateDate()
PollsQuestionModel
getCreateDate in interface AuditedModelgetCreateDate in interface PollsQuestionModelpublic void setCreateDate(Date createDate)
PollsQuestionModel
setCreateDate in interface AuditedModelsetCreateDate in interface PollsQuestionModelcreateDate - the create date of this polls question@JSON public Date getModifiedDate()
PollsQuestionModel
getModifiedDate in interface AuditedModelgetModifiedDate in interface PollsQuestionModelpublic void setModifiedDate(Date modifiedDate)
PollsQuestionModel
setModifiedDate in interface AuditedModelsetModifiedDate in interface PollsQuestionModelmodifiedDate - the modified date of this polls question@JSON public String getTitle()
PollsQuestionModel
getTitle in interface PollsQuestionModelpublic String getTitle(Locale locale)
PollsQuestionModel
getTitle in interface PollsQuestionModellocale - the locale of the language
public String getTitle(Locale locale,
boolean useDefault)
PollsQuestionModel
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)
PollsQuestionModel
getTitle in interface PollsQuestionModellanguageId - the ID of the language
public String getTitle(String languageId,
boolean useDefault)
PollsQuestionModel
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 PollsQuestionModel@JSON public String getTitleCurrentValue()
getTitleCurrentValue in interface PollsQuestionModelpublic 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(String title,
Locale locale)
PollsQuestionModel
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)
PollsQuestionModel
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)
PollsQuestionModel
setTitleMap in interface PollsQuestionModeltitleMap - the locales and localized titles of this polls question
public void setTitleMap(Map<Locale,String> titleMap,
Locale defaultLocale)
PollsQuestionModel
setTitleMap in interface PollsQuestionModeltitleMap - the locales and localized titles of this polls questiondefaultLocale - the default locale@JSON public String getDescription()
PollsQuestionModel
getDescription in interface PollsQuestionModelpublic String getDescription(Locale locale)
PollsQuestionModel
getDescription in interface PollsQuestionModellocale - the locale of the language
public String getDescription(Locale locale,
boolean useDefault)
PollsQuestionModel
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)
PollsQuestionModel
getDescription in interface PollsQuestionModellanguageId - the ID of the language
public String getDescription(String languageId,
boolean useDefault)
PollsQuestionModel
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 PollsQuestionModel@JSON public String getDescriptionCurrentValue()
getDescriptionCurrentValue in interface PollsQuestionModelpublic 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(String description,
Locale locale)
PollsQuestionModel
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)
PollsQuestionModel
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)
PollsQuestionModel
setDescriptionMap in interface PollsQuestionModeldescriptionMap - the locales and localized descriptions of this polls question
public void setDescriptionMap(Map<Locale,String> descriptionMap,
Locale defaultLocale)
PollsQuestionModel
setDescriptionMap in interface PollsQuestionModeldescriptionMap - the locales and localized descriptions of this polls questiondefaultLocale - the default locale@JSON public Date getExpirationDate()
PollsQuestionModel
getExpirationDate in interface PollsQuestionModelpublic void setExpirationDate(Date expirationDate)
PollsQuestionModel
setExpirationDate in interface PollsQuestionModelexpirationDate - the expiration date of this polls question@JSON public Date getLastVoteDate()
PollsQuestionModel
getLastVoteDate in interface PollsQuestionModelpublic void setLastVoteDate(Date lastVoteDate)
PollsQuestionModel
setLastVoteDate in interface PollsQuestionModellastVoteDate - the last vote date of this polls questionpublic long getColumnBitmask()
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<PollsQuestion>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface PollsQuestionModelgetExpandoBridge in class BaseModelImpl<PollsQuestion>public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<PollsQuestion>setExpandoBridgeAttributes in interface PollsQuestionModelsetExpandoBridgeAttributes in class BaseModelImpl<PollsQuestion>serviceContext - the service contextServiceContext.getExpandoBridgeAttributes(
)
public void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
throws LocaleException
prepareLocalizedFieldsForImport in interface PollsQuestionModelLocaleExceptionpublic PollsQuestion toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<PollsQuestion>toEscapedModel in interface PollsQuestionModeltoEscapedModel in class BaseModelImpl<PollsQuestion>AutoEscapeBeanHandlerpublic Object clone()
BaseModel
clone in interface BaseModel<PollsQuestion>clone in interface PollsQuestionModelclone in class BaseModelImpl<PollsQuestion>public int compareTo(PollsQuestion pollsQuestion)
compareTo in interface PollsQuestionModelcompareTo in interface Comparable<PollsQuestion>public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in interface PollsQuestionModelhashCode in class Objectpublic void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<PollsQuestion>resetOriginalValues in class BaseModelImpl<PollsQuestion>public CacheModel<PollsQuestion> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<PollsQuestion>toCacheModel in interface PollsQuestionModeltoCacheModel in class BaseModelImpl<PollsQuestion>public String toString()
toString in interface PollsQuestionModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<PollsQuestion>toXmlString in interface PollsQuestionModel
|
Liferay 6.2.0-ce-m1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||