|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.electricvine.App
The App object offers zip code functionality such as:
Field Summary | |
protected java.sql.Connection |
m_oConn
|
Constructor Summary | |
App()
|
|
App(java.sql.Connection oConn)
|
|
App(DataSource oDataSource)
|
Method Summary | |
boolean |
CalcDistanceBetweenZips(java.lang.String sZip1,
java.lang.String sZip2,
org.omg.CORBA.IntHolder nDistance)
Calculates the distance between two specified zip codes. |
boolean |
CityFromZip(java.lang.String sZipCode,
org.omg.CORBA.StringHolder sCity)
Finds the city for a specified zip code. |
boolean |
CityStateFromZip(java.lang.String sZipCode,
org.omg.CORBA.StringHolder sCity,
org.omg.CORBA.StringHolder sState)
Finds state and city for specified zip code. |
void |
finish()
Cleans up any existing database connections Must be called before destroying the App object. |
DataSource |
getDataSource()
Used to return datasource |
static java.lang.String |
getLicenseFilePath()
Returns the path where the license file is located |
boolean |
GetNeighborZips(java.lang.String sZipCode,
int nRadius,
java.util.Vector vZipCodes)
Used to obtain a list of zip codes within a specified radius of a zip code. |
boolean |
GetZipCoordinates(java.lang.String sZipCode,
org.omg.CORBA.DoubleHolder dLat,
org.omg.CORBA.DoubleHolder dLon)
Gets latitude and longitude for a specified zip code. |
static boolean |
IsValidLicense()
Check if JavaBullseye license is valid. |
void |
setDataSource(DataSource oDataSource)
Used to specify datasource used by various ZipCode functions |
static void |
setLicenseFilePath(java.lang.String sLicenseFilePath)
Used to specify path where license file is located |
boolean |
StateFromZip(java.lang.String sZipCode,
org.omg.CORBA.StringHolder sState)
Finds the state for a specified zip code. |
boolean |
ValidateZip(java.lang.String sZipCode,
org.omg.CORBA.BooleanHolder bIsValid)
Determines if a specified zip code is valid. |
boolean |
ValidateZip(java.lang.String sZipCode,
java.lang.String sCountry,
org.omg.CORBA.BooleanHolder bIsValid)
Determines if a specified zip code is valid. |
boolean |
ZipsFromCity(java.lang.String sCity,
java.lang.String sState,
java.util.Vector vZipCodes)
Finds all zip codes for a specified city and state. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.sql.Connection m_oConn
Constructor Detail |
public App()
public App(DataSource oDataSource)
public App(java.sql.Connection oConn)
Method Detail |
public static java.lang.String getLicenseFilePath()
public static void setLicenseFilePath(java.lang.String sLicenseFilePath)
sLicenseFilePath
- String path where license file is locatedpublic DataSource getDataSource()
public void setDataSource(DataSource oDataSource)
oDataSource
- Specified DataSourcepublic static boolean IsValidLicense()
public boolean ValidateZip(java.lang.String sZipCode, org.omg.CORBA.BooleanHolder bIsValid)
sZipCode
- Specified Zip Codepublic boolean ValidateZip(java.lang.String sZipCode, java.lang.String sCountry, org.omg.CORBA.BooleanHolder bIsValid)
sZipCode
- Specified Zip CodesCountry
- Optional parameter if using JavaBullseye with multiple countriespublic boolean GetZipCoordinates(java.lang.String sZipCode, org.omg.CORBA.DoubleHolder dLat, org.omg.CORBA.DoubleHolder dLon)
sZipCode
- Specified Zip Codepublic boolean CalcDistanceBetweenZips(java.lang.String sZip1, java.lang.String sZip2, org.omg.CORBA.IntHolder nDistance)
sZip1
- First specified zip codesZip2
- Second specified zip codepublic boolean CityFromZip(java.lang.String sZipCode, org.omg.CORBA.StringHolder sCity)
sZipCode
- Specified zip codepublic boolean StateFromZip(java.lang.String sZipCode, org.omg.CORBA.StringHolder sState)
sZipCode
- Specified Zip Codepublic boolean CityStateFromZip(java.lang.String sZipCode, org.omg.CORBA.StringHolder sCity, org.omg.CORBA.StringHolder sState)
sZipCode
- Specified zip codepublic boolean ZipsFromCity(java.lang.String sCity, java.lang.String sState, java.util.Vector vZipCodes)
sCity
- Specified city namevZipCodes
- Returned vector of zip codespublic boolean GetNeighborZips(java.lang.String sZipCode, int nRadius, java.util.Vector vZipCodes)
sZipCode
- Specified zip codenRadius
- Specified radiusvZipCodes
- Returned vector of zip codespublic void finish()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |