|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.model.CountryWrapper
public class CountryWrapper
This class is a wrapper for Country
.
Country
,
Serialized FormConstructor Summary | |
---|---|
CountryWrapper(Country country)
|
Method Summary | |
---|---|
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()
|
String |
getName()
Returns the name of this country. |
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 |
getWrappedCountry()
Deprecated. Renamed to getWrappedModel() |
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 |
isEscapedModel()
Returns true if this model instance is escaped. |
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(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 |
setName(String name)
Sets the name of this country. |
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. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CountryWrapper(Country country)
Method Detail |
---|
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 long getPrimaryKey()
getPrimaryKey
in interface CountryModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface CountryModel
primaryKey
- the primary key of this countrypublic long getCountryId()
getCountryId
in interface CountryModel
public void setCountryId(long countryId)
setCountryId
in interface CountryModel
countryId
- the country ID of this countrypublic String getName()
getName
in interface CountryModel
public void setName(String name)
setName
in interface CountryModel
name
- the name of this countrypublic String getA2()
getA2
in interface CountryModel
public void setA2(String a2)
setA2
in interface CountryModel
a2
- the a2 of this countrypublic String getA3()
getA3
in interface CountryModel
public void setA3(String a3)
setA3
in interface CountryModel
a3
- the a3 of this countrypublic String getNumber()
getNumber
in interface CountryModel
public void setNumber(String number)
setNumber
in interface CountryModel
number
- the number of this countrypublic String getIdd()
getIdd
in interface CountryModel
public void setIdd(String idd)
setIdd
in interface CountryModel
idd
- the idd of this countrypublic boolean getZipRequired()
getZipRequired
in interface CountryModel
public boolean isZipRequired()
true
if this country is zip required.
isZipRequired
in interface CountryModel
true
if this country is zip required; false
otherwisepublic void setZipRequired(boolean zipRequired)
setZipRequired
in interface CountryModel
zipRequired
- the zip required of this countrypublic boolean getActive()
getActive
in interface CountryModel
public boolean isActive()
true
if this country is active.
isActive
in interface CountryModel
true
if this country is active; false
otherwisepublic void setActive(boolean active)
setActive
in interface CountryModel
active
- the active of this countrypublic 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 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 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 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 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 Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<Country>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface CountryModel
public 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 ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Country>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface CountryModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<Country>
setExpandoBridgeAttributes
in interface CountryModel
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
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 int hashCode()
hashCode
in interface CountryModel
hashCode
in class Object
public 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 Country toUnescapedModel()
toUnescapedModel
in interface BaseModel<Country>
toUnescapedModel
in interface CountryModel
public String toString()
toString
in interface CountryModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<Country>
toXmlString
in interface CountryModel
public boolean equals(Object obj)
equals
in class Object
public Country getWrappedCountry()
getWrappedModel()
public Country getWrappedModel()
getWrappedModel
in interface ModelWrapper<Country>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<Country>
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |