|
Liferay 7.0-ce-b4 | |||||||||
| 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) @ProviderType 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 Form| Field 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 long |
NAME_COLUMN_BITMASK
|
static String |
ORDER_BY_JPQL
|
static String |
ORDER_BY_SQL
|
static long |
REGIONCODE_COLUMN_BITMASK
|
static String |
SESSION_FACTORY
|
static Object[][] |
TABLE_COLUMNS
|
static Map<String,Integer> |
TABLE_COLUMNS_MAP
|
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()
|
long |
getMvccVersion()
Returns the mvcc version of this region. |
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. |
boolean |
isEntityCacheEnabled()
Returns true if this model's entity cache is enabled. |
boolean |
isFinderCacheEnabled()
Returns true if this model's finder cache is enabled. |
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 |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this region. |
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()
|
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, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel |
| 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, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel |
| Field Detail |
|---|
public static final String TABLE_NAME
public static final Object[][] TABLE_COLUMNS
public static final Map<String,Integer> TABLE_COLUMNS_MAP
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 final long ACTIVE_COLUMN_BITMASK
public static final long COUNTRYID_COLUMN_BITMASK
public static final long REGIONCODE_COLUMN_BITMASK
public static final long NAME_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 RegionModelpublic void setPrimaryKey(long primaryKey)
RegionModel
setPrimaryKey in interface RegionModelprimaryKey - the primary key of this regionpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<Region>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface RegionModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<Region>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface RegionModelprimaryKeyObj - the primary key of this model instancepublic Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic 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 getMvccVersion()
RegionModel
getMvccVersion in interface MVCCModelgetMvccVersion in interface RegionModelpublic void setMvccVersion(long mvccVersion)
RegionModel
setMvccVersion in interface MVCCModelsetMvccVersion in interface RegionModelmvccVersion - the mvcc version of this region@JSON public long getRegionId()
RegionModel
getRegionId in interface RegionModelpublic void setRegionId(long regionId)
RegionModel
setRegionId in interface RegionModelregionId - the region ID of this region@JSON public long getCountryId()
RegionModel
getCountryId in interface RegionModelpublic void setCountryId(long countryId)
RegionModel
setCountryId in interface RegionModelcountryId - the country ID of this regionpublic long getOriginalCountryId()
@JSON public String getRegionCode()
RegionModel
getRegionCode in interface RegionModelpublic void setRegionCode(String regionCode)
RegionModel
setRegionCode in interface RegionModelregionCode - the region code of this regionpublic String getOriginalRegionCode()
@JSON public String getName()
RegionModel
getName in interface RegionModelpublic void setName(String name)
RegionModel
setName in interface RegionModelname - the name of this region@JSON public boolean getActive()
RegionModel
getActive in interface RegionModelpublic boolean isActive()
RegionModeltrue if this region is active.
isActive in interface RegionModeltrue if this region is active; false otherwisepublic void setActive(boolean active)
RegionModel
setActive in interface RegionModelactive - the active of this regionpublic boolean getOriginalActive()
public long getColumnBitmask()
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<Region>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface RegionModelgetExpandoBridge in class BaseModelImpl<Region>public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<Region>setExpandoBridgeAttributes in interface RegionModelsetExpandoBridgeAttributes in class BaseModelImpl<Region>serviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes()public Region toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<Region>toEscapedModel in interface RegionModeltoEscapedModel in class BaseModelImpl<Region>AutoEscapeBeanHandlerpublic Object clone()
BaseModel
clone in interface BaseModel<Region>clone in interface RegionModelclone in class BaseModelImpl<Region>public int compareTo(Region region)
compareTo in interface RegionModelcompareTo in interface Comparable<Region>public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in interface RegionModelhashCode in class Objectpublic boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.
isEntityCacheEnabled in interface BaseModel<Region>true if this model's entity cache is enabled;
false otherwisepublic boolean isFinderCacheEnabled()
BaseModeltrue if this model's finder cache is enabled.
isFinderCacheEnabled in interface BaseModel<Region>true if this model's finder cache is enabled;
false otherwisepublic 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 RegionModeltoCacheModel in class BaseModelImpl<Region>public String toString()
toString in interface RegionModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<Region>toXmlString in interface RegionModel
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||