2004.04.29


com.jdc.app.rdb.tbl.ref.dto
Class CountryDTO

java.lang.Object
  |
  +--com.jdc.lang.Object
        |
        +--com.jdc.rdb.tbl.dto.DataTransferObject
              |
              +--com.jdc.rdb.tbl.dto.ReferenceTableDTO
                    |
                    +--com.jdc.app.rdb.tbl.ref.dto.CountryDTO

public class CountryDTO
extends ReferenceTableDTO

The CountryDTO data transfer object represents a row from the Country table. The data contained in the Country table is derived from ISO 3166 definitions.

Version:
1.0
Author:
Jay Damon
See Also:
Country, CountryDAO

Field Summary
 
Fields inherited from class com.jdc.lang.Object
string
 
Constructor Summary
CountryDTO(int countryId, String alphaTwoCode, String alphaThreeCode, int numericThreeCode, String countryName, String longName, String shortName, String alsoKnownAs, String formerName, String remarks, String enabled, int changeDate)
          Constructs a new CountryDTO data transfer object.
 
Method Summary
 String getAlphaThreeCode()
          Returns the alpha 3 code for this country.
 String getAlphaTwoCode()
          Returns the alpha 2 code for this country.
 String getAlsoKnownAs()
          Returns the name the country is also known as, if any.
 Timestamp getChangeDate()
          Returns the ISO 3166 change date.
 String getFormerName()
          Returns the country's former name, if any.
 int getId()
          Returns the country identifier.
 String getLongName()
          Returns the country long name.
 String getName()
          Returns the country name.
 int getNumericThreeCode()
          Returns the numeric 3 code for this country.
 String getProperName()
          Returns the country proper name.
 String getRemarks()
          Returns the country remarks.
 String getShortName()
          Returns the country short name.
 boolean isEnabled()
          Returns true if this country is enabled.
 
Methods inherited from class com.jdc.rdb.tbl.dto.DataTransferObject
isFound, setFound
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountryDTO

public CountryDTO(int countryId,
                  String alphaTwoCode,
                  String alphaThreeCode,
                  int numericThreeCode,
                  String countryName,
                  String longName,
                  String shortName,
                  String alsoKnownAs,
                  String formerName,
                  String remarks,
                  String enabled,
                  int changeDate)
Constructs a new CountryDTO data transfer object.

Method Detail

getAlphaTwoCode

public String getAlphaTwoCode()
Returns the alpha 2 code for this country.

Returns:
The alpha 2 code for this country.

getAlphaThreeCode

public String getAlphaThreeCode()
Returns the alpha 3 code for this country.

Returns:
The alpha 3 code for this country.

getAlsoKnownAs

public String getAlsoKnownAs()
Returns the name the country is also known as, if any.

Returns:
The name the country is also known as.

getChangeDate

public Timestamp getChangeDate()
Returns the ISO 3166 change date.

Returns:
The ISO 3166 change date.

getFormerName

public String getFormerName()
Returns the country's former name, if any.

Returns:
The country's former name.

getId

public int getId()
Returns the country identifier.

Returns:
The country identifier.

getLongName

public String getLongName()
Returns the country long name.

Note: This field is for future use.

Returns:
The country long name.

getName

public String getName()
Returns the country name.

Returns:
The country name.

getNumericThreeCode

public int getNumericThreeCode()
Returns the numeric 3 code for this country.

Returns:
The numeric 3 code for this country.

getProperName

public String getProperName()
Returns the country proper name. This is a derived field value

Returns:
The country proper name.

getShortName

public String getShortName()
Returns the country short name.

Note: This field is for future use.

Returns:
The country short name.

getRemarks

public String getRemarks()
Returns the country remarks.

Returns:
The country remarks.

isEnabled

public boolean isEnabled()
Returns true if this country is enabled.

Returns:
True if this country is enabled.
False if this country is not enabled.

2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.