Liferay 6.0.5

com.liferay.portal.model.impl
Class CountryModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<Country>
      extended by com.liferay.portal.model.impl.CountryModelImpl
All Implemented Interfaces:
BaseModel<Country>, CountryModel, Serializable, Cloneable, Comparable<Country>
Direct Known Subclasses:
CountryImpl

public class CountryModelImpl
extends BaseModelImpl<Country>
implements CountryModel

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.

See Also:
CountryImpl, Country, CountryModel, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Field 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

TABLE_NAME

public static final String TABLE_NAME
See Also:
Constant Field Values

TABLE_COLUMNS

public static final Object[][] TABLE_COLUMNS

TABLE_SQL_CREATE

public static final String TABLE_SQL_CREATE
See Also:
Constant Field Values

TABLE_SQL_DROP

public static final String TABLE_SQL_DROP
See Also:
Constant Field Values

ORDER_BY_JPQL

public static final String ORDER_BY_JPQL
See Also:
Constant Field Values

ORDER_BY_SQL

public static final String ORDER_BY_SQL
See Also:
Constant Field Values

DATA_SOURCE

public static final String DATA_SOURCE
See Also:
Constant Field Values

SESSION_FACTORY

public static final String SESSION_FACTORY
See Also:
Constant Field Values

TX_MANAGER

public static final String TX_MANAGER
See Also:
Constant Field Values

ENTITY_CACHE_ENABLED

public static final boolean ENTITY_CACHE_ENABLED

FINDER_CACHE_ENABLED

public static final boolean FINDER_CACHE_ENABLED

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

CountryModelImpl

public CountryModelImpl()
Method Detail

toModel

public static Country toModel(CountrySoap soapModel)
Converts the soap model instance into a normal model instance.

Parameters:
soapModel - the soap model instance to convert
Returns:
the normal model instance

toModels

public static List<Country> toModels(CountrySoap[] soapModels)
Converts the soap model instances into normal model instances.

Parameters:
soapModels - the soap model instances to convert
Returns:
the normal model instances

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: CountryModel
Gets the primary key of this country.

Specified by:
getPrimaryKey in interface CountryModel
Returns:
the primary key of this country

setPrimaryKey

public void setPrimaryKey(long pk)
Description copied from interface: CountryModel
Sets the primary key of this country

Specified by:
setPrimaryKey in interface CountryModel
Parameters:
pk - the primary key of this country

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Gets the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<Country>
Specified by:
getPrimaryKeyObj in interface CountryModel
Returns:
the primary key of this model instance

getCountryId

public long getCountryId()
Description copied from interface: CountryModel
Gets the country id of this country.

Specified by:
getCountryId in interface CountryModel
Returns:
the country id of this country

setCountryId

public void setCountryId(long countryId)
Description copied from interface: CountryModel
Sets the country id of this country.

Specified by:
setCountryId in interface CountryModel
Parameters:
countryId - the country id of this country

getName

public String getName()
Description copied from interface: CountryModel
Gets the name of this country.

Specified by:
getName in interface CountryModel
Returns:
the name of this country

setName

public void setName(String name)
Description copied from interface: CountryModel
Sets the name of this country.

Specified by:
setName in interface CountryModel
Parameters:
name - the name of this country

getOriginalName

public String getOriginalName()

getA2

public String getA2()
Description copied from interface: CountryModel
Gets the a2 of this country.

Specified by:
getA2 in interface CountryModel
Returns:
the a2 of this country

setA2

public void setA2(String a2)
Description copied from interface: CountryModel
Sets the a2 of this country.

Specified by:
setA2 in interface CountryModel
Parameters:
a2 - the a2 of this country

getOriginalA2

public String getOriginalA2()

getA3

public String getA3()
Description copied from interface: CountryModel
Gets the a3 of this country.

Specified by:
getA3 in interface CountryModel
Returns:
the a3 of this country

setA3

public void setA3(String a3)
Description copied from interface: CountryModel
Sets the a3 of this country.

Specified by:
setA3 in interface CountryModel
Parameters:
a3 - the a3 of this country

getOriginalA3

public String getOriginalA3()

getNumber

public String getNumber()
Description copied from interface: CountryModel
Gets the number of this country.

Specified by:
getNumber in interface CountryModel
Returns:
the number of this country

setNumber

public void setNumber(String number)
Description copied from interface: CountryModel
Sets the number of this country.

Specified by:
setNumber in interface CountryModel
Parameters:
number - the number of this country

getIdd

public String getIdd()
Description copied from interface: CountryModel
Gets the idd of this country.

Specified by:
getIdd in interface CountryModel
Returns:
the idd of this country

setIdd

public void setIdd(String idd)
Description copied from interface: CountryModel
Sets the idd of this country.

Specified by:
setIdd in interface CountryModel
Parameters:
idd - the idd of this country

getActive

public boolean getActive()
Description copied from interface: CountryModel
Gets the active of this country.

Specified by:
getActive in interface CountryModel
Returns:
the active of this country

isActive

public boolean isActive()
Description copied from interface: CountryModel
Determines whether this country is active.

Specified by:
isActive in interface CountryModel
Returns:
whether this country is active

setActive

public void setActive(boolean active)
Description copied from interface: CountryModel
Sets whether this {$entity.humanName} is active.

Specified by:
setActive in interface CountryModel
Parameters:
active - the active of this country

toEscapedModel

public Country toEscapedModel()
Description copied from interface: CountryModel
Gets a copy of this country as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface CountryModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Gets the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<Country>
Specified by:
getExpandoBridge in interface CountryModel
Overrides:
getExpandoBridge in class BaseModelImpl<Country>
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<Country>
Specified by:
setExpandoBridgeAttributes in interface CountryModel
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<Country>
Parameters:
serviceContext - the service context to retrieve the expando bridge attributes from
See Also:
ServiceContext.getExpandoBridgeAttributes( )

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<Country>
Specified by:
clone in interface CountryModel
Specified by:
clone in class BaseModelImpl<Country>
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(Country country)
Specified by:
compareTo in interface CountryModel
Specified by:
compareTo in interface Comparable<Country>

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface CountryModel
Overrides:
hashCode in class Object

toString

public String toString()
Specified by:
toString in interface CountryModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Gets the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<Country>
Specified by:
toXmlString in interface CountryModel
Returns:
the XML representation of this model instance

Liferay 6.0.5