|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.liferay.portal.model.impl.BaseModelImpl<Region>
com.liferay.portal.model.impl.RegionModelImpl
@JSON(strict=true) 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
.
RegionImpl
,
Region
,
RegionModel
,
Serialized FormField Summary | |
---|---|
static long |
ACTIVE_COLUMN_BITMASK
|
static boolean |
COLUMN_BITMASK_ENABLED
|
static long |
COUNTRYID_COLUMN_BITMASK
|
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 long |
REGIONCODE_COLUMN_BITMASK
|
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()
Returns the active of this region. |
long |
getColumnBitmask()
|
long |
getCountryId()
Returns the country ID of this region. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
String |
getName()
Returns the name of this region. |
boolean |
getOriginalActive()
|
long |
getOriginalCountryId()
|
String |
getOriginalRegionCode()
|
long |
getPrimaryKey()
Returns the primary key of this region. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
String |
getRegionCode()
Returns the region code of this region. |
long |
getRegionId()
Returns the region ID of this region. |
int |
hashCode()
|
boolean |
isActive()
Returns true if this region is active. |
void |
resetOriginalValues()
Reset all original fields to current values. |
void |
setActive(boolean active)
Sets whether this region 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 |
setModelAttributes(Map<String,Object> attributes)
|
void |
setName(String name)
Sets the name of this region. |
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this region. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setRegionCode(String regionCode)
Sets the region code of this region. |
void |
setRegionId(long regionId)
Sets the region ID of this region. |
CacheModel<Region> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
Region |
toEscapedModel()
Returns a copy of this entity 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()
|
Region |
toUnescapedModel()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl |
---|
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, 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, 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 boolean COLUMN_BITMASK_ENABLED
public static long ACTIVE_COLUMN_BITMASK
public static long COUNTRYID_COLUMN_BITMASK
public static long REGIONCODE_COLUMN_BITMASK
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 primaryKey)
RegionModel
setPrimaryKey
in interface RegionModel
primaryKey
- the primary key of this regionpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<Region>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface RegionModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<Region>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface RegionModel
primaryKeyObj
- the primary key of this model instancepublic Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<Region>
getModelAttributes
in class BaseModelImpl<Region>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<Region>
setModelAttributes
in class BaseModelImpl<Region>
@JSON public long getRegionId()
RegionModel
getRegionId
in interface RegionModel
public void setRegionId(long regionId)
RegionModel
setRegionId
in interface RegionModel
regionId
- the region ID of this region@JSON public long getCountryId()
RegionModel
getCountryId
in interface RegionModel
public void setCountryId(long countryId)
RegionModel
setCountryId
in interface RegionModel
countryId
- the country ID of this regionpublic long getOriginalCountryId()
@JSON public 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 getOriginalRegionCode()
@JSON public String getName()
RegionModel
getName
in interface RegionModel
public void setName(String name)
RegionModel
setName
in interface RegionModel
name
- the name of this region@JSON public boolean getActive()
RegionModel
getActive
in interface RegionModel
public boolean isActive()
RegionModel
true
if this region is active.
isActive
in interface RegionModel
true
if this region is active; false
otherwisepublic void setActive(boolean active)
RegionModel
setActive
in interface RegionModel
active
- the active of this regionpublic boolean getOriginalActive()
public long getColumnBitmask()
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Region>
getExpandoBridge
in interface ClassedModel
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 contextServiceContext.getExpandoBridgeAttributes(
)
public Region toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<Region>
toEscapedModel
in interface RegionModel
toEscapedModel
in class BaseModelImpl<Region>
AutoEscapeBeanHandler
public Region toUnescapedModel()
toUnescapedModel
in interface BaseModel<Region>
toUnescapedModel
in interface RegionModel
toUnescapedModel
in class BaseModelImpl<Region>
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 void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<Region>
resetOriginalValues
in class BaseModelImpl<Region>
public CacheModel<Region> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<Region>
toCacheModel
in interface RegionModel
toCacheModel
in class BaseModelImpl<Region>
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.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |