@ProviderType public class CountryWrapper extends Object implements Country, ModelWrapper<Country>
This class is a wrapper for Country
.
Country
,
Serialized FormCOUNTRY_ID_ACCESSOR
Constructor and Description |
---|
CountryWrapper(Country country) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(Country country) |
boolean |
equals(Object obj) |
String |
getA2()
Returns the a2 of this country.
|
String |
getA3()
Returns the a3 of this country.
|
boolean |
getActive()
Returns the active of this country.
|
long |
getCountryId()
Returns the country ID of this country.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
String |
getIdd()
Returns the idd of this country.
|
Map<String,Object> |
getModelAttributes() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
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.
|
long |
getPrimaryKey()
Returns the primary key of this country.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
Country |
getWrappedModel() |
boolean |
getZipRequired()
Returns the zip required of this country.
|
int |
hashCode() |
boolean |
isActive()
Returns
true if this country is active. |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isEntityCacheEnabled()
Returns
true if this model's entity cache is enabled. |
boolean |
isEscapedModel()
Returns
true if this model instance is escaped. |
boolean |
isFinderCacheEnabled()
Returns
true if this model's finder cache is enabled. |
boolean |
isNew()
Returns
true if this model instance does not yet exist in
the database. |
boolean |
isZipRequired()
Returns
true if this country is zip required. |
void |
resetOriginalValues()
Reset all original fields to current values.
|
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 |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache.
|
void |
setCountryId(long countryId)
Sets the country ID of this country.
|
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 |
setIdd(String idd)
Sets the idd of this country.
|
void |
setModelAttributes(Map<String,Object> attributes) |
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 |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
void |
setNumber(String number)
Sets the number of this country.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this country.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setZipRequired(boolean zipRequired)
Sets whether this country is zip required.
|
CacheModel<Country> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
Country |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler . |
String |
toString() |
Country |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public CountryWrapper(Country country)
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<Country>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<Country>
public Object clone()
BaseModel
clone
in interface BaseModel<Country>
clone
in interface CountryModel
clone
in class Object
public int compareTo(Country country)
compareTo
in interface CountryModel
compareTo
in interface Comparable<Country>
public String getA2()
getA2
in interface CountryModel
public String getA3()
getA3
in interface CountryModel
public boolean getActive()
getActive
in interface CountryModel
public long getCountryId()
getCountryId
in interface CountryModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Country>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface CountryModel
public String getIdd()
getIdd
in interface CountryModel
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 long getPrimaryKey()
getPrimaryKey
in interface CountryModel
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<Country>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface CountryModel
public boolean getZipRequired()
getZipRequired
in interface CountryModel
public int hashCode()
hashCode
in interface CountryModel
hashCode
in class Object
public boolean isActive()
true
if this country is active.isActive
in interface CountryModel
true
if this country is active; false
otherwisepublic boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface BaseModel<Country>
isCachedModel
in interface CountryModel
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.isEscapedModel
in interface BaseModel<Country>
isEscapedModel
in interface CountryModel
true
if this model instance is escaped;
false
otherwisepublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.isNew
in interface BaseModel<Country>
isNew
in interface CountryModel
true
if this model instance does not yet exist in
the database; 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 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 setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<Country>
setCachedModel
in interface CountryModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setCountryId(long countryId)
setCountryId
in interface CountryModel
countryId
- the country ID of this countrypublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<Country>
setExpandoBridgeAttributes
in interface CountryModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<Country>
setExpandoBridgeAttributes
in interface CountryModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<Country>
setExpandoBridgeAttributes
in interface CountryModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setIdd(String idd)
setIdd
in interface CountryModel
idd
- the idd 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 setNew(boolean n)
BaseModel
setNew
in interface BaseModel<Country>
setNew
in interface CountryModel
n
- whether this model instance does not yet exist in the databasepublic void setNumber(String number)
setNumber
in interface CountryModel
number
- the number of this countrypublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface CountryModel
primaryKey
- the primary key of this countrypublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<Country>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface CountryModel
primaryKeyObj
- the primary key of this model instancepublic void setZipRequired(boolean zipRequired)
setZipRequired
in interface CountryModel
zipRequired
- the zip required of this countrypublic CacheModel<Country> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<Country>
toCacheModel
in interface CountryModel
public Country toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface BaseModel<Country>
toEscapedModel
in interface CountryModel
AutoEscapeBeanHandler
public String toString()
toString
in interface CountryModel
toString
in class Object
public Country toUnescapedModel()
toUnescapedModel
in interface BaseModel<Country>
toUnescapedModel
in interface CountryModel
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<Country>
toXmlString
in interface CountryModel
public boolean equals(Object obj)
equals
in class Object
public Country getWrappedModel()
getWrappedModel
in interface ModelWrapper<Country>
public boolean isEntityCacheEnabled()
BaseModel
true
if this model's entity cache is enabled.isEntityCacheEnabled
in interface BaseModel<Country>
true
if this model's entity cache is enabled;
false
otherwisepublic boolean isFinderCacheEnabled()
BaseModel
true
if this model's finder cache is enabled.isFinderCacheEnabled
in interface BaseModel<Country>
true
if this model's finder cache is enabled;
false
otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<Country>