com.konakart.app
Class Country

java.lang.Object
  extended by com.konakart.app.Country
All Implemented Interfaces:
CountryIf

public class Country
extends java.lang.Object
implements CountryIf

The Country object


Constructor Summary
Country()
          Constructor
Country(com.workingdogs.village.Record vr, org.apache.torque.util.Criteria c)
          Instantiates the attributes of the Country object from a Record object
 
Method Summary
 int getAddressFormatId()
          An address format can be associated to a country so that the address of a customer can be formatted according to the rules of the country.
 int getId()
           
 java.lang.String getIsoCode2()
          Two letter ISO code.
 java.lang.String getIsoCode3()
          Three letter ISO code.
 java.lang.String getMsgCatKey()
           
 java.lang.String getName()
           
 boolean isActive()
           
 void setActive(boolean active)
           
 void setAddressFormatId(int addressFormatId)
          An address format can be associated to a country so that the address of a customer can be formatted according to the rules of the country.
 void setId(int id)
           
 void setIsoCode2(java.lang.String isoCode2)
          Two letter ISO code.
 void setIsoCode3(java.lang.String isoCode3)
          Three letter ISO code.
 void setMsgCatKey(java.lang.String msgCatKey)
           
 void setName(java.lang.String name)
           
 java.lang.String toString()
           
 java.lang.String toStringBrief()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Country

public Country()
Constructor


Country

public Country(com.workingdogs.village.Record vr,
               org.apache.torque.util.Criteria c)
        throws com.workingdogs.village.DataSetException
Instantiates the attributes of the Country object from a Record object

Parameters:
vr - Record containing data
c - Criteria containing column names
Throws:
com.workingdogs.village.DataSetException
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
Returns a string containing the attributes of the Country object.

toStringBrief

public java.lang.String toStringBrief()
Returns:
Returns a string containing selected attributes of the Country object.

getAddressFormatId

public int getAddressFormatId()
Description copied from interface: CountryIf
An address format can be associated to a country so that the address of a customer can be formatted according to the rules of the country.

Specified by:
getAddressFormatId in interface CountryIf
Returns:
Returns the addressFormatId.

setAddressFormatId

public void setAddressFormatId(int addressFormatId)
Description copied from interface: CountryIf
An address format can be associated to a country so that the address of a customer can be formatted according to the rules of the country.

Specified by:
setAddressFormatId in interface CountryIf
Parameters:
addressFormatId - The addressFormatId to set.

getId

public int getId()
Specified by:
getId in interface CountryIf
Returns:
Returns the id.

setId

public void setId(int id)
Specified by:
setId in interface CountryIf
Parameters:
id - The id to set.

getIsoCode2

public java.lang.String getIsoCode2()
Description copied from interface: CountryIf
Two letter ISO code. e.g. US or GB

Specified by:
getIsoCode2 in interface CountryIf
Returns:
Returns the isoCode2.

setIsoCode2

public void setIsoCode2(java.lang.String isoCode2)
Description copied from interface: CountryIf
Two letter ISO code. e.g. US or GB

Specified by:
setIsoCode2 in interface CountryIf
Parameters:
isoCode2 - The isoCode2 to set.

getIsoCode3

public java.lang.String getIsoCode3()
Description copied from interface: CountryIf
Three letter ISO code. e.g. USA or GBR

Specified by:
getIsoCode3 in interface CountryIf
Returns:
Returns the isoCode3.

setIsoCode3

public void setIsoCode3(java.lang.String isoCode3)
Description copied from interface: CountryIf
Three letter ISO code. e.g. USA or GBR

Specified by:
setIsoCode3 in interface CountryIf
Parameters:
isoCode3 - The isoCode3 to set.

getName

public java.lang.String getName()
Specified by:
getName in interface CountryIf
Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Specified by:
setName in interface CountryIf
Parameters:
name - The name to set.

getMsgCatKey

public java.lang.String getMsgCatKey()
Specified by:
getMsgCatKey in interface CountryIf
Returns:
the msgCatKey

setMsgCatKey

public void setMsgCatKey(java.lang.String msgCatKey)
Specified by:
setMsgCatKey in interface CountryIf
Parameters:
msgCatKey - the msgCatKey to set

isActive

public boolean isActive()
Returns:
the active

setActive

public void setActive(boolean active)
Parameters:
active - the active to set


Copyright © 2011 DS Data Systems UK Ltd.