A C D E F G I J L M N O P R S T U V Z

A

addDealer(String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String) - Method in class com.electricvine.Db
 
addSortParameter(SortParameter) - Method in class com.electricvine.ZipSearch
 
App - class com.electricvine.App.
The App object offers zip code functionality such as: Checking if ZipCode is valid using method ValidateZip; Getting distance between 2 zipcodess using CalcDistanceBetweenZipCodes; Finding all ZipCodes in specific city using ZipsFromCity;
App() - Constructor for class com.electricvine.App
 
App(Connection) - Constructor for class com.electricvine.App
 
App(DataSource) - Constructor for class com.electricvine.App
 
ArrayPush(Object, Object) - Static method in class com.electricvine.Utils
This adds an element to an existing array, and returns a new array.
Asc - Static variable in class com.electricvine.SortOrder
 
Ascii2String(int) - Static method in class com.electricvine.Utils
Converts ascii into its string equivalent.

C

CalcDistanceBetweenZips(String, String, IntHolder) - Method in class com.electricvine.App
Calculates the distance between two specified zip codes.
ChopZero(double) - Static method in class com.electricvine.Utils
This removes any trailing decimal point followed by zero from a Double and returns it as a string.
CITY_INVALID - Static variable in class com.electricvine.ErrorCode
Invalid city name
CityFromZip(String, StringHolder) - Method in class com.electricvine.App
Finds the city for a specified zip code.
CityStateFromZip(String, StringHolder, StringHolder) - Method in class com.electricvine.App
Finds state and city for specified zip code.
Clear() - Static method in class com.electricvine.LastError
 
ClearCache() - Method in class com.electricvine.ZipSearch
Clears the company ID cache
ColumnDataType - class com.electricvine.ColumnDataType.
 
com.electricvine - package com.electricvine
 
createConnection() - Method in class com.electricvine.DataSource
 
Currency - Static variable in class com.electricvine.ColumnDataType
 

D

DataSource - class com.electricvine.DataSource.
Used for specifying properties to connect to a database.
DataSource() - Constructor for class com.electricvine.DataSource
This initializes a new instance of DataSouce class.
DateTime - Static variable in class com.electricvine.ColumnDataType
 
Db - class com.electricvine.Db.
The Db class is mainly used by Bullseye internally to access the database.
Db() - Constructor for class com.electricvine.Db
 
Db(DataSource) - Constructor for class com.electricvine.Db
 
deleteDealer(String) - Method in class com.electricvine.Db
 
Desc - Static variable in class com.electricvine.SortOrder
 

E

ENCRYPTION_ERROR - Static variable in class com.electricvine.ErrorCode
 
ErrorCode - class com.electricvine.ErrorCode.
 
ErrorCode() - Constructor for class com.electricvine.ErrorCode
 

F

finish() - Method in class com.electricvine.ZipSearch
Cleans up any existing database connections Must be called before destroying the ZipSearch object.
finish() - Method in class com.electricvine.Db
Cleans up any existing database connections Must be called before destroying the DB object.
finish() - Method in class com.electricvine.App
Cleans up any existing database connections Must be called before destroying the App object.
FROM_ZIPCODE_INVALID - Static variable in class com.electricvine.ErrorCode
 

G

getAdmin(String, String) - Method in class com.electricvine.Db
 
getCachedCompanyIDs() - Method in class com.electricvine.ZipSearch
Returns cached company IDs when Caching is turned ON.
getCity() - Method in class com.electricvine.ZipSearch
Property used to return the searched city.
getCode() - Static method in class com.electricvine.LastError
This returns the error code of last error that occurred.
getColumnDataType() - Method in class com.electricvine.SortParameter
 
getColumnName() - Method in class com.electricvine.SortParameter
 
getCompanyIDField() - Method in class com.electricvine.DataSource
This returns the set name of the company ID field in the Company table.
getCompanyIDIsString() - Method in class com.electricvine.DataSource
This returns whether the ID field of the company table is a string.
getCompanyStateField() - Method in class com.electricvine.DataSource
Returns the set name of the state field from the company table.
getCompanyTable() - Method in class com.electricvine.DataSource
This returns the name of the company table that has been set.
getCompanyZipField() - Method in class com.electricvine.DataSource
This returns the set name of the zip code field in the company table.
getConnection() - Method in class com.electricvine.DataSource
This returns the conenction that has been set or an internally created connection
getCount() - Method in class com.electricvine.ZipSearchResults
Returns number of records in DataSet.
getDataSet() - Method in class com.electricvine.ZipSearchResults
Contains records returned as a result of running ZipSearch as a vector.
example:
com.electricvine.ZipSearchResults zsr = null;
java.util.Vector results = null;
if ( submit>0 ) {
if ( zs.Run() ) {
zsr = zs.getResults();
results = zsr.getDataSet();
total = results.size();
}
else {
error = com.electricvine.LastError.getDescription();
}
}

for (int i=0; (i < offset) && (start+i < total); i++) {
row = (java.util.Hashtable) results.elementAt(i);

name = (String)row.get("name");
street1 = (String)row.get("street1");
street2 = (String)row.get("street2");
city = (String)row.get("city");
state = (String)row.get("state");
zip = (String)row.get("zip");
phone = (String)row.get("phone");
fax = (String)row.get("fax");
email = (String)row.get("email");
url = (String)row.get("url");
user1 = (String)row.get("user1");
user2 = (String)row.get("user2");
user3 = (String)row.get("user3");
distance = (String)(row.get("distance")).toString();

//Make sure distance is readable
distance = formatDistance(distance);
}
getDataSource() - Method in class com.electricvine.ZipSearch
This returns the data source object.
getDataSource() - Method in class com.electricvine.Db
 
getDataSource() - Method in class com.electricvine.App
Used to return datasource
getDealer(String) - Method in class com.electricvine.Db
 
getDescription() - Static method in class com.electricvine.LastError
Returns description of the last error that occurred.
getDriver() - Method in class com.electricvine.DataSource
 
getFilter() - Method in class com.electricvine.ZipSearch
This returns the expression used to filter which rows are returned in the result set.
getFrontEndAdmin() - Method in class com.electricvine.Db
 
getLicenseFilePath() - Static method in class com.electricvine.App
Returns the path where the license file is located
getLogTable() - Method in class com.electricvine.DataSource
This returns the name of the log table in the database.
GetNeighborZips(String, int, Vector) - Method in class com.electricvine.App
Used to obtain a list of zip codes within a specified radius of a zip code.
getNumResults() - Method in class com.electricvine.ZipSearch
Returns the number of results in the zip search result set.
getOptions() - Method in class com.electricvine.ZipSearch
The property used to access options that have been set.
getOrderBy() - Method in class com.electricvine.ZipSearch
Returns the "ORDER BY" clause that is used in the query.
getPageSize() - Method in class com.electricvine.ZipSearch
Returns the number of records that will be returned for a single page.
getPassword() - Method in class com.electricvine.ZipSearch
Returns the password.
getPassword() - Method in class com.electricvine.DataSource
This returns the password that has been set.
getRadius() - Method in class com.electricvine.ZipSearch
Property used to return the searched radius.
getResults() - Method in class com.electricvine.ZipSearch
The property used to access object of type 'ZipSearchResults' that holds records returned when executing Run method.
getSortOrder() - Method in class com.electricvine.SortParameter
 
getSortParameters() - Method in class com.electricvine.ZipSearch
Returns sort paramters array list.
getStartIndex() - Method in class com.electricvine.ZipSearch
Returns index of the first result record to return.
getStartPage() - Method in class com.electricvine.ZipSearch
Returns the start page used during paging to indicate which page to return.
getState() - Method in class com.electricvine.ZipSearch
The property used to return the searched state.
getTotalRecordsCount() - Method in class com.electricvine.ZipSearchResults
Returns total number of records that match parameters of associated ZipSearch.
getURL() - Method in class com.electricvine.DataSource
 
getUsername() - Method in class com.electricvine.ZipSearch
This returns the username.
getUsername() - Method in class com.electricvine.DataSource
Returns the user name that has been set.
getValue() - Method in class com.electricvine.SortOrder
 
getValue() - Method in class com.electricvine.ColumnDataType
 
getZipCode() - Method in class com.electricvine.ZipSearch
Property used to return the searched zip code.
getZipCodeTable() - Method in class com.electricvine.DataSource
This returns the name of the zip code table in the database.
GetZipCoordinates(String, DoubleHolder, DoubleHolder) - Method in class com.electricvine.App
Gets latitude and longitude for a specified zip code.

I

INTERNAL_ERROR - Static variable in class com.electricvine.ErrorCode
Internal Error
isInteger(String) - Static method in class com.electricvine.Utils
Tests if string contains an integer, and returns a boolean value.
IsValidLicense() - Static method in class com.electricvine.App
Check if JavaBullseye license is valid.

J

Join(String[], String) - Static method in class com.electricvine.Utils
This returns a delimited string created from an array.

L

LastError - class com.electricvine.LastError.
This is a static object that holds information about last error that occurred.
Left(String, int) - Static method in class com.electricvine.Utils
Returns part of a passed in string, by counting characters from the left side.
LICENSE_ERROR - Static variable in class com.electricvine.ErrorCode
Error from user license

M

m_oConn - Variable in class com.electricvine.App
 
m_sortParameters - Variable in class com.electricvine.ZipSearch
 

N

NOZIPS_IN_CITY - Static variable in class com.electricvine.ErrorCode
City returns no zip codes
Number - Static variable in class com.electricvine.ColumnDataType
 

O

OPT_CACHE - Static variable in class com.electricvine.ZipSearch
Turns on caching
OPT_LOG - Static variable in class com.electricvine.ZipSearch
Logs searches
OPT_PAGING - Static variable in class com.electricvine.ZipSearch
Turns paging on
OPT_RANDOMIZE - Static variable in class com.electricvine.ZipSearch
Turns on random number generator
OPT_USER_AUTHENTICATION - Static variable in class com.electricvine.ZipSearch
Require user authentication

P

PARAMETER_ERROR - Static variable in class com.electricvine.ErrorCode
Parameter Error

R

RECORD_INDEX_OUT_OF_RANGE - Static variable in class com.electricvine.ErrorCode
Record index out of range
removeAllSortParameters() - Method in class com.electricvine.ZipSearch
 
ReplaceString(String, String, String) - Static method in class com.electricvine.Utils
This replaces all occurences of a specified substring with another and returns the new string.
Right(String, int) - Static method in class com.electricvine.Utils
This returns part of a passed in string, by counting characters from the right side.
Round(double, int) - Static method in class com.electricvine.Utils
 
Run() - Method in class com.electricvine.ZipSearch
This will execute ZipSearch after setting all the required properties.
runQuery(String) - Method in class com.electricvine.Db
 

S

searchCompanies(String) - Method in class com.electricvine.Db
 
searchDealers(String, int) - Method in class com.electricvine.Db
 
setCachedCompanyIDs(String[]) - Method in class com.electricvine.ZipSearch
Used when Caching is turned ON to store cached CompanyIDs To turn on caching add OPT_CACHE to ZipSearch.Options property.
setCity(String) - Method in class com.electricvine.ZipSearch
This assigns the city name to the ZipSearch object.
setColumnDataType(ColumnDataType) - Method in class com.electricvine.SortParameter
 
setColumnName(String) - Method in class com.electricvine.SortParameter
 
setCompanyIDField(String) - Method in class com.electricvine.DataSource
This sets the name of the primary key column of the Companies table specified in 'CompanyTable' property.
setCompanyIDIsString(boolean) - Method in class com.electricvine.DataSource
This must be set to true if the ID field of the company table is a string.
setCompanyStateField(String) - Method in class com.electricvine.DataSource
This sets the name of the state field in the company table.
setCompanyTable(String) - Method in class com.electricvine.DataSource
This sets the name of the table that contains records of companies that will be returned as results of the ZipSearch.
setCompanyZipField(String) - Method in class com.electricvine.DataSource
This assigns the name of the 'Zip Code' column in the 'Companies' table specified in 'CompanyTable' property.
setConnection(Connection) - Method in class com.electricvine.DataSource
Used to Specify Connection directy.
setDataSource(DataSource) - Method in class com.electricvine.ZipSearch
Used to specify database, tables and fields used for running ZipCode search.
setDataSource(DataSource) - Method in class com.electricvine.Db
 
setDataSource(DataSource) - Method in class com.electricvine.App
Used to specify datasource used by various ZipCode functions
setDriver(String) - Method in class com.electricvine.DataSource
This sets the database driver.
setFilter(String) - Method in class com.electricvine.ZipSearch
Sets the expression used to filter which rows are returned in the result set.
setLicenseFilePath(String) - Static method in class com.electricvine.App
Used to specify path where license file is located
setLogTable(String) - Method in class com.electricvine.DataSource
This sets the name of the table that will be used for storing search statistics.
setNumResults(int) - Method in class com.electricvine.ZipSearch
Sets the number of results that will be returned in a single query.
setOptions(int) - Method in class com.electricvine.ZipSearch
The ZipSearch object allows you to set options such as whether or not to use paging or user authentication for tracking search usage You can use multiple options at the same time using OR operator.
setOrderBy(String) - Method in class com.electricvine.ZipSearch
Assigns the "ORDER BY" clause that is used in the query.
setPageSize(int) - Method in class com.electricvine.ZipSearch
Sets the number of records that will be returned for a single page.
setPassword(String) - Method in class com.electricvine.ZipSearch
Sets the password.
setPassword(String) - Method in class com.electricvine.DataSource
Sets the password used to open a database.
setRadius(int) - Method in class com.electricvine.ZipSearch
Assigns the radius to zipsearch object.
setSortOrder(SortOrder) - Method in class com.electricvine.SortParameter
 
setSortParameters(ArrayList) - Method in class com.electricvine.ZipSearch
Sets the sort parameters.
setStartIndex(int) - Method in class com.electricvine.ZipSearch
Specifies index of the first result record to return.
setStartPage(int) - Method in class com.electricvine.ZipSearch
Assign start page used during paging to indicate which page to return.
setState(String) - Method in class com.electricvine.ZipSearch
This assigns the state to the ZipSearch object.
setURL(String) - Method in class com.electricvine.DataSource
This sets the URL of the database.
setUsername(String) - Method in class com.electricvine.ZipSearch
Sets the username.
setUsername(String) - Method in class com.electricvine.DataSource
This sets the username used to open a database.
setZipCode(String) - Method in class com.electricvine.ZipSearch
This assigns the zip code that will be searched.
setZipCodeTable(String) - Method in class com.electricvine.DataSource
This sets the name of the table that contains zip codes in the database.
SortArray(String[]) - Static method in class com.electricvine.Utils
 
SortOrder - class com.electricvine.SortOrder.
 
SortParameter - class com.electricvine.SortParameter.
 
SortParameter(String) - Constructor for class com.electricvine.SortParameter
 
SortParameter(String, ColumnDataType) - Constructor for class com.electricvine.SortParameter
 
SortParameter(String, ColumnDataType, SortOrder) - Constructor for class com.electricvine.SortParameter
 
Split(String, String) - Static method in class com.electricvine.Utils
This returns an array created by splitting a delimited string.
SQL_ERROR - Static variable in class com.electricvine.ErrorCode
Sql query error
StateFromZip(String, StringHolder) - Method in class com.electricvine.App
Finds the state for a specified zip code.

T

Text - Static variable in class com.electricvine.ColumnDataType
 
TO_ZIPCODE_INVALID - Static variable in class com.electricvine.ErrorCode
 

U

updateAdmin(String, String, String, String, String, String, String, String, String) - Method in class com.electricvine.Db
 
updateDealer(String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String) - Method in class com.electricvine.Db
 
USER_INVALID - Static variable in class com.electricvine.ErrorCode
User name not valid
Utils - class com.electricvine.Utils.
General utility functions
These functions are generally used internally by Bullseye, and will not need to be accessed in most implementations of Bullseye.
Utils() - Constructor for class com.electricvine.Utils
 

V

ValidateZip(String, BooleanHolder) - Method in class com.electricvine.App
Determines if a specified zip code is valid.
ValidateZip(String, String, BooleanHolder) - Method in class com.electricvine.App
Determines if a specified zip code is valid.

Z

ZIPCITY_NOT_SPECIFIED - Static variable in class com.electricvine.ErrorCode
City has not been specified
ZIPCODE_INVALID - Static variable in class com.electricvine.ErrorCode
Invalid zip code
ZipSearch - class com.electricvine.ZipSearch.
This method finds matching companies using ZipCode (or City) within specified radius.
ZipSearch() - Constructor for class com.electricvine.ZipSearch
Used as a property of ZipSearch object to store results of the zipcode/city search.
ZipSearch(DataSource) - Constructor for class com.electricvine.ZipSearch
Initializes a new instance of the ZipSearch class.
ZipSearchResults - class com.electricvine.ZipSearchResults.
Initializes a new instance of a ZipSearch class.
ZipsFromCity(String, String, Vector) - Method in class com.electricvine.App
Finds all zip codes for a specified city and state.

A C D E F G I J L M N O P R S T U V Z