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 zoneCode
          The zoneCode field
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  java.lang.String zoneName
          The zoneName 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
 int getId()
           
 java.lang.String getZoneCode()
          Get the ZoneCode
 int getZoneCountryId()
          Get the ZoneCountryId
 java.lang.String getZoneCountryName()
           
 int getZoneId()
          Get the ZoneId
 java.lang.String getZoneName()
          Get the ZoneName
 void setId(int id)
          Set the zoneId to id
 void setZoneCode(java.lang.String v)
          Set the value of ZoneCode
 void setZoneCountryId(int v)
          Set the value of ZoneCountryId
 void setZoneCountryName(java.lang.String zoneCountryName)
           
 void setZoneId(int v)
          Set the value of ZoneId
 void setZoneName(java.lang.String v)
          Set the value of ZoneName
 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

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

getZoneId

public int getZoneId()
Get the ZoneId

Returns:
int

setZoneId

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

Parameters:
v - new value

getZoneCountryId

public int getZoneCountryId()
Get the ZoneCountryId

Returns:
int

setZoneCountryId

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

Parameters:
v - new value

getZoneCode

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

Returns:
String

setZoneCode

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

Parameters:
v - new value

getZoneName

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

Returns:
String

setZoneName

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

Parameters:
v - new value

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.

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 -


Copyright © 2006 DS Data Systems UK Ltd.