com.softslate.commerce.businessobjects.order
Class CountryBean

java.lang.Object
  extended by com.softslate.commerce.businessobjects.core.BaseBusinessObject
      extended by com.softslate.commerce.businessobjects.order.CountryBean
All Implemented Interfaces:
BusinessObject, Country, java.io.Serializable

public class CountryBean
extends BaseBusinessObject
implements Country, java.io.Serializable

Object representing a country within the system. CountryBean is the default implementation of the Country interface for the application.

The database stores countries in the sscCountry table, and this interface can be used to represent a single row of that table. The Hibernate configuration file CountryBean.hbm.xml maps that table's columns to the properties in this object.

Author:
David Tobey
See Also:
Serialized Form

Field Summary
private  boolean allowOtherStates
           
private  java.lang.String code
           
private  int countryID
           
private  int countryOrder
           
private  boolean isActive
           
private  java.lang.String name
           
private static long serialVersionUID
           
private  java.util.Collection states
           
 
Constructor Summary
CountryBean()
           
 
Method Summary
 boolean getAllowOtherStates()
           
 java.lang.String getCode()
           
 int getCountryID()
           
 int getCountryOrder()
           
 boolean getIsActive()
           
 java.lang.String getName()
           
 java.util.Collection getStates()
           
 void setAllowOtherStates(boolean allowOtherStates)
           
 void setCode(java.lang.String code)
           
 void setCountryID(int countryID)
           
 void setCountryOrder(int countryOrder)
           
 void setIsActive(boolean isActive)
           
 void setName(java.lang.String name)
           
 void setStates(java.util.Collection states)
           
 
Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessObject
initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

countryID

private int countryID

code

private java.lang.String code

name

private java.lang.String name

countryOrder

private int countryOrder

allowOtherStates

private boolean allowOtherStates

isActive

private boolean isActive

states

private java.util.Collection states
Constructor Detail

CountryBean

public CountryBean()
Method Detail

getAllowOtherStates

public boolean getAllowOtherStates()
Specified by:
getAllowOtherStates in interface Country

setAllowOtherStates

public void setAllowOtherStates(boolean allowOtherStates)
Specified by:
setAllowOtherStates in interface Country

getCode

public java.lang.String getCode()
Specified by:
getCode in interface Country

setCode

public void setCode(java.lang.String code)
Specified by:
setCode in interface Country

getCountryOrder

public int getCountryOrder()
Specified by:
getCountryOrder in interface Country

setCountryOrder

public void setCountryOrder(int countryOrder)
Specified by:
setCountryOrder in interface Country

getIsActive

public boolean getIsActive()
Specified by:
getIsActive in interface Country

setIsActive

public void setIsActive(boolean isActive)
Specified by:
setIsActive in interface Country

getName

public java.lang.String getName()
Specified by:
getName in interface Country

setName

public void setName(java.lang.String name)
Specified by:
setName in interface Country

getCountryID

public int getCountryID()
Specified by:
getCountryID in interface Country

setCountryID

public void setCountryID(int countryID)
Specified by:
setCountryID in interface Country

getStates

public java.util.Collection getStates()
Specified by:
getStates in interface Country

setStates

public void setStates(java.util.Collection states)
Specified by:
setStates in interface Country


Copyright © SoftSlate, LLC 2003–2005