public class RegionWrapper extends BaseModelWrapper<Region> implements ModelWrapper<Region>, Region
This class is a wrapper for Region
.
Region
,
Serialized Formmodel
REGION_ID_ACCESSOR
Constructor and Description |
---|
RegionWrapper(Region region) |
Modifier and Type | Method and Description |
---|---|
Region |
cloneWithOriginalValues() |
boolean |
getActive()
Returns the active of this region.
|
Map<String,Function<Region,Object>> |
getAttributeGetterFunctions() |
Map<String,BiConsumer<Region,Object>> |
getAttributeSetterBiConsumers() |
String[] |
getAvailableLanguageIds() |
long |
getCompanyId()
Returns the company ID of this region.
|
long |
getCountryId()
Returns the country ID of this region.
|
Date |
getCreateDate()
Returns the create date of this region.
|
long |
getCtCollectionId()
Returns the ct collection ID of this region.
|
String |
getDefaultLanguageId()
Returns the default language ID of this region.
|
Map<String,String> |
getLanguageIdToTitleMap() |
Date |
getLastPublishDate()
Returns the last publish date of this region.
|
Map<String,Object> |
getModelAttributes() |
Date |
getModifiedDate()
Returns the modified date of this region.
|
long |
getMvccVersion()
Returns the mvcc version of this region.
|
String |
getName()
Returns the name of this region.
|
double |
getPosition()
Returns the position of this region.
|
long |
getPrimaryKey()
Returns the primary key of this region.
|
String |
getRegionCode()
Returns the region code of this region.
|
long |
getRegionId()
Returns the region ID of this region.
|
StagedModelType |
getStagedModelType() |
String |
getTitle() |
String |
getTitle(String languageId) |
String |
getTitle(String languageId,
boolean useDefault) |
String |
getTitleCurrentLanguageId() |
String |
getTitleMapAsXML() |
long |
getUserId()
Returns the user ID of this region.
|
String |
getUserName()
Returns the user name of this region.
|
String |
getUserUuid()
Returns the user uuid of this region.
|
String |
getUuid()
Returns the uuid of this region.
|
boolean |
isActive()
Returns
true if this region is active. |
void |
persist()
Updates this model instance in the database or adds it if it does not yet
exist.
|
void |
setActive(boolean active)
Sets whether this region is active.
|
void |
setCompanyId(long companyId)
Sets the company ID of this region.
|
void |
setCountryId(long countryId)
Sets the country ID of this region.
|
void |
setCreateDate(Date createDate)
Sets the create date of this region.
|
void |
setCtCollectionId(long ctCollectionId)
Sets the ct collection ID of this region.
|
void |
setDefaultLanguageId(String defaultLanguageId)
Sets the default language ID of this region.
|
void |
setLastPublishDate(Date lastPublishDate)
Sets the last publish date of this region.
|
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this region.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this region.
|
void |
setName(String name)
Sets the name of this region.
|
void |
setPosition(double position)
Sets the position of this region.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this region.
|
void |
setRegionCode(String regionCode)
Sets the region code of this region.
|
void |
setRegionId(long regionId)
Sets the region ID of this region.
|
void |
setTitleCurrentLanguageId(String languageId) |
void |
setUserId(long userId)
Sets the user ID of this region.
|
void |
setUserName(String userName)
Sets the user name of this region.
|
void |
setUserUuid(String userUuid)
Sets the user uuid of this region.
|
void |
setUuid(String uuid)
Sets the uuid of this region.
|
String |
toXmlString() |
protected RegionWrapper |
wrap(Region region) |
clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel
getWrappedModel
clone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
clone
getModelClass, getModelClassName
public RegionWrapper(Region region)
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<Region>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<Region>
public Region cloneWithOriginalValues()
cloneWithOriginalValues
in interface BaseModel<Region>
cloneWithOriginalValues
in interface RegionModel
public boolean getActive()
getActive
in interface RegionModel
public String[] getAvailableLanguageIds()
getAvailableLanguageIds
in interface RegionModel
public long getCompanyId()
getCompanyId
in interface AuditedModel
getCompanyId
in interface RegionModel
getCompanyId
in interface ShardedModel
getCompanyId
in interface StagedModel
public long getCountryId()
getCountryId
in interface RegionModel
public Date getCreateDate()
getCreateDate
in interface AuditedModel
getCreateDate
in interface RegionModel
getCreateDate
in interface StagedModel
public long getCtCollectionId()
getCtCollectionId
in interface CTModel<Region>
getCtCollectionId
in interface RegionModel
public String getDefaultLanguageId()
getDefaultLanguageId
in interface RegionModel
public Map<String,String> getLanguageIdToTitleMap()
getLanguageIdToTitleMap
in interface RegionModel
public Date getLastPublishDate()
getLastPublishDate
in interface RegionModel
public Date getModifiedDate()
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface RegionModel
getModifiedDate
in interface StagedModel
public long getMvccVersion()
getMvccVersion
in interface MVCCModel
getMvccVersion
in interface RegionModel
public String getName()
getName
in interface RegionModel
public double getPosition()
getPosition
in interface RegionModel
public long getPrimaryKey()
getPrimaryKey
in interface CTModel<Region>
getPrimaryKey
in interface RegionModel
public String getRegionCode()
getRegionCode
in interface RegionModel
public long getRegionId()
getRegionId
in interface RegionModel
public String getTitle()
getTitle
in interface RegionModel
public String getTitle(String languageId)
getTitle
in interface RegionModel
public String getTitle(String languageId, boolean useDefault)
getTitle
in interface RegionModel
public String getTitleCurrentLanguageId()
getTitleCurrentLanguageId
in interface Region
public String getTitleMapAsXML()
getTitleMapAsXML
in interface RegionModel
public long getUserId()
getUserId
in interface AuditedModel
getUserId
in interface RegionModel
public String getUserName()
getUserName
in interface AuditedModel
getUserName
in interface RegionModel
public String getUserUuid()
getUserUuid
in interface AuditedModel
getUserUuid
in interface RegionModel
public String getUuid()
getUuid
in interface RegionModel
getUuid
in interface StagedModel
public boolean isActive()
true
if this region is active.isActive
in interface RegionModel
true
if this region is active; false
otherwisepublic void persist()
PersistedModel
persist
in interface PersistedModel
public void setActive(boolean active)
setActive
in interface RegionModel
active
- the active of this regionpublic void setCompanyId(long companyId)
setCompanyId
in interface AuditedModel
setCompanyId
in interface RegionModel
setCompanyId
in interface ShardedModel
setCompanyId
in interface StagedModel
companyId
- the company ID of this regionpublic void setCountryId(long countryId)
setCountryId
in interface RegionModel
countryId
- the country ID of this regionpublic void setCreateDate(Date createDate)
setCreateDate
in interface AuditedModel
setCreateDate
in interface RegionModel
setCreateDate
in interface StagedModel
createDate
- the create date of this regionpublic void setCtCollectionId(long ctCollectionId)
setCtCollectionId
in interface CTModel<Region>
setCtCollectionId
in interface RegionModel
ctCollectionId
- the ct collection ID of this regionpublic void setDefaultLanguageId(String defaultLanguageId)
setDefaultLanguageId
in interface RegionModel
defaultLanguageId
- the default language ID of this regionpublic void setLastPublishDate(Date lastPublishDate)
setLastPublishDate
in interface RegionModel
lastPublishDate
- the last publish date of this regionpublic void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface RegionModel
setModifiedDate
in interface StagedModel
modifiedDate
- the modified date of this regionpublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface MVCCModel
setMvccVersion
in interface RegionModel
mvccVersion
- the mvcc version of this regionpublic void setName(String name)
setName
in interface RegionModel
name
- the name of this regionpublic void setPosition(double position)
setPosition
in interface RegionModel
position
- the position of this regionpublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface CTModel<Region>
setPrimaryKey
in interface RegionModel
primaryKey
- the primary key of this regionpublic void setRegionCode(String regionCode)
setRegionCode
in interface RegionModel
regionCode
- the region code of this regionpublic void setRegionId(long regionId)
setRegionId
in interface RegionModel
regionId
- the region ID of this regionpublic void setTitleCurrentLanguageId(String languageId)
setTitleCurrentLanguageId
in interface Region
public void setUserId(long userId)
setUserId
in interface AuditedModel
setUserId
in interface RegionModel
userId
- the user ID of this regionpublic void setUserName(String userName)
setUserName
in interface AuditedModel
setUserName
in interface RegionModel
userName
- the user name of this regionpublic void setUserUuid(String userUuid)
setUserUuid
in interface AuditedModel
setUserUuid
in interface RegionModel
userUuid
- the user uuid of this regionpublic void setUuid(String uuid)
setUuid
in interface RegionModel
setUuid
in interface StagedModel
uuid
- the uuid of this regionpublic String toXmlString()
toXmlString
in interface RegionModel
public Map<String,Function<Region,Object>> getAttributeGetterFunctions()
getAttributeGetterFunctions
in interface BaseModel<Region>
public Map<String,BiConsumer<Region,Object>> getAttributeSetterBiConsumers()
getAttributeSetterBiConsumers
in interface BaseModel<Region>
public StagedModelType getStagedModelType()
getStagedModelType
in interface StagedModel
protected RegionWrapper wrap(Region region)
wrap
in class BaseModelWrapper<Region>