|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.scubatoolkit.Site
Description of the Class * * @author * @version
Field Summary | |
private int |
altitude
|
private ContactInfo |
contactInfo
|
private java.lang.String |
description
|
private java.lang.String |
latitude
|
private java.lang.String |
location
|
private java.lang.String |
longitude
|
private int |
maxDepth
|
private java.lang.String |
name
|
private int |
siteID
|
private UnitsSystem |
unitsSystem
|
private WaterType |
waterType
|
Constructor Summary | |
Site()
|
Method Summary | |
private int |
createSite()
|
int |
getAltitude()
Gets the altitude attribute of the Site object * * @return The altitude value |
ContactInfo |
getContactInfo()
|
java.lang.String |
getDescription()
Gets the description attribute of the Site object * * @return The description value |
java.lang.String |
getLatitude()
Gets the latitude attribute of the Site object * * @return The latitude value |
java.lang.String |
getLocation()
Gets the location attribute of the Site object * * @return The location value |
java.lang.String |
getLongitude()
Gets the longitude attribute of the Site object * * @return The longitude value |
int |
getMaxDepth()
Gets the maxDepth attribute of the Site object * * @return The maxDepth value |
java.lang.String |
getName()
Gets the name attribute of the Site object * * @return The name value |
int |
getSiteID()
Gets the siteID attribute of the Site object * * @return The siteID value |
static java.util.Vector |
getSites()
|
UnitsSystem |
getUnitsSystem()
|
WaterType |
getWaterType()
|
static Site |
loadSite(int siteID)
|
static void |
remove(Site site)
|
int |
save()
|
void |
setAltitude(int a)
Sets the altitude attribute of the Site object * * @param a The new altitude value |
void |
setContactInfo(ContactInfo c)
Sets the countryID attribute of the Site object * * @param id The new countryID value |
void |
setDescription(java.lang.String d)
Sets the description attribute of the Site object * * @param d The new description value |
void |
setLatitude(java.lang.String l)
Sets the latitude attribute of the Site object * * @param l The new latitude value |
void |
setLocation(java.lang.String l)
Sets the location attribute of the Site object * * @param l The new location value |
void |
setLongitude(java.lang.String l)
Sets the longitude attribute of the Site object * * @param l The new longitude value |
void |
setMaxDepth(int m)
Sets the maxDepth attribute of the Site object * * @param m The new maxDepth value |
void |
setName(java.lang.String n)
Sets the name attribute of the Site object * * @param n The new name value |
void |
setSiteID(int id)
Sets the siteID attribute of the Site object * * @param id The new siteID value |
void |
setUnitsSystem(UnitsSystem units)
|
void |
setWaterType(WaterType waterType)
|
java.lang.String |
toString()
|
private int |
updateSite()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private int altitude
private ContactInfo contactInfo
private java.lang.String description
private java.lang.String latitude
private java.lang.String location
private java.lang.String longitude
private int maxDepth
private java.lang.String name
private int siteID
private UnitsSystem unitsSystem
private WaterType waterType
Constructor Detail |
public Site()
Method Detail |
public static java.util.Vector getSites() throws java.sql.SQLException, GetSitesException
java.sql.SQLException
GetSitesException
public static Site loadSite(int siteID) throws java.lang.ClassNotFoundException, java.sql.SQLException
java.lang.ClassNotFoundException
java.sql.SQLException
public static void remove(Site site) throws java.lang.ClassNotFoundException, java.sql.SQLException
java.lang.ClassNotFoundException
java.sql.SQLException
private int createSite() throws java.lang.ClassNotFoundException, java.sql.SQLException
java.lang.ClassNotFoundException
java.sql.SQLException
public int getAltitude()
public ContactInfo getContactInfo()
public java.lang.String getDescription()
public java.lang.String getLatitude()
public java.lang.String getLocation()
public java.lang.String getLongitude()
public int getMaxDepth()
public java.lang.String getName()
public int getSiteID()
public UnitsSystem getUnitsSystem()
public WaterType getWaterType()
public int save() throws java.lang.ClassNotFoundException, java.sql.SQLException
java.lang.ClassNotFoundException
java.sql.SQLException
public void setAltitude(int a)
public void setContactInfo(ContactInfo c)
public void setDescription(java.lang.String d)
public void setLatitude(java.lang.String l)
public void setLocation(java.lang.String l)
public void setLongitude(java.lang.String l)
public void setMaxDepth(int m)
public void setName(java.lang.String n)
public void setSiteID(int id)
public void setUnitsSystem(UnitsSystem units)
public void setWaterType(WaterType waterType)
public java.lang.String toString()
toString
in class java.lang.Object
private int updateSite() throws java.lang.ClassNotFoundException, java.sql.SQLException
java.lang.ClassNotFoundException
java.sql.SQLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |