|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.model.RegionWrapper
public class RegionWrapper
This class is a wrapper for Region
.
Region
,
Serialized FormConstructor Summary | |
---|---|
RegionWrapper(Region region)
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(Region region)
|
boolean |
getActive()
Gets the active of this region. |
long |
getCountryId()
Gets the country id of this region. |
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
String |
getName()
Gets the name of this region. |
long |
getPrimaryKey()
Gets the primary key of this region. |
Serializable |
getPrimaryKeyObj()
Gets the primary key of this model instance. |
String |
getRegionCode()
Gets the region code of this region. |
long |
getRegionId()
Gets the region id of this region. |
Region |
getWrappedRegion()
|
int |
hashCode()
|
boolean |
isActive()
Determines whether this region is active. |
boolean |
isCachedModel()
Determines if this model instance was retrieved from the entity cache. |
boolean |
isEscapedModel()
Determines if this model instance is escaped. |
boolean |
isNew()
Determines if this model instance does not yet exist in the database. |
void |
setActive(boolean active)
Sets whether this {$entity.humanName} 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 region. |
void |
setEscapedModel(boolean escapedModel)
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe. |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the attributes stored in the service context. |
void |
setName(String name)
Sets the name of this region. |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setPrimaryKey(long pk)
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. |
Region |
toEscapedModel()
Gets a copy of this region as an escaped model instance by wrapping it with an AutoEscapeBeanHandler . |
String |
toString()
|
String |
toXmlString()
Gets the XML representation of this model instance. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RegionWrapper(Region region)
Method Detail |
---|
public long getPrimaryKey()
RegionModel
getPrimaryKey
in interface RegionModel
public void setPrimaryKey(long pk)
RegionModel
setPrimaryKey
in interface RegionModel
pk
- the primary key of this regionpublic long getRegionId()
RegionModel
getRegionId
in interface RegionModel
public void setRegionId(long regionId)
RegionModel
setRegionId
in interface RegionModel
regionId
- the region id of this regionpublic long getCountryId()
RegionModel
getCountryId
in interface RegionModel
public void setCountryId(long countryId)
RegionModel
setCountryId
in interface RegionModel
countryId
- the country id of this regionpublic String getRegionCode()
RegionModel
getRegionCode
in interface RegionModel
public void setRegionCode(String regionCode)
RegionModel
setRegionCode
in interface RegionModel
regionCode
- the region code of this regionpublic String getName()
RegionModel
getName
in interface RegionModel
public void setName(String name)
RegionModel
setName
in interface RegionModel
name
- the name of this regionpublic boolean getActive()
RegionModel
getActive
in interface RegionModel
public boolean isActive()
RegionModel
isActive
in interface RegionModel
public void setActive(boolean active)
RegionModel
setActive
in interface RegionModel
active
- the active of this regionpublic Region toEscapedModel()
RegionModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface RegionModel
AutoEscapeBeanHandler
public boolean isNew()
BaseModel
isNew
in interface BaseModel<Region>
isNew
in interface RegionModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<Region>
setNew
in interface RegionModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel
in interface BaseModel<Region>
isCachedModel
in interface RegionModel
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<Region>
setCachedModel
in interface RegionModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
isEscapedModel
in interface BaseModel<Region>
isEscapedModel
in interface RegionModel
true
if this model instance is escaped;
false
otherwiseBaseModel.setEscapedModel(boolean)
public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be made escaped by wrapping it with an HTML auto
escape handler using its toEscapedModel
method. For example,
UserModel.toEscapedModel()
.
setEscapedModel
in interface BaseModel<Region>
setEscapedModel
in interface RegionModel
escapedModel
- whether this model instance is escapedAutoEscapeBeanHandler
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<Region>
getPrimaryKeyObj
in interface RegionModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Region>
getExpandoBridge
in interface RegionModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<Region>
setExpandoBridgeAttributes
in interface RegionModel
serviceContext
- the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<Region>
clone
in interface RegionModel
clone
in class Object
public int compareTo(Region region)
compareTo
in interface RegionModel
compareTo
in interface Comparable<Region>
public int hashCode()
hashCode
in interface RegionModel
hashCode
in class Object
public String toString()
toString
in interface RegionModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<Region>
toXmlString
in interface RegionModel
public Region getWrappedRegion()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |