public class LocationData
extends java.lang.Object
This class needs the RecordSet to be called with the following query:
select CITY (string), STATE (string), GRAPHIC (string, url or graphic name),
LATITUDE (float), LONGITUDE (float) from LOCATION_TABLE (tablename where data
is stored)
The class is expecting the results in this order.
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
cityName |
protected java.lang.String |
graphicName |
protected float |
latitude |
protected float |
longitude |
protected java.lang.String |
queryString |
protected java.lang.String |
stateName |
Constructor and Description |
---|
LocationData(RecordSet drs) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCityName() |
java.lang.String |
getGraphicName() |
float |
getLatitude() |
float |
getLongitude() |
java.lang.String |
getQueryString() |
java.lang.String |
getStateName() |
static void |
main(java.lang.String[] args) |
void |
setQueryString(java.lang.String inQueryString) |
java.lang.String |
toString() |
protected java.lang.String cityName
protected java.lang.String stateName
protected java.lang.String graphicName
protected float latitude
protected float longitude
protected java.lang.String queryString
public LocationData(RecordSet drs) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getCityName()
public java.lang.String getStateName()
public java.lang.String getGraphicName()
public float getLatitude()
public float getLongitude()
public java.lang.String getQueryString()
public void setQueryString(java.lang.String inQueryString)
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details