com.konakart.app
Class Zone

java.lang.Object
  extended by com.konakart.app.Zone
All Implemented Interfaces:
ZoneIf

public class Zone
extends java.lang.Object
implements ZoneIf

This is the Zone class - it has zoneId, countryId, code and name. Each country can have one or more zones.


Constructor Summary
Zone()
          Constructor
Zone(com.workingdogs.village.Record vr, org.apache.torque.util.Criteria c)
          Instantiates the attributes of the Country object from a Record object
 
Method Summary
 java.lang.String getCustom1()
           
 java.lang.String getCustom2()
           
 java.lang.String getCustom3()
           
 java.lang.String getZoneCode()
          Get the ZoneCode
 int getZoneCountryId()
          Get the ZoneCountryId
 int getZoneId()
          Get the ZoneId
 java.lang.String getZoneName()
          Get the ZoneName
 java.lang.String getZoneSearch()
          Used to search match a search string when searching for the zone
 boolean isZoneInvisible()
          Determines whether the zone is retrieved by API calls for being displayed in the UI for selection purposes.
 void setCustom1(java.lang.String custom1)
           
 void setCustom2(java.lang.String custom2)
           
 void setCustom3(java.lang.String custom3)
           
 void setZoneCode(java.lang.String v)
          Set the value of ZoneCode
 void setZoneCountryId(int v)
          Set the value of ZoneCountryId
 void setZoneId(int v)
          Set the value of ZoneId
 void setZoneInvisible(boolean zoneInvisible)
          Determines whether the zone is retrieved by API calls for being displayed in the UI for selection purposes.
 void setZoneName(java.lang.String v)
          Set the value of ZoneName
 void setZoneSearch(java.lang.String zoneSearch)
          Used to search match a search string when searching for the zone
 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

Zone

public Zone()
Constructor


Zone

public Zone(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.

getZoneId

public int getZoneId()
Get the ZoneId

Specified by:
getZoneId in interface ZoneIf
Returns:
int

setZoneId

public void setZoneId(int v)
Set the value of ZoneId

Specified by:
setZoneId in interface ZoneIf
Parameters:
v - new value

getZoneCountryId

public int getZoneCountryId()
Get the ZoneCountryId

Specified by:
getZoneCountryId in interface ZoneIf
Returns:
int

setZoneCountryId

public void setZoneCountryId(int v)
Set the value of ZoneCountryId

Specified by:
setZoneCountryId in interface ZoneIf
Parameters:
v - new value

getZoneCode

public java.lang.String getZoneCode()
Get the ZoneCode

Specified by:
getZoneCode in interface ZoneIf
Returns:
String

setZoneCode

public void setZoneCode(java.lang.String v)
Set the value of ZoneCode

Specified by:
setZoneCode in interface ZoneIf
Parameters:
v - new value

getZoneName

public java.lang.String getZoneName()
Get the ZoneName

Specified by:
getZoneName in interface ZoneIf
Returns:
String

setZoneName

public void setZoneName(java.lang.String v)
Set the value of ZoneName

Specified by:
setZoneName in interface ZoneIf
Parameters:
v - new value

getCustom1

public java.lang.String getCustom1()
Specified by:
getCustom1 in interface ZoneIf
Returns:
the custom1

setCustom1

public void setCustom1(java.lang.String custom1)
Specified by:
setCustom1 in interface ZoneIf
Parameters:
custom1 - the custom1 to set

getCustom2

public java.lang.String getCustom2()
Specified by:
getCustom2 in interface ZoneIf
Returns:
the custom2

setCustom2

public void setCustom2(java.lang.String custom2)
Specified by:
setCustom2 in interface ZoneIf
Parameters:
custom2 - the custom2 to set

getCustom3

public java.lang.String getCustom3()
Specified by:
getCustom3 in interface ZoneIf
Returns:
the custom3

setCustom3

public void setCustom3(java.lang.String custom3)
Specified by:
setCustom3 in interface ZoneIf
Parameters:
custom3 - the custom3 to set

isZoneInvisible

public boolean isZoneInvisible()
Determines whether the zone is retrieved by API calls for being displayed in the UI for selection purposes. For example, some US States have many zones determined by zip code or a combination of zip code and county where the tax rate is different.

Specified by:
isZoneInvisible in interface ZoneIf
Returns:
the zoneInvisible

setZoneInvisible

public void setZoneInvisible(boolean zoneInvisible)
Determines whether the zone is retrieved by API calls for being displayed in the UI for selection purposes. For example, some US States have many zones determined by zip code or a combination of zip code and county where the tax rate is different.

Specified by:
setZoneInvisible in interface ZoneIf
Parameters:
zoneInvisible - the zoneInvisible to set

getZoneSearch

public java.lang.String getZoneSearch()
Used to search match a search string when searching for the zone

Specified by:
getZoneSearch in interface ZoneIf
Returns:
the zoneSearch

setZoneSearch

public void setZoneSearch(java.lang.String zoneSearch)
Used to search match a search string when searching for the zone

Specified by:
setZoneSearch in interface ZoneIf
Parameters:
zoneSearch - the zoneSearch to set


Copyright © 2011 DS Data Systems UK Ltd.