com.konakartadmin.app
Class AdminZone

java.lang.Object
  extended by com.konakartadmin.app.AdminZone
All Implemented Interfaces:
AdminObjectIf

public class AdminZone
extends java.lang.Object
implements AdminObjectIf

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


Field Summary
private  java.lang.String custom1
          The value for the custom1 field
private  java.lang.String custom2
          The value for the custom2 field
private  java.lang.String custom3
          The value for the custom3 field
private  java.lang.String zoneCode
          The zoneCode field
private  java.lang.String zoneCountryCatKey
          The zoneCountryCatKey field - not in the d/b
private  int zoneCountryId
          The zoneCountryId field
private  java.lang.String zoneCountryName
          The zoneCountryName field - not in the d/b
private  int zoneId
          The zoneId field
private  boolean zoneInvisible
          The value for the invisible field
private  java.lang.String zoneName
          The zoneName field
private  java.lang.String zoneSearch
          The value for the search field
 
Constructor Summary
AdminZone()
          Constructor
AdminZone(com.workingdogs.village.Record vr, org.apache.torque.util.Criteria c)
          Instantiates the attributes of the AdminZone object from a Record object
 
Method Summary
 java.lang.String getCustom1()
           
 java.lang.String getCustom2()
           
 java.lang.String getCustom3()
           
 int getId()
           
 java.lang.String getZoneCode()
          Get the ZoneCode
 java.lang.String getZoneCountryCatKey()
           
 int getZoneCountryId()
          Get the ZoneCountryId
 java.lang.String getZoneCountryName()
           
 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 setId(int id)
          Set the zoneId to id
 void setZoneCode(java.lang.String zoneCode)
          Set the value of zoneCode
 void setZoneCountryCatKey(java.lang.String zoneCountryCatKey)
           
 void setZoneCountryId(int zoneCountryId)
          Set the value of zoneCountryId
 void setZoneCountryName(java.lang.String zoneCountryName)
           
 void setZoneId(int zoneId)
          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 zoneName)
          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
 

Field Detail

zoneId

private int zoneId
The zoneId field


zoneCountryId

private int zoneCountryId
The zoneCountryId field


zoneCode

private java.lang.String zoneCode
The zoneCode field


zoneName

private java.lang.String zoneName
The zoneName field


zoneCountryName

private java.lang.String zoneCountryName
The zoneCountryName field - not in the d/b


zoneCountryCatKey

private java.lang.String zoneCountryCatKey
The zoneCountryCatKey field - not in the d/b


zoneInvisible

private boolean zoneInvisible
The value for the invisible field


zoneSearch

private java.lang.String zoneSearch
The value for the search field


custom1

private java.lang.String custom1
The value for the custom1 field


custom2

private java.lang.String custom2
The value for the custom2 field


custom3

private java.lang.String custom3
The value for the custom3 field

Constructor Detail

AdminZone

public AdminZone()
Constructor


AdminZone

public AdminZone(com.workingdogs.village.Record vr,
                 org.apache.torque.util.Criteria c)
          throws com.workingdogs.village.DataSetException
Instantiates the attributes of the AdminZone 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()
Specified by:
toString in interface AdminObjectIf
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

Returns:
int

setZoneId

public void setZoneId(int zoneId)
Set the value of zoneId

Parameters:
zoneId - new value

getZoneCountryId

public int getZoneCountryId()
Get the ZoneCountryId

Returns:
int

setZoneCountryId

public void setZoneCountryId(int zoneCountryId)
Set the value of zoneCountryId

Parameters:
zoneCountryId - new value

getZoneCode

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

Returns:
String

setZoneCode

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

Parameters:
zoneCode - new value

getZoneName

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

Returns:
String

setZoneName

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

Parameters:
zoneName - new value

getZoneCountryName

public java.lang.String getZoneCountryName()
Returns:
Returns the zoneCountryName.

setZoneCountryName

public void setZoneCountryName(java.lang.String zoneCountryName)
Parameters:
zoneCountryName - The zoneCountryName to set.

getId

public int getId()
Specified by:
getId in interface AdminObjectIf
Returns:
Returns the id which is equal to the zoneId

setId

public void setId(int id)
Set the zoneId to id

Specified by:
setId in interface AdminObjectIf
Parameters:
id -

getCustom1

public java.lang.String getCustom1()
Returns:
the custom1

setCustom1

public void setCustom1(java.lang.String custom1)
Parameters:
custom1 - the custom1 to set

getCustom2

public java.lang.String getCustom2()
Returns:
the custom2

setCustom2

public void setCustom2(java.lang.String custom2)
Parameters:
custom2 - the custom2 to set

getCustom3

public java.lang.String getCustom3()
Returns:
the custom3

setCustom3

public void setCustom3(java.lang.String custom3)
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.

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.

Parameters:
zoneInvisible - the zoneInvisible to set

getZoneSearch

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

Returns:
the zoneSearch

setZoneSearch

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

Parameters:
zoneSearch - the zoneSearch to set

getZoneCountryCatKey

public java.lang.String getZoneCountryCatKey()
Returns:
the zoneCountryCatKey

setZoneCountryCatKey

public void setZoneCountryCatKey(java.lang.String zoneCountryCatKey)
Parameters:
zoneCountryCatKey - the zoneCountryCatKey to set


Copyright © 2011 DS Data Systems UK Ltd.