public class CountryWrapper extends BaseModelWrapper<Country> implements Country, ModelWrapper<Country>
This class is a wrapper for Country
.
Country
,
Serialized Formmodel
COUNTRY_ID_ACCESSOR
Constructor and Description |
---|
CountryWrapper(Country country) |
Modifier and Type | Method and Description |
---|---|
Country |
cloneWithOriginalValues() |
String |
getA2()
Returns the a2 of this country.
|
String |
getA3()
Returns the a3 of this country.
|
boolean |
getActive()
Returns the active of this country.
|
Map<String,Function<Country,Object>> |
getAttributeGetterFunctions() |
Map<String,BiConsumer<Country,Object>> |
getAttributeSetterBiConsumers() |
String[] |
getAvailableLanguageIds() |
boolean |
getBillingAllowed()
Returns the billing allowed of this country.
|
long |
getCompanyId()
Returns the company ID of this country.
|
long |
getCountryId()
Returns the country ID of this country.
|
Date |
getCreateDate()
Returns the create date of this country.
|
long |
getCtCollectionId()
Returns the ct collection ID of this country.
|
String |
getDefaultLanguageId()
Returns the default language ID of this country.
|
boolean |
getGroupFilterEnabled()
Returns the group filter enabled of this country.
|
String |
getIdd()
Returns the idd of this country.
|
Map<String,String> |
getLanguageIdToTitleMap() |
Date |
getLastPublishDate()
Returns the last publish date of this country.
|
Map<String,Object> |
getModelAttributes() |
Date |
getModifiedDate()
Returns the modified date of this country.
|
long |
getMvccVersion()
Returns the mvcc version of this country.
|
String |
getName()
Returns the name of this country.
|
String |
getName(Locale locale) |
String |
getNameCurrentLanguageId() |
String |
getNameCurrentValue() |
String |
getNumber()
Returns the number of this country.
|
double |
getPosition()
Returns the position of this country.
|
long |
getPrimaryKey()
Returns the primary key of this country.
|
boolean |
getShippingAllowed()
Returns the shipping allowed of this country.
|
StagedModelType |
getStagedModelType() |
boolean |
getSubjectToVAT()
Returns the subject to vat of this country.
|
String |
getTitle() |
String |
getTitle(Locale locale) |
String |
getTitle(String languageId) |
String |
getTitle(String languageId,
boolean useDefault) |
String |
getTitleMapAsXML() |
long |
getUserId()
Returns the user ID of this country.
|
String |
getUserName()
Returns the user name of this country.
|
String |
getUserUuid()
Returns the user uuid of this country.
|
String |
getUuid()
Returns the uuid of this country.
|
boolean |
getZipRequired()
Returns the zip required of this country.
|
boolean |
isActive()
Returns
true if this country is active. |
boolean |
isBillingAllowed()
Returns
true if this country is billing allowed. |
boolean |
isGroupFilterEnabled()
Returns
true if this country is group filter enabled. |
boolean |
isShippingAllowed()
Returns
true if this country is shipping allowed. |
boolean |
isSubjectToVAT()
Returns
true if this country is subject to vat. |
boolean |
isZipRequired()
Returns
true if this country is zip required. |
void |
persist()
Updates this model instance in the database or adds it if it does not yet
exist.
|
void |
setA2(String a2)
Sets the a2 of this country.
|
void |
setA3(String a3)
Sets the a3 of this country.
|
void |
setActive(boolean active)
Sets whether this country is active.
|
void |
setBillingAllowed(boolean billingAllowed)
Sets whether this country is billing allowed.
|
void |
setCompanyId(long companyId)
Sets the company ID of this country.
|
void |
setCountryId(long countryId)
Sets the country ID of this country.
|
void |
setCreateDate(Date createDate)
Sets the create date of this country.
|
void |
setCtCollectionId(long ctCollectionId)
Sets the ct collection ID of this country.
|
void |
setDefaultLanguageId(String defaultLanguageId)
Sets the default language ID of this country.
|
void |
setGroupFilterEnabled(boolean groupFilterEnabled)
Sets whether this country is group filter enabled.
|
void |
setIdd(String idd)
Sets the idd of this country.
|
void |
setLastPublishDate(Date lastPublishDate)
Sets the last publish date of this country.
|
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this country.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this country.
|
void |
setName(String name)
Sets the name of this country.
|
void |
setNameCurrentLanguageId(String languageId) |
void |
setNumber(String number)
Sets the number of this country.
|
void |
setPosition(double position)
Sets the position of this country.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this country.
|
void |
setShippingAllowed(boolean shippingAllowed)
Sets whether this country is shipping allowed.
|
void |
setSubjectToVAT(boolean subjectToVAT)
Sets whether this country is subject to vat.
|
void |
setUserId(long userId)
Sets the user ID of this country.
|
void |
setUserName(String userName)
Sets the user name of this country.
|
void |
setUserUuid(String userUuid)
Sets the user uuid of this country.
|
void |
setUuid(String uuid)
Sets the uuid of this country.
|
void |
setZipRequired(boolean zipRequired)
Sets whether this country is zip required.
|
String |
toXmlString() |
protected CountryWrapper |
wrap(Country country) |
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
clone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
clone
getModelClass, getModelClassName
getWrappedModel
public CountryWrapper(Country country)
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<Country>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<Country>
public Country cloneWithOriginalValues()
cloneWithOriginalValues
in interface BaseModel<Country>
cloneWithOriginalValues
in interface CountryModel
public String getA2()
getA2
in interface CountryModel
public String getA3()
getA3
in interface CountryModel
public boolean getActive()
getActive
in interface CountryModel
public String[] getAvailableLanguageIds()
getAvailableLanguageIds
in interface CountryModel
public boolean getBillingAllowed()
getBillingAllowed
in interface CountryModel
public long getCompanyId()
getCompanyId
in interface AuditedModel
getCompanyId
in interface CountryModel
getCompanyId
in interface ShardedModel
getCompanyId
in interface StagedModel
public long getCountryId()
getCountryId
in interface CountryModel
public Date getCreateDate()
getCreateDate
in interface AuditedModel
getCreateDate
in interface CountryModel
getCreateDate
in interface StagedModel
public long getCtCollectionId()
getCtCollectionId
in interface CTModel<Country>
getCtCollectionId
in interface CountryModel
public String getDefaultLanguageId()
getDefaultLanguageId
in interface CountryModel
public boolean getGroupFilterEnabled()
getGroupFilterEnabled
in interface CountryModel
public String getIdd()
getIdd
in interface CountryModel
public Map<String,String> getLanguageIdToTitleMap()
getLanguageIdToTitleMap
in interface CountryModel
public Date getLastPublishDate()
getLastPublishDate
in interface CountryModel
public Date getModifiedDate()
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface CountryModel
getModifiedDate
in interface StagedModel
public long getMvccVersion()
getMvccVersion
in interface CountryModel
getMvccVersion
in interface MVCCModel
public String getName()
getName
in interface CountryModel
public String getNameCurrentLanguageId()
getNameCurrentLanguageId
in interface Country
public String getNameCurrentValue()
getNameCurrentValue
in interface Country
public String getNumber()
getNumber
in interface CountryModel
public double getPosition()
getPosition
in interface CountryModel
public long getPrimaryKey()
getPrimaryKey
in interface CTModel<Country>
getPrimaryKey
in interface CountryModel
public boolean getShippingAllowed()
getShippingAllowed
in interface CountryModel
public boolean getSubjectToVAT()
getSubjectToVAT
in interface CountryModel
public String getTitle()
getTitle
in interface CountryModel
public String getTitle(String languageId)
getTitle
in interface CountryModel
public String getTitle(String languageId, boolean useDefault)
getTitle
in interface CountryModel
public String getTitleMapAsXML()
getTitleMapAsXML
in interface CountryModel
public long getUserId()
getUserId
in interface AuditedModel
getUserId
in interface CountryModel
public String getUserName()
getUserName
in interface AuditedModel
getUserName
in interface CountryModel
public String getUserUuid()
getUserUuid
in interface AuditedModel
getUserUuid
in interface CountryModel
public String getUuid()
getUuid
in interface CountryModel
getUuid
in interface StagedModel
public boolean getZipRequired()
getZipRequired
in interface CountryModel
public boolean isActive()
true
if this country is active.isActive
in interface CountryModel
true
if this country is active; false
otherwisepublic boolean isBillingAllowed()
true
if this country is billing allowed.isBillingAllowed
in interface CountryModel
true
if this country is billing allowed; false
otherwisepublic boolean isGroupFilterEnabled()
true
if this country is group filter enabled.isGroupFilterEnabled
in interface CountryModel
true
if this country is group filter enabled; false
otherwisepublic boolean isShippingAllowed()
true
if this country is shipping allowed.isShippingAllowed
in interface CountryModel
true
if this country is shipping allowed; false
otherwisepublic boolean isSubjectToVAT()
true
if this country is subject to vat.isSubjectToVAT
in interface CountryModel
true
if this country is subject to vat; false
otherwisepublic boolean isZipRequired()
true
if this country is zip required.isZipRequired
in interface CountryModel
true
if this country is zip required; false
otherwisepublic void persist()
PersistedModel
persist
in interface PersistedModel
public void setA2(String a2)
setA2
in interface CountryModel
a2
- the a2 of this countrypublic void setA3(String a3)
setA3
in interface CountryModel
a3
- the a3 of this countrypublic void setActive(boolean active)
setActive
in interface CountryModel
active
- the active of this countrypublic void setBillingAllowed(boolean billingAllowed)
setBillingAllowed
in interface CountryModel
billingAllowed
- the billing allowed of this countrypublic void setCompanyId(long companyId)
setCompanyId
in interface AuditedModel
setCompanyId
in interface CountryModel
setCompanyId
in interface ShardedModel
setCompanyId
in interface StagedModel
companyId
- the company ID of this countrypublic void setCountryId(long countryId)
setCountryId
in interface CountryModel
countryId
- the country ID of this countrypublic void setCreateDate(Date createDate)
setCreateDate
in interface AuditedModel
setCreateDate
in interface CountryModel
setCreateDate
in interface StagedModel
createDate
- the create date of this countrypublic void setCtCollectionId(long ctCollectionId)
setCtCollectionId
in interface CTModel<Country>
setCtCollectionId
in interface CountryModel
ctCollectionId
- the ct collection ID of this countrypublic void setDefaultLanguageId(String defaultLanguageId)
setDefaultLanguageId
in interface CountryModel
defaultLanguageId
- the default language ID of this countrypublic void setGroupFilterEnabled(boolean groupFilterEnabled)
setGroupFilterEnabled
in interface CountryModel
groupFilterEnabled
- the group filter enabled of this countrypublic void setIdd(String idd)
setIdd
in interface CountryModel
idd
- the idd of this countrypublic void setLastPublishDate(Date lastPublishDate)
setLastPublishDate
in interface CountryModel
lastPublishDate
- the last publish date of this countrypublic void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface CountryModel
setModifiedDate
in interface StagedModel
modifiedDate
- the modified date of this countrypublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface CountryModel
setMvccVersion
in interface MVCCModel
mvccVersion
- the mvcc version of this countrypublic void setName(String name)
setName
in interface CountryModel
name
- the name of this countrypublic void setNameCurrentLanguageId(String languageId)
setNameCurrentLanguageId
in interface Country
public void setNumber(String number)
setNumber
in interface CountryModel
number
- the number of this countrypublic void setPosition(double position)
setPosition
in interface CountryModel
position
- the position of this countrypublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface CTModel<Country>
setPrimaryKey
in interface CountryModel
primaryKey
- the primary key of this countrypublic void setShippingAllowed(boolean shippingAllowed)
setShippingAllowed
in interface CountryModel
shippingAllowed
- the shipping allowed of this countrypublic void setSubjectToVAT(boolean subjectToVAT)
setSubjectToVAT
in interface CountryModel
subjectToVAT
- the subject to vat of this countrypublic void setUserId(long userId)
setUserId
in interface AuditedModel
setUserId
in interface CountryModel
userId
- the user ID of this countrypublic void setUserName(String userName)
setUserName
in interface AuditedModel
setUserName
in interface CountryModel
userName
- the user name of this countrypublic void setUserUuid(String userUuid)
setUserUuid
in interface AuditedModel
setUserUuid
in interface CountryModel
userUuid
- the user uuid of this countrypublic void setUuid(String uuid)
setUuid
in interface CountryModel
setUuid
in interface StagedModel
uuid
- the uuid of this countrypublic void setZipRequired(boolean zipRequired)
setZipRequired
in interface CountryModel
zipRequired
- the zip required of this countrypublic String toXmlString()
toXmlString
in interface CountryModel
public Map<String,Function<Country,Object>> getAttributeGetterFunctions()
getAttributeGetterFunctions
in interface BaseModel<Country>
public Map<String,BiConsumer<Country,Object>> getAttributeSetterBiConsumers()
getAttributeSetterBiConsumers
in interface BaseModel<Country>
public StagedModelType getStagedModelType()
getStagedModelType
in interface StagedModel
protected CountryWrapper wrap(Country country)
wrap
in class BaseModelWrapper<Country>