|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.RegionWrapper
public class RegionWrapper
This class is a wrapper for Region.
Region,
Serialized Form| Constructor 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 RegionModelpublic void setPrimaryKey(long pk)
RegionModel
setPrimaryKey in interface RegionModelpk - the primary key of this regionpublic long getRegionId()
RegionModel
getRegionId in interface RegionModelpublic void setRegionId(long regionId)
RegionModel
setRegionId in interface RegionModelregionId - the region id of this regionpublic long getCountryId()
RegionModel
getCountryId in interface RegionModelpublic void setCountryId(long countryId)
RegionModel
setCountryId in interface RegionModelcountryId - the country id of this regionpublic String getRegionCode()
RegionModel
getRegionCode in interface RegionModelpublic void setRegionCode(String regionCode)
RegionModel
setRegionCode in interface RegionModelregionCode - the region code of this regionpublic String getName()
RegionModel
getName in interface RegionModelpublic void setName(String name)
RegionModel
setName in interface RegionModelname - the name of this regionpublic boolean getActive()
RegionModel
getActive in interface RegionModelpublic boolean isActive()
RegionModel
isActive in interface RegionModelpublic void setActive(boolean active)
RegionModel
setActive in interface RegionModelactive - the active of this regionpublic Region toEscapedModel()
RegionModelAutoEscapeBeanHandler.
toEscapedModel in interface RegionModelAutoEscapeBeanHandlerpublic boolean isNew()
BaseModel
isNew in interface BaseModel<Region>isNew in interface RegionModeltrue 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 RegionModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel in interface BaseModel<Region>isCachedModel in interface RegionModeltrue 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 RegionModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModel
isEscapedModel in interface BaseModel<Region>isEscapedModel in interface RegionModeltrue 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 RegionModelescapedModel - whether this model instance is escapedAutoEscapeBeanHandlerpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<Region>getPrimaryKeyObj in interface RegionModelpublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<Region>getExpandoBridge in interface RegionModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<Region>setExpandoBridgeAttributes in interface RegionModelserviceContext - the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<Region>clone in interface RegionModelclone in class Objectpublic int compareTo(Region region)
compareTo in interface RegionModelcompareTo in interface Comparable<Region>public int hashCode()
hashCode in interface RegionModelhashCode in class Objectpublic String toString()
toString in interface RegionModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<Region>toXmlString in interface RegionModelpublic Region getWrappedRegion()
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||