gov.nih.nci.caarray.domain.country
Class Country

java.lang.Object
  extended by gov.nih.nci.caarray.domain.AbstractCaArrayObject
      extended by gov.nih.nci.caarray.domain.AbstractCaArrayEntity
          extended by gov.nih.nci.caarray.domain.country.Country
All Implemented Interfaces:
com.fiveamsolutions.nci.commons.data.persistent.PersistentObject, java.io.Serializable, java.lang.Comparable<Country>

public class Country
extends AbstractCaArrayEntity
implements java.lang.Comparable<Country>

Author:
John Hedden
See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayEntity
CAARRAY_LSID_AUTHORITY, CAARRAY_LSID_NAMESPACE
 
Fields inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayObject
DEFAULT_BATCH_SIZE, DEFAULT_STRING_COLUMN_SIZE, LARGE_TEXT_FIELD_LENGTH
 
Constructor Summary
Country()
           
 
Method Summary
 int compareTo(Country o)
          Compares countries by name, putting a preferred country ahead of all others.
 java.lang.String getCode()
           
 java.lang.String getIso3()
           
 java.lang.String getName()
           
 java.lang.String getNumcode()
           
 java.lang.String getPrintableName()
           
 void setCode(java.lang.String code)
           
 void setIso3(java.lang.String iso3)
           
 void setName(java.lang.String name)
           
 void setNumcode(java.lang.String numcode)
           
 void setPrintableName(java.lang.String printableName)
           
 
Methods inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayEntity
getLsid, getLsidAuthority, getLsidNamespace, getLsidObjectId, setLsid, setLsid, setLsidForEntity
 
Methods inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayObject
equals, getCaBigId, getId, getPostLoadSecurityPolicies, getRemoteApiSecurityPolicies, hashCode, setCaBigId, setId, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Country

public Country()
Method Detail

getCode

public java.lang.String getCode()
Returns:
the code

setCode

public void setCode(java.lang.String code)
Parameters:
code - the code to set

getName

public java.lang.String getName()
Returns:
the name

setName

public void setName(java.lang.String name)
Parameters:
name - the name to set

getPrintableName

public java.lang.String getPrintableName()
Returns:
the printable_name

setPrintableName

public void setPrintableName(java.lang.String printableName)
Parameters:
printableName - the printable_name to set

getIso3

public java.lang.String getIso3()
Returns:
the iso3

setIso3

public void setIso3(java.lang.String iso3)
Parameters:
iso3 - the iso3 to set

getNumcode

public java.lang.String getNumcode()
Returns:
the numcode

setNumcode

public void setNumcode(java.lang.String numcode)
Parameters:
numcode - the numcode to set

compareTo

public int compareTo(Country o)
Compares countries by name, putting a preferred country ahead of all others.

Specified by:
compareTo in interface java.lang.Comparable<Country>
Parameters:
o - other country to compare to
Returns:
result of comparison