|
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<Country> com.liferay.portal.model.impl.CountryModelImpl
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
.
Never modify or reference this class directly. All methods that expect a country model instance should use the Country
interface instead.
CountryImpl
,
Country
,
CountryModel
,
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 | |
---|---|
CountryModelImpl()
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(Country country)
|
boolean |
equals(Object obj)
|
String |
getA2()
Gets the a2 of this country. |
String |
getA3()
Gets the a3 of this country. |
boolean |
getActive()
Gets the active of this country. |
long |
getCountryId()
Gets the country id of this country. |
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
String |
getIdd()
Gets the idd of this country. |
String |
getName()
Gets the name of this country. |
String |
getNumber()
Gets the number of this country. |
String |
getOriginalA2()
|
String |
getOriginalA3()
|
String |
getOriginalName()
|
long |
getPrimaryKey()
Gets the primary key of this country. |
Serializable |
getPrimaryKeyObj()
Gets the primary key of this model instance. |
int |
hashCode()
|
boolean |
isActive()
Determines whether this country is active. |
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 {$entity.humanName} 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 |
setName(String name)
Sets the name of this country. |
void |
setNumber(String number)
Sets the number of this country. |
void |
setPrimaryKey(long pk)
Sets the primary key of this country |
Country |
toEscapedModel()
Gets a copy of this country 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()
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.CountryModel |
---|
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 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 pk)
CountryModel
setPrimaryKey
in interface CountryModel
pk
- the primary key of this countrypublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<Country>
getPrimaryKeyObj
in interface CountryModel
public long getCountryId()
CountryModel
getCountryId
in interface CountryModel
public void setCountryId(long countryId)
CountryModel
setCountryId
in interface CountryModel
countryId
- the country id of this countrypublic 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()
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()
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()
public String getNumber()
CountryModel
getNumber
in interface CountryModel
public void setNumber(String number)
CountryModel
setNumber
in interface CountryModel
number
- the number of this countrypublic String getIdd()
CountryModel
getIdd
in interface CountryModel
public void setIdd(String idd)
CountryModel
setIdd
in interface CountryModel
idd
- the idd of this countrypublic boolean getActive()
CountryModel
getActive
in interface CountryModel
public boolean isActive()
CountryModel
isActive
in interface CountryModel
public void setActive(boolean active)
CountryModel
setActive
in interface CountryModel
active
- the active of this countrypublic Country toEscapedModel()
CountryModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface CountryModel
AutoEscapeBeanHandler
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Country>
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 retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)
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 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.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |