Liferay 6.1.2-ce-ga3

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>, ClassedModel, CountryModel, Serializable, Cloneable, Comparable<Country>
Direct Known Subclasses:
CountryBaseImpl

@JSON(strict=true)
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.

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

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 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()
           
 Country toUnescapedModel()
           
 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, 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, 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

COLUMN_BITMASK_ENABLED

public static final boolean COLUMN_BITMASK_ENABLED

A2_COLUMN_BITMASK

public static long A2_COLUMN_BITMASK

A3_COLUMN_BITMASK

public static long A3_COLUMN_BITMASK

ACTIVE_COLUMN_BITMASK

public static long ACTIVE_COLUMN_BITMASK

NAME_COLUMN_BITMASK

public static long NAME_COLUMN_BITMASK

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
Returns the primary key of this country.

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

setPrimaryKey

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

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

getPrimaryKeyObj

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

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

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Description copied from interface: BaseModel
Sets the primary key of this model instance.

Specified by:
setPrimaryKeyObj in interface BaseModel<Country>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface CountryModel
Parameters:
primaryKeyObj - the primary key of this model instance

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface BaseModel<Country>
Overrides:
getModelAttributes in class BaseModelImpl<Country>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<Country>
Overrides:
setModelAttributes in class BaseModelImpl<Country>

getCountryId

@JSON
public long getCountryId()
Description copied from interface: CountryModel
Returns 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

@JSON
public String getName()
Description copied from interface: CountryModel
Returns 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

@JSON
public String getA2()
Description copied from interface: CountryModel
Returns 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

@JSON
public String getA3()
Description copied from interface: CountryModel
Returns 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

@JSON
public String getNumber()
Description copied from interface: CountryModel
Returns 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

@JSON
public String getIdd()
Description copied from interface: CountryModel
Returns 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

getZipRequired

@JSON
public boolean getZipRequired()
Description copied from interface: CountryModel
Returns the zip required of this country.

Specified by:
getZipRequired in interface CountryModel
Returns:
the zip required of this country

isZipRequired

public boolean isZipRequired()
Description copied from interface: CountryModel
Returns true if this country is zip required.

Specified by:
isZipRequired in interface CountryModel
Returns:
true if this country is zip required; false otherwise

setZipRequired

public void setZipRequired(boolean zipRequired)
Description copied from interface: CountryModel
Sets whether this country is zip required.

Specified by:
setZipRequired in interface CountryModel
Parameters:
zipRequired - the zip required of this country

getActive

@JSON
public boolean getActive()
Description copied from interface: CountryModel
Returns 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
Returns true if this country is active.

Specified by:
isActive in interface CountryModel
Returns:
true if this country is active; false otherwise

setActive

public void setActive(boolean active)
Description copied from interface: CountryModel
Sets whether this country is active.

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

getOriginalActive

public boolean getOriginalActive()

getColumnBitmask

public long getColumnBitmask()

getExpandoBridge

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

Specified by:
getExpandoBridge in interface BaseModel<Country>
Specified by:
getExpandoBridge in interface ClassedModel
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
See Also:
ServiceContext.getExpandoBridgeAttributes( )

toEscapedModel

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

Specified by:
toEscapedModel in interface BaseModel<Country>
Specified by:
toEscapedModel in interface CountryModel
Overrides:
toEscapedModel in class BaseModelImpl<Country>
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public Country toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<Country>
Specified by:
toUnescapedModel in interface CountryModel
Overrides:
toUnescapedModel in class BaseModelImpl<Country>

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

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<Country>
Overrides:
resetOriginalValues in class BaseModelImpl<Country>

toCacheModel

public CacheModel<Country> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface BaseModel<Country>
Specified by:
toCacheModel in interface CountryModel
Overrides:
toCacheModel in class BaseModelImpl<Country>
Returns:
the cache model 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
Returns 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.1.2-ce-ga3