|
Liferay 6.2-ce-ga5 | |||||||||
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<Country> com.liferay.portal.model.impl.CountryModelImpl
@JSON(strict=true) 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 FormField 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 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()
|
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 |
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 |
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 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 A2_COLUMN_BITMASK
public static long A3_COLUMN_BITMASK
public static long ACTIVE_COLUMN_BITMASK
public static 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 CountryModel
public void setPrimaryKey(long primaryKey)
CountryModel
setPrimaryKey
in interface CountryModel
primaryKey
- the primary key of this countrypublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<Country>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface CountryModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<Country>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface CountryModel
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<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 getCountryId()
CountryModel
getCountryId
in interface CountryModel
public void setCountryId(long countryId)
CountryModel
setCountryId
in interface CountryModel
countryId
- the country ID of this country@JSON public String getName()
CountryModel
getName
in interface CountryModel
public void setName(String name)
CountryModel
setName
in interface CountryModel
name
- the name of this countrypublic String getOriginalName()
@JSON public String getA2()
CountryModel
getA2
in interface CountryModel
public void setA2(String a2)
CountryModel
setA2
in interface CountryModel
a2
- the a2 of this countrypublic String getOriginalA2()
@JSON public String getA3()
CountryModel
getA3
in interface CountryModel
public void setA3(String a3)
CountryModel
setA3
in interface CountryModel
a3
- the a3 of this countrypublic String getOriginalA3()
@JSON public String getNumber()
CountryModel
getNumber
in interface CountryModel
public void setNumber(String number)
CountryModel
setNumber
in interface CountryModel
number
- the number of this country@JSON public String getIdd()
CountryModel
getIdd
in interface CountryModel
public void setIdd(String idd)
CountryModel
setIdd
in interface CountryModel
idd
- the idd of this country@JSON public boolean getZipRequired()
CountryModel
getZipRequired
in interface CountryModel
public boolean isZipRequired()
CountryModel
true
if this country is zip required.
isZipRequired
in interface CountryModel
true
if this country is zip required; false
otherwisepublic void setZipRequired(boolean zipRequired)
CountryModel
setZipRequired
in interface CountryModel
zipRequired
- the zip required of this country@JSON public boolean getActive()
CountryModel
getActive
in interface CountryModel
public boolean isActive()
CountryModel
true
if this country is active.
isActive
in interface CountryModel
true
if this country is active; false
otherwisepublic void setActive(boolean active)
CountryModel
setActive
in interface CountryModel
active
- the active of this countrypublic boolean getOriginalActive()
public long getColumnBitmask()
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Country>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface CountryModel
getExpandoBridge
in class BaseModelImpl<Country>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<Country>
setExpandoBridgeAttributes
in interface CountryModel
setExpandoBridgeAttributes
in class BaseModelImpl<Country>
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)
public Country toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<Country>
toEscapedModel
in interface CountryModel
toEscapedModel
in class BaseModelImpl<Country>
AutoEscapeBeanHandler
public Object clone()
BaseModel
clone
in interface BaseModel<Country>
clone
in interface CountryModel
clone
in class BaseModelImpl<Country>
public int compareTo(Country country)
compareTo
in interface CountryModel
compareTo
in interface Comparable<Country>
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in interface CountryModel
hashCode
in class Object
public 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 CountryModel
toCacheModel
in class BaseModelImpl<Country>
public String toString()
toString
in interface CountryModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<Country>
toXmlString
in interface CountryModel
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |