|
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.impl.BaseModelImpl<Region> com.liferay.portal.model.impl.RegionModelImpl
public class RegionModelImpl
The base model implementation for the Region service. Represents a row in the "Region" database table, with each column mapped to a property of this class.
This implementation and its corresponding interface RegionModel
exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in RegionImpl
.
Never modify or reference this class directly. All methods that expect a region model instance should use the Region
interface instead.
RegionImpl
,
Region
,
RegionModel
,
Serialized FormField Summary | |
---|---|
static String |
DATA_SOURCE
|
static boolean |
ENTITY_CACHE_ENABLED
|
static boolean |
FINDER_CACHE_ENABLED
|
static long |
LOCK_EXPIRATION_TIME
|
static String |
ORDER_BY_JPQL
|
static String |
ORDER_BY_SQL
|
static String |
SESSION_FACTORY
|
static Object[][] |
TABLE_COLUMNS
|
static String |
TABLE_NAME
|
static String |
TABLE_SQL_CREATE
|
static String |
TABLE_SQL_DROP
|
static String |
TX_MANAGER
|
Constructor Summary | |
---|---|
RegionModelImpl()
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(Region region)
|
boolean |
equals(Object obj)
|
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. |
int |
hashCode()
|
boolean |
isActive()
Determines whether this region is active. |
void |
setActive(boolean active)
Sets whether this {$entity.humanName} is active. |
void |
setCountryId(long countryId)
Sets the country id of this region. |
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 |
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 . |
static Region |
toModel(RegionSoap soapModel)
Converts the soap model instance into a normal model instance. |
static List<Region> |
toModels(RegionSoap[] soapModels)
Converts the soap model instances into normal model instances. |
String |
toString()
|
String |
toXmlString()
Gets the XML representation of this model instance. |
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl |
---|
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, setNew |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.liferay.portal.model.RegionModel |
---|
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, setNew |
Field Detail |
---|
public static final String TABLE_NAME
public static final Object[][] TABLE_COLUMNS
public static final String TABLE_SQL_CREATE
public static final String TABLE_SQL_DROP
public static final String ORDER_BY_JPQL
public static final String ORDER_BY_SQL
public static final String DATA_SOURCE
public static final String SESSION_FACTORY
public static final String TX_MANAGER
public static final boolean ENTITY_CACHE_ENABLED
public static final boolean FINDER_CACHE_ENABLED
public static final long LOCK_EXPIRATION_TIME
Constructor Detail |
---|
public RegionModelImpl()
Method Detail |
---|
public static Region toModel(RegionSoap soapModel)
soapModel
- the soap model instance to convert
public static List<Region> toModels(RegionSoap[] soapModels)
soapModels
- the soap model instances to convert
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 Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<Region>
getPrimaryKeyObj
in interface RegionModel
public 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 ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Region>
getExpandoBridge
in interface RegionModel
getExpandoBridge
in class BaseModelImpl<Region>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<Region>
setExpandoBridgeAttributes
in interface RegionModel
setExpandoBridgeAttributes
in class BaseModelImpl<Region>
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 BaseModelImpl<Region>
public int compareTo(Region region)
compareTo
in interface RegionModel
compareTo
in interface Comparable<Region>
public boolean equals(Object obj)
equals
in class Object
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
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |