org.scubatoolkit
Class Country

java.lang.Object
  |
  +--org.scubatoolkit.Country

public class Country
extends java.lang.Object


Field Summary
private  int countryID
           
private  java.lang.String name
           
 
Constructor Summary
Country()
           
 
Method Summary
private  int createCountry()
           
static java.util.Vector getCountries()
           
 int getCountryID()
           
 java.lang.String getName()
           
static Country loadCountry(int ID)
           
static void remove(Country country)
           
 int save()
           
 void setCountryID(int ID)
           
 void setName(java.lang.String n)
           
 java.lang.String toString()
           
private  int updateCountry()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

countryID

private int countryID

name

private java.lang.String name
Constructor Detail

Country

public Country()
Method Detail

getCountries

public static java.util.Vector getCountries()
                                     throws java.lang.ClassNotFoundException,
                                            java.sql.SQLException
java.lang.ClassNotFoundException
java.sql.SQLException

loadCountry

public static Country loadCountry(int ID)
                           throws java.lang.ClassNotFoundException,
                                  java.sql.SQLException
java.lang.ClassNotFoundException
java.sql.SQLException

remove

public static void remove(Country country)
                   throws java.lang.ClassNotFoundException,
                          java.sql.SQLException
java.lang.ClassNotFoundException
java.sql.SQLException

createCountry

private int createCountry()
                   throws java.lang.ClassNotFoundException,
                          java.sql.SQLException
java.lang.ClassNotFoundException
java.sql.SQLException

getCountryID

public int getCountryID()

getName

public java.lang.String getName()

save

public int save()
         throws java.lang.ClassNotFoundException,
                java.sql.SQLException
java.lang.ClassNotFoundException
java.sql.SQLException

setCountryID

public void setCountryID(int ID)

setName

public void setName(java.lang.String n)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

updateCountry

private int updateCountry()
                   throws java.lang.ClassNotFoundException,
                          java.sql.SQLException
java.lang.ClassNotFoundException
java.sql.SQLException


Copyright © 2002 The Scuba Toolkit Team. All Rights Reserved.