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

A

add(Object) - Method in class com.softtech.jdbc.SQLResults
Adds an object (a field value from a SELECT) to the sql results container)
addColumnName(String) - Method in class com.softtech.jdbc.SQLResults
Adds a column name to the columnNames list
addConnectionsToPool(int) - Method in class com.softtech.jdbc.ConnectionPool
Creates database connection(s) and adds them to the pool.
addNullParam(int) - Method in class com.softtech.jdbc.SQLExecutor
Adds a null query parameter to the list
addParam(Object) - Method in class com.softtech.jdbc.SQLExecutor
Adds a query parameter to the list
addParam(int) - Method in class com.softtech.jdbc.SQLExecutor
Adds an int query parameter to the list
addParam(long) - Method in class com.softtech.jdbc.SQLExecutor
Adds a long query parameter to the list
addParam(double) - Method in class com.softtech.jdbc.SQLExecutor
Adds a double query parameter to the list
addParam(boolean) - Method in class com.softtech.jdbc.SQLExecutor
Adds a boolean query parameter to the list
addParam(float) - Method in class com.softtech.jdbc.SQLExecutor
Adds a float query parameter to the list
addParam(short) - Method in class com.softtech.jdbc.SQLExecutor
Adds a short query parameter to the list
addStoredProcOutParam(Object) - Method in class com.softtech.jdbc.SQLExecutor
 
applyDataIntegrityViolationRecovery() - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
Dummy method (placeholder) for recovery method
available - Variable in class com.softtech.jdbc.ConnectionPool.PooledConnection
is this connection available

C

cancelQuery() - Method in class com.softtech.jdbc.SQLExecutor
Cancels the currently running query if both the database and driver support aborting an SQL statement.
clearParams() - Method in class com.softtech.jdbc.SQLExecutor
Clears out the query parameter list
closeAllConnections() - Method in class com.softtech.jdbc.ConnectionPool
Closes all connections in the connection pool.
closeConnection(Connection, int) - Method in class com.softtech.jdbc.ConnectionPool
method closes the given connection
closeConnection() - Method in class com.softtech.jdbc.SQLExecutor
Closes this connection.
closeQuery() - Method in class com.softtech.jdbc.SQLExecutor
Closes the SQLExecutor's statement object (releasing database and JDBC resources immediately instead of waiting for this to happen when the SQLExecutor object is garbage collected).
columnCount - Variable in class com.softtech.jdbc.SQLResults
number of columns returned by the sql query
columnNames - Variable in class com.softtech.jdbc.SQLResults
ArrayList containing the column names returned by the sql query
com.softtech.jdbc - package com.softtech.jdbc
 
commitTrans() - Method in class com.softtech.jdbc.SQLExecutor
Commits the current transaction
con - Variable in class com.softtech.jdbc.ConnectionPool.PooledConnection
database connection
con - Variable in class com.softtech.jdbc.SQLExecutor
database connection
ConnectionPool - Class in com.softtech.jdbc
Manages jdbc connections to the database.
ConnectionPool(int, String, String, String, String) - Constructor for class com.softtech.jdbc.ConnectionPool
Constructor creates a JDBC connection using given parameters
ConnectionPool(Connection) - Constructor for class com.softtech.jdbc.ConnectionPool
Constructor uses the given connection (con) as its connection.
ConnectionPool.PooledConnection - Class in com.softtech.jdbc
Pooled connection object
ConnectionPool.PooledConnection(Connection, boolean) - Constructor for class com.softtech.jdbc.ConnectionPool.PooledConnection
Constructor for PooledConnection object
connURL - Static variable in class com.softtech.jdbc.SampleCodeUsingFramework
JDBC connection URL
conPool - Variable in class com.softtech.jdbc.ConnectionPool
Connection pool
conPool - Variable in class com.softtech.jdbc.SQLExecutor
connection pool
conURL - Variable in class com.softtech.jdbc.ConnectionPool
database connection URL

D

DatabaseException - Exception in com.softtech.jdbc
DatabaseException denotes a generic runtime data access (SQL) exception.
DatabaseException(String, SQLException) - Constructor for exception com.softtech.jdbc.DatabaseException
constructor initializes the sqlErrorCode
DatabaseException(String) - Constructor for exception com.softtech.jdbc.DatabaseException
constructor initializes the sqlErrorCode to -1 and the SQLState to null
DatabaseType - Class in com.softtech.jdbc
Constants define the different database types
DatabaseType() - Constructor for class com.softtech.jdbc.DatabaseType
 
dbType - Variable in class com.softtech.jdbc.ConnectionPool
DatabaseType (e.g.
dbType - Variable in class com.softtech.jdbc.SQLExecutor
Database type (for example, DatabaseType.ORACLE)
dbType - Variable in class com.softtech.jdbc.SQLResults
database type (e.g.
driverName - Variable in class com.softtech.jdbc.ConnectionPool
database driver name
driverName - Static variable in class com.softtech.jdbc.SampleCodeUsingFramework
JDBC driver name

E

ExceptionFactory - Class in com.softtech.jdbc
Given a databaseType (e.g.
ExceptionFactory() - Constructor for class com.softtech.jdbc.ExceptionFactory
 

F

formatWithSpaces(String) - Method in class com.softtech.jdbc.SQLResults
Formats a string by adding spaces on the end if the string is shorter than toStringFormatWidth, or truncates string if it is too long.

G

getAutoCommit() - Method in class com.softtech.jdbc.SQLExecutor
Gets the auto-commit status
getBoolean(int, int) - Method in class com.softtech.jdbc.SQLResults
Gets the value of the field corresponding to (row, col) as a boolean
getBoolean(int, String) - Method in class com.softtech.jdbc.SQLResults
Gets the value of the field corresponding to row, columnName as a boolean
getColumnCount() - Method in class com.softtech.jdbc.SQLResults
Getter for number of columns
getColumnIndex(String) - Method in class com.softtech.jdbc.SQLResults
Given a columnName, return the corresponding index
getColumnNames() - Method in class com.softtech.jdbc.SQLResults
Getter for SQL column names
getConnection() - Method in class com.softtech.jdbc.ConnectionPool
Gets available connection from the pool
getConnection() - Method in class com.softtech.jdbc.ConnectionPool.PooledConnection
Get the connection
getConnection() - Method in class com.softtech.jdbc.SQLExecutor
Getter for connection
getConnectionPool() - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
Creates a new connection pool object
getCountParams() - Method in class com.softtech.jdbc.SQLExecutor
Get the of query parameters in the list
getDate(int, int) - Method in class com.softtech.jdbc.SQLResults
Gets the value of the field corresponding to (row, col) as a java.sql.Date
getDate(int, String) - Method in class com.softtech.jdbc.SQLResults
Gets the value of the field corresponding to row, columnName as a java.sql.Date
getDbType() - Method in class com.softtech.jdbc.ConnectionPool
Get the dbType
getDbType(Connection) - Static method in class com.softtech.jdbc.DatabaseType
Parses the connection info to determine the database type
getDbType(String) - Static method in class com.softtech.jdbc.DatabaseType
Parses the driver name to determine the database type
getDouble(int, int) - Method in class com.softtech.jdbc.SQLResults
Gets the value of the field corresponding to (row, col) as a double
getDouble(int, String) - Method in class com.softtech.jdbc.SQLResults
Gets the value of the field corresponding to row, columnName as a double
getException(int, String, SQLException) - Static method in class com.softtech.jdbc.ExceptionFactory
Generate the correct exception subclass (of DatabaseException).
getException(int, String) - Static method in class com.softtech.jdbc.ExceptionFactory
Generate an object of the correct exception subclass (of DatabaseException).
getFloat(int, int) - Method in class com.softtech.jdbc.SQLResults
Gets the value of the field corresponding to (row, col) as a float
getFloat(int, String) - Method in class com.softtech.jdbc.SQLResults
Gets the value of the field corresponding to row, columnName as a float
getInt(int, String) - Method in class com.softtech.jdbc.SQLResults
Gets the value of the field corresponding to row, columnName as an int
getInt(int, int) - Method in class com.softtech.jdbc.SQLResults
Gets the value of the field corresponding to (row, col) index as an int
getLong(int, String) - Method in class com.softtech.jdbc.SQLResults
Gets the value of the field corresponding to row, columnName as a long
getLong(int, int) - Method in class com.softtech.jdbc.SQLResults
Gets the value of the field corresponding to row, col as a long
getMaxRows() - Method in class com.softtech.jdbc.SQLExecutor
Getter for the maximum number of rows that a query can return
getNumConInPool() - Method in class com.softtech.jdbc.ConnectionPool
Gets the number of connections in the pool
getNumRecordsUpdated() - Method in class com.softtech.jdbc.SQLExecutor
Getter for numRecordsUpdated.
getObject(int, int) - Method in class com.softtech.jdbc.SQLResults
GetObject returns an object in the ArrayList results given a row and column index
getResults() - Method in class com.softtech.jdbc.SQLResults
Getter for the entire SQL results object
getRowCount() - Method in class com.softtech.jdbc.SQLResults
Gets the number of rows returned by query
getSQLErrorCode() - Method in exception com.softtech.jdbc.DatabaseException
Get the SQLErrorCode
getSQLState() - Method in exception com.softtech.jdbc.DatabaseException
get the SQLState
getString(int, int) - Method in class com.softtech.jdbc.SQLResults
Gets the value of the field corresponding to (row, col) index as a String
getString(int, String) - Method in class com.softtech.jdbc.SQLResults
Gets the value of the field corresponding to row, columnName as a String
getTime(int, int) - Method in class com.softtech.jdbc.SQLResults
Gets the value of the field corresponding to (row, col) as a java.sql.Time
getTime(int, String) - Method in class com.softtech.jdbc.SQLResults
Gets the value of the field corresponding to row, columnName as a java.sql.Time
getTimeoutInSec() - Method in class com.softtech.jdbc.SQLExecutor
Getter for timeoutInSec
getTimestamp(int, int) - Method in class com.softtech.jdbc.SQLResults
Gets the value of the field corresponding to (row, col) as a java.sql.Timestamp
getTimestamp(int, String) - Method in class com.softtech.jdbc.SQLResults
Gets the value of the field corresponding to row, columnName as a java.sql.Timestamp

H

HSQL - Static variable in class com.softtech.jdbc.DatabaseType
 
HSQL_NAME - Static variable in class com.softtech.jdbc.DatabaseType
 
HSQLException - Exception in com.softtech.jdbc
Subclass of DatabaseException with specific knowledge of various HSQL sql error codes.
HSQLException(String, SQLException) - Constructor for exception com.softtech.jdbc.HSQLException
HSQLException Constructor
HSQLException(String) - Constructor for exception com.softtech.jdbc.HSQLException
HSQLException Constructor

I

isAvailable() - Method in class com.softtech.jdbc.ConnectionPool.PooledConnection
Is this connection available
isBadSQLGrammar() - Method in exception com.softtech.jdbc.DatabaseException
was db exception caused by bad sql grammer (a typo)?
isBadSQLGrammar() - Method in exception com.softtech.jdbc.HSQLException
Was db exception caused by bad sql grammer (a typo) return true or false
isBadSQLGrammar() - Method in exception com.softtech.jdbc.MySQLException
Was db exception caused by bad sql grammer (a typo) return true or false
isBadSQLGrammar() - Method in exception com.softtech.jdbc.OracleException
Was db exception caused by bad sql grammer (a typo) return true or false
isBadSQLGrammar() - Method in exception com.softtech.jdbc.PostgreSQLException
Was db exception caused by bad sql grammer (a typo) return true or false
isDatabaseUnavailable() - Method in exception com.softtech.jdbc.DatabaseException
was db exception caused by database being unavailable?
isDatabaseUnavailable() - Method in exception com.softtech.jdbc.HSQLException
Was db exception caused by database being unavailable
isDatabaseUnavailable() - Method in exception com.softtech.jdbc.MySQLException
Was db exception caused by database being unavailable
isDatabaseUnavailable() - Method in exception com.softtech.jdbc.OracleException
Was db exception caused by database being unavailable
isDatabaseUnavailable() - Method in exception com.softtech.jdbc.PostgreSQLException
Was db exception caused by database being unavailable
isDataIntegrityViolation() - Method in exception com.softtech.jdbc.DatabaseException
was db exception caused by a data integrity violation?
isDataIntegrityViolation() - Method in exception com.softtech.jdbc.HSQLException
Was db exception caused by a data integrity violation
isDataIntegrityViolation() - Method in exception com.softtech.jdbc.MySQLException
Was db exception caused by a data integrity violation
isDataIntegrityViolation() - Method in exception com.softtech.jdbc.OracleException
Was db exception caused by a data integrity violation
isDataIntegrityViolation() - Method in exception com.softtech.jdbc.PostgreSQLException
Was db exception caused by a data integrity violation
isInvalidBindVariableName() - Method in exception com.softtech.jdbc.DatabaseException
was db exception caused by referencing a invalid bind parameter name?
isInvalidBindVariableName() - Method in exception com.softtech.jdbc.HSQLException
Was db exception caused by referencing a invalid bind parameter name
isInvalidBindVariableName() - Method in exception com.softtech.jdbc.MySQLException
Was db exception caused by referencing a invalid bind parameter name
isInvalidBindVariableName() - Method in exception com.softtech.jdbc.OracleException
Was db exception caused by referencing a invalid bind parameter name
isInvalidBindVariableName() - Method in exception com.softtech.jdbc.PostgreSQLException
Was db exception caused by referencing a invalid bind parameter name
isNonExistentTableOrViewOrCol() - Method in exception com.softtech.jdbc.DatabaseException
was db exception caused by referencing a non existent table or view?
isNonExistentTableOrViewOrCol() - Method in exception com.softtech.jdbc.HSQLException
Was db exception caused by referencing a non existent table or view
isNonExistentTableOrViewOrCol() - Method in exception com.softtech.jdbc.MySQLException
Was db exception caused by referencing a non existent table or view
isNonExistentTableOrViewOrCol() - Method in exception com.softtech.jdbc.OracleException
Was db exception caused by referencing a non existent table or view
isNonExistentTableOrViewOrCol() - Method in exception com.softtech.jdbc.PostgreSQLException
Was db exception caused by referencing a non existent table or view
isNull(int, int) - Method in class com.softtech.jdbc.SQLResults
Determines if field given by (row,col) is null
isNull(int, String) - Method in class com.softtech.jdbc.SQLResults
Determines if field given by (row, columnName) is null
isReadOnly() - Method in class com.softtech.jdbc.SQLExecutor
Is the current connection read only?
isRowlockOrTimedOut() - Method in exception com.softtech.jdbc.DatabaseException
was db exception caused by a row lock error or some other sql querty timeout?
isRowlockOrTimedOut() - Method in exception com.softtech.jdbc.HSQLException
Was db exception caused by a row lock error or some other sql query timeout return true or false
isRowlockOrTimedOut() - Method in exception com.softtech.jdbc.MySQLException
Was db exception caused by a row lock error or some other sql querty timeout return true or false
isRowlockOrTimedOut() - Method in exception com.softtech.jdbc.OracleException
Was db exception caused by a row lock error or some other sql querty timeout
isRowlockOrTimedOut() - Method in exception com.softtech.jdbc.PostgreSQLException
Was db exception caused by a row lock error or some other sql query timeout return true or false
isSelectStatement(String) - Method in class com.softtech.jdbc.SQLExecutor
Is this SQL statement a select statement (returns rows?)
isStoredProcOutParam - Variable in class com.softtech.jdbc.SQLExecutor
ArrayList which stores whether SQL parameters are stored proc Out parameters
isUniqueConstraintViolation() - Method in exception com.softtech.jdbc.DatabaseException
was db exception caused by unique constraint violation (duplicate record)
isUniqueConstraintViolation() - Method in exception com.softtech.jdbc.HSQLException
Was db exception caused by a duplicate record (unique constraint) violation
isUniqueConstraintViolation() - Method in exception com.softtech.jdbc.MySQLException
Was db exception caused by a duplicate record (unique constraint) violation
isUniqueConstraintViolation() - Method in exception com.softtech.jdbc.OracleException
Was db exception caused by a duplicate record (unique constraint) violation
isUniqueConstraintViolation() - Method in exception com.softtech.jdbc.PostgreSQLException
Was db exception caused by a duplicate record (unique constraint) violation
isVarParameterUnbound() - Method in exception com.softtech.jdbc.DatabaseException
was db exception caused by a an unbound variable (parameter)?
isVarParameterUnbound() - Method in exception com.softtech.jdbc.HSQLException
was db exception caused by a an unbound variable (parameter)
isVarParameterUnbound() - Method in exception com.softtech.jdbc.MySQLException
was db exception caused by a an unbound variable (parameter)
isVarParameterUnbound() - Method in exception com.softtech.jdbc.OracleException
was db exception caused by a an unbound variable (parameter)
isVarParameterUnbound() - Method in exception com.softtech.jdbc.PostgreSQLException
was db exception caused by a an unbound variable (parameter)

L

lastSQL - Variable in class com.softtech.jdbc.SQLExecutor
remember the last SQL statement (so we don't re-prepare a statement if SQL doesn't change

M

main(String[]) - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
static main method testing jdbc framework with various method calls
maxRows - Variable in class com.softtech.jdbc.SQLExecutor
maximum rows to return in a SELECT statement
MYSQL - Static variable in class com.softtech.jdbc.DatabaseType
 
MYSQL_NAME - Static variable in class com.softtech.jdbc.DatabaseType
 
MySQLException - Exception in com.softtech.jdbc
Subclass of DatabaseException with specific knowledge of various MySQL sql error codes.
MySQLException(String, SQLException) - Constructor for exception com.softtech.jdbc.MySQLException
MySQLException Constructor
MySQLException(String) - Constructor for exception com.softtech.jdbc.MySQLException
MySQLException Constructor

N

NullParameterObject - Class in com.softtech.jdbc
NullParameterObject inner class -- defines a null parameter
NullParameterObject(int) - Constructor for class com.softtech.jdbc.NullParameterObject
 
numRecordsUpdated - Variable in class com.softtech.jdbc.SQLExecutor
number of rows updated in last runQuery()

O

ORACLE - Static variable in class com.softtech.jdbc.DatabaseType
 
ORACLE_NAME - Static variable in class com.softtech.jdbc.DatabaseType
 
OracleException - Exception in com.softtech.jdbc
Subclass of DatabaseException with specific knowledge of various Oracle sql error codes.
OracleException(String, SQLException) - Constructor for exception com.softtech.jdbc.OracleException
Constructor for OracleException.
OracleException(String) - Constructor for exception com.softtech.jdbc.OracleException
Constructor for OracleException.

P

params - Variable in class com.softtech.jdbc.SQLExecutor
ArrayList which stores the SQL parameters (?)
password - Variable in class com.softtech.jdbc.ConnectionPool
database connection password
password - Static variable in class com.softtech.jdbc.SampleCodeUsingFramework
JDBC connection password
POSTGRESQL - Static variable in class com.softtech.jdbc.DatabaseType
 
POSTGRESQL_NAME - Static variable in class com.softtech.jdbc.DatabaseType
 
PostgreSQLException - Exception in com.softtech.jdbc
Subclass of DatabaseException with specific knowledge of various PostgreSQL sql error codes.
PostgreSQLException(String, SQLException) - Constructor for exception com.softtech.jdbc.PostgreSQLException
PostgreSQLException Constructor
PostgreSQLException(String) - Constructor for exception com.softtech.jdbc.PostgreSQLException
PostgreSQLException Constructor
prepStatement - Variable in class com.softtech.jdbc.SQLExecutor
prepared statement used in calls to runQuery() and runQueryKeepConnOpen()

R

releaseConnection(Connection) - Method in class com.softtech.jdbc.ConnectionPool
Method closeConnection closes the jdbc database connection
releaseConnection(Connection, int) - Method in class com.softtech.jdbc.ConnectionPool
Makes a connection available for reuse (in the connection pool)
releaseConnection() - Method in class com.softtech.jdbc.SQLExecutor
Releases this connection (sets its available status = true).
removeAnyClosedConnections() - Method in class com.softtech.jdbc.ConnectionPool
 
resizeConnectionPool(int) - Method in class com.softtech.jdbc.ConnectionPool
Attempts to resize the connection pool to the new size.
results - Variable in class com.softtech.jdbc.SQLResults
ArrayList containing the results of the sql query
rollbackTrans() - Method in class com.softtech.jdbc.SQLExecutor
Rolls back the current transaction
runQuery(String) - Method in class com.softtech.jdbc.SQLExecutor
Runs the sql and does NOT close the connection
runQueryCloseCon(String) - Method in class com.softtech.jdbc.SQLExecutor
Runs the sql and automatically closes the connection when done
runQueryStreamResults(String, boolean) - Method in class com.softtech.jdbc.SQLExecutor
Runs the sql and does NOT close the connection.
runQueryStreamResults(String) - Method in class com.softtech.jdbc.SQLExecutor
Runs the sql and does NOT close the connection.
runStoredProc(String) - Method in class com.softtech.jdbc.SQLExecutor
 
runStoredProcCloseCon(String) - Method in class com.softtech.jdbc.SQLExecutor
Calls the stored proc and automatically closes the connection when done

S

SampleCodeUsingFramework - Class in com.softtech.jdbc
This class contains static methods for testing the JDBC framework code.
SampleCodeUsingFramework() - Constructor for class com.softtech.jdbc.SampleCodeUsingFramework
 
setAutoCommit(boolean) - Method in class com.softtech.jdbc.SQLExecutor
Sets the auto-commit status
setAvailable(boolean) - Method in class com.softtech.jdbc.ConnectionPool.PooledConnection
Set this connection to available
setHSQLConnectInfo() - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
Sets fields to values required to connect to a sample HSQL database
setMaxRows(int) - Method in class com.softtech.jdbc.SQLExecutor
Setter for the maximum number of rows that a query can return
setMySQLConnectInfo() - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
Sets fields to values required to connect to a sample MySQL database
setOracleConnectInfo() - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
Sets fields to values required to connect to a sample ORACLE database
setPostgreSQLConnectInfo() - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
Sets fields to values required to connect to a sample PostgreSQL database
setPrepStatementParameters() - Method in class com.softtech.jdbc.SQLExecutor
 
setReadOnly(boolean) - Method in class com.softtech.jdbc.SQLExecutor
Sets the current connection readOnly status
setTimeoutInSec(int) - Method in class com.softtech.jdbc.SQLExecutor
Setter for timeoutInSec
setToStringFormatWidth(int) - Method in class com.softtech.jdbc.SQLResults
Setter for string format width (used in toString() method)
setTransactionIsolation(int) - Method in class com.softtech.jdbc.SQLExecutor
Sets the transaction isolation level
sqlErrorCode - Variable in exception com.softtech.jdbc.DatabaseException
sql error code obtained from database after exception
SQLExecutor - Class in com.softtech.jdbc
SQLExecutor class is an easy to use wrapper for executing JDBC queries, updates, and stored procedure calls for Oracle and mySQL (other databases can be supported by extending the DatabaseException class for a new database).

The framework doesn't throw any checked exceptions, so you aren't forced to write try-catch blocks around all your code.
SQLExecutor(ConnectionPool) - Constructor for class com.softtech.jdbc.SQLExecutor
Constructor uses provided connection pool
SQLResults - Class in com.softtech.jdbc
SQLResults stores the results of a sql query in the form of objects stored in an Arraylist container object.
SQLResults(int, int) - Constructor for class com.softtech.jdbc.SQLResults
Constructor creates ArrayList objects and initializes the dbType and columnCount
sqlSelect - Static variable in class com.softtech.jdbc.SampleCodeUsingFramework
select statement used by some test methods
SQLState - Variable in exception com.softtech.jdbc.DatabaseException
sql state obtained from database after exception
sqlType - Variable in class com.softtech.jdbc.NullParameterObject
 

T

testCallingStoredProc() - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
This procecure calls the following Oracle stored procedure which inserts a new row into the JDBC_TEST table.
testCallingStoredProcWithAnOUTParam() - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
This procedure calls the following Oracle stored procedure and gets the value from the OUT param pFULLNAME.
testConnectionPooling() - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
Creates a connection pool (2 connections) and execututes queries on each.
testCreatingOwnConnection() - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
Illustrates creating a database connection using standard JDBC and then using this connection to create a ConnectionPool and execute a select statement.
testDeadlockException() - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
static method testing jdbc framework with a select for update statement (that locks a record) and an update statement that generates a deadlock.
testDeleteAndInsert() - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
static method testing jdbc framework with a delete and an insert statement
testHSQL() - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
 
testMultipleUpdatesAndTrans() - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
static method testing jdbc framework with multiple updates, using transaction management
testMultipleUpdatesAndTransWithException() - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
static method testing jdbc framework with multiple updates and intentional sql exceptions that are trapped in appropriate exception handling blocks
testMySQL() - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
Does a simple select from a MySQL database.
testOracleStoredFunction() - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
This method tests the jdbc framework with a call to the following Oracle stored function: CREATE OR REPLACE FUNCTION jdbc_test1 RETURN NUMBER IS cnt_jdbc_test NUMBER; BEGIN dbms_output.put_line ('starting jdbc_test1...'); cnt_jdbc_test := 0; SELECT COUNT(*) INTO cnt_jdbc_test FROM JDBC_TEST; RETURN cnt_jdbc_test; EXCEPTION WHEN NO_DATA_FOUND THEN Null; WHEN OTHERS THEN -- Consider logging the error and then re-raise RAISE; END jdbc_test1; /
testParameterizedQuery() - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
Run a parameterized query (sql) once with one parameter and then again with another parameter.
testSelectDistinctAndMixedCase() - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
 
testSelectWhichReturnsNoRows() - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
static method testing jdbc framework with a simple select statement that returns no rows
testSimpleSelectAndMaxRows() - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
static method testing jdbc framework with a simple select statement, parameters, and a maximum number of rows
testSimpleSelectWithParams() - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
static method testing jdbc framework with a simple select statement using parameters
testSimpleSelectWithParamsAndToString() - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
static method testing jdbc framework with a simple select statement using parameters and the result set's .toString() method
testStandardJDBC() - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
static method executes a standard jdbc query
testThis() - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
 
testUpdate() - Static method in class com.softtech.jdbc.SampleCodeUsingFramework
static method testing jdbc framework with an update statement
timeoutInSec - Variable in class com.softtech.jdbc.SQLExecutor
timeout interval for long running queries
toList() - Method in class com.softtech.jdbc.SQLResults
Returns the SQLResults in the form of a List
toString() - Method in class com.softtech.jdbc.SQLResults
Returns the contents of SQLResults in a text table.
toStringFormatWidth - Variable in class com.softtech.jdbc.SQLResults
formatted width of each field included in toString()

U

UNKNOWN - Static variable in class com.softtech.jdbc.DatabaseType
 
username - Variable in class com.softtech.jdbc.ConnectionPool
database connection user name
username - Static variable in class com.softtech.jdbc.SampleCodeUsingFramework
JDBC connection username

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