biz.janux.geography
Interface StateProvince

All Superinterfaces:
Persistent, Serializable

public interface StateProvince
extends Serializable, Persistent

Interface representing a State or Province; States or Provinces are defined relative to the Country that contains them, and hence are required to contain a reference to this Country

Since:
2005-10-01
Version:
$Revision: 1.4 $ - $Date: 2007-12-18 20:29:48 $
Author:
Philippe Paravicini

Field Summary
 
Fields inherited from interface org.janux.bus.persistence.Persistent
UNSAVED_ID
 
Method Summary
 String getCode()
          a Code that uniquely identifies a State or Province within a Country
 Country getCountry()
          the Country containing this State/Province, must be not null
 String getName()
          the name of the State or Province; TODO: this field should be internationalized
 Integer getSortOrder()
          implementation specific sorting order, for example to display the State/Provinces in a list or drop-down in an arbitrary order
 void setCode(String code)
           
 void setCountry(Country c)
           
 void setName(String name)
           
 void setSortOrder(Integer i)
           
 
Methods inherited from interface org.janux.bus.persistence.Persistent
getId, setId
 

Method Detail

getCode

String getCode()
a Code that uniquely identifies a State or Province within a Country


setCode

void setCode(String code)

getName

String getName()
the name of the State or Province; TODO: this field should be internationalized


setName

void setName(String name)

getCountry

Country getCountry()
the Country containing this State/Province, must be not null


setCountry

void setCountry(Country c)

getSortOrder

Integer getSortOrder()
implementation specific sorting order, for example to display the State/Provinces in a list or drop-down in an arbitrary order


setSortOrder

void setSortOrder(Integer i)


Copyright © 2005-2013 Janux. All Rights Reserved.