|
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<Country>
com.liferay.portal.model.impl.CountryModelImpl
@JSON(strict=true) @ProviderType public class CountryModelImpl
The base model implementation for the Country service. Represents a row in the "Country" database table, with each column mapped to a property of this class.
This implementation and its corresponding interface CountryModel exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in CountryImpl.
CountryImpl,
Country,
CountryModel,
Serialized Form| Field Summary | |
|---|---|
static long |
A2_COLUMN_BITMASK
|
static long |
A3_COLUMN_BITMASK
|
static long |
ACTIVE_COLUMN_BITMASK
|
static boolean |
COLUMN_BITMASK_ENABLED
|
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 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 | |
|---|---|
CountryModelImpl()
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(Country country)
|
boolean |
equals(Object obj)
|
String |
getA2()
Returns the a2 of this country. |
String |
getA3()
Returns the a3 of this country. |
boolean |
getActive()
Returns the active of this country. |
long |
getColumnBitmask()
|
long |
getCountryId()
Returns the country ID of this country. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
String |
getIdd()
Returns the idd of this country. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
long |
getMvccVersion()
Returns the mvcc version of this country. |
String |
getName()
Returns the name of this country. |
String |
getNumber()
Returns the number of this country. |
String |
getOriginalA2()
|
String |
getOriginalA3()
|
boolean |
getOriginalActive()
|
String |
getOriginalName()
|
long |
getPrimaryKey()
Returns the primary key of this country. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
boolean |
getZipRequired()
Returns the zip required of this country. |
int |
hashCode()
|
boolean |
isActive()
Returns true if this country 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. |
boolean |
isZipRequired()
Returns true if this country is zip required. |
void |
resetOriginalValues()
Reset all original fields to current values. |
void |
setA2(String a2)
Sets the a2 of this country. |
void |
setA3(String a3)
Sets the a3 of this country. |
void |
setActive(boolean active)
Sets whether this country is active. |
void |
setCountryId(long countryId)
Sets the country ID of this country. |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the attributes stored in the service context. |
void |
setIdd(String idd)
Sets the idd of this country. |
void |
setModelAttributes(Map<String,Object> attributes)
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this country. |
void |
setName(String name)
Sets the name of this country. |
void |
setNumber(String number)
Sets the number of this country. |
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this country. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setZipRequired(boolean zipRequired)
Sets whether this country is zip required. |
CacheModel<Country> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
Country |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler. |
static Country |
toModel(CountrySoap soapModel)
Converts the soap model instance into a normal model instance. |
static List<Country> |
toModels(CountrySoap[] 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.CountryModel |
|---|
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 A2_COLUMN_BITMASK
public static final long A3_COLUMN_BITMASK
public static final long ACTIVE_COLUMN_BITMASK
public static final long NAME_COLUMN_BITMASK
public static final long LOCK_EXPIRATION_TIME
| Constructor Detail |
|---|
public CountryModelImpl()
| Method Detail |
|---|
public static Country toModel(CountrySoap soapModel)
soapModel - the soap model instance to convert
public static List<Country> toModels(CountrySoap[] soapModels)
soapModels - the soap model instances to convert
public long getPrimaryKey()
CountryModel
getPrimaryKey in interface CountryModelpublic void setPrimaryKey(long primaryKey)
CountryModel
setPrimaryKey in interface CountryModelprimaryKey - the primary key of this countrypublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<Country>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface CountryModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<Country>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface CountryModelprimaryKeyObj - 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<Country>getModelAttributes in class BaseModelImpl<Country>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<Country>setModelAttributes in class BaseModelImpl<Country>@JSON public long getMvccVersion()
CountryModel
getMvccVersion in interface CountryModelgetMvccVersion in interface MVCCModelpublic void setMvccVersion(long mvccVersion)
CountryModel
setMvccVersion in interface CountryModelsetMvccVersion in interface MVCCModelmvccVersion - the mvcc version of this country@JSON public long getCountryId()
CountryModel
getCountryId in interface CountryModelpublic void setCountryId(long countryId)
CountryModel
setCountryId in interface CountryModelcountryId - the country ID of this country@JSON public String getName()
CountryModel
getName in interface CountryModelpublic void setName(String name)
CountryModel
setName in interface CountryModelname - the name of this countrypublic String getOriginalName()
@JSON public String getA2()
CountryModel
getA2 in interface CountryModelpublic void setA2(String a2)
CountryModel
setA2 in interface CountryModela2 - the a2 of this countrypublic String getOriginalA2()
@JSON public String getA3()
CountryModel
getA3 in interface CountryModelpublic void setA3(String a3)
CountryModel
setA3 in interface CountryModela3 - the a3 of this countrypublic String getOriginalA3()
@JSON public String getNumber()
CountryModel
getNumber in interface CountryModelpublic void setNumber(String number)
CountryModel
setNumber in interface CountryModelnumber - the number of this country@JSON public String getIdd()
CountryModel
getIdd in interface CountryModelpublic void setIdd(String idd)
CountryModel
setIdd in interface CountryModelidd - the idd of this country@JSON public boolean getZipRequired()
CountryModel
getZipRequired in interface CountryModelpublic boolean isZipRequired()
CountryModeltrue if this country is zip required.
isZipRequired in interface CountryModeltrue if this country is zip required; false otherwisepublic void setZipRequired(boolean zipRequired)
CountryModel
setZipRequired in interface CountryModelzipRequired - the zip required of this country@JSON public boolean getActive()
CountryModel
getActive in interface CountryModelpublic boolean isActive()
CountryModeltrue if this country is active.
isActive in interface CountryModeltrue if this country is active; false otherwisepublic void setActive(boolean active)
CountryModel
setActive in interface CountryModelactive - the active of this countrypublic boolean getOriginalActive()
public long getColumnBitmask()
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<Country>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface CountryModelgetExpandoBridge in class BaseModelImpl<Country>public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<Country>setExpandoBridgeAttributes in interface CountryModelsetExpandoBridgeAttributes in class BaseModelImpl<Country>serviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes()public Country toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<Country>toEscapedModel in interface CountryModeltoEscapedModel in class BaseModelImpl<Country>AutoEscapeBeanHandlerpublic Object clone()
BaseModel
clone in interface BaseModel<Country>clone in interface CountryModelclone in class BaseModelImpl<Country>public int compareTo(Country country)
compareTo in interface CountryModelcompareTo in interface Comparable<Country>public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in interface CountryModelhashCode in class Objectpublic boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.
isEntityCacheEnabled in interface BaseModel<Country>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<Country>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<Country>resetOriginalValues in class BaseModelImpl<Country>public CacheModel<Country> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<Country>toCacheModel in interface CountryModeltoCacheModel in class BaseModelImpl<Country>public String toString()
toString in interface CountryModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<Country>toXmlString in interface CountryModel
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||