A B C D E F G I L M N O P Q R S T U V X

A

add(double) - Method in class safejdbc.holder.DoubleHolder
 
add(float) - Method in class safejdbc.holder.FloatHolder
 
add(int) - Method in class safejdbc.holder.IntHolder
 
add(long) - Method in class safejdbc.holder.LongHolder
 
add(short) - Method in class safejdbc.holder.ShortHolder
 
and(boolean) - Method in class safejdbc.holder.BooleanHolder
 
and(byte) - Method in class safejdbc.holder.ByteHolder
 
append(Object) - Method in class safejdbc.holder.StringHolder
 
append(String) - Method in class safejdbc.holder.StringHolder
 

B

BooleanHolder - class safejdbc.holder.BooleanHolder.
This class is designed to hold a boolean.
BooleanHolder(boolean) - Constructor for class safejdbc.holder.BooleanHolder
 
ByteHolder - class safejdbc.holder.ByteHolder.
This class is designed to hold a byte.
ByteHolder(byte) - Constructor for class safejdbc.holder.ByteHolder
 

C

CharHolder - class safejdbc.holder.CharHolder.
This class is designed to hold a char.
CharHolder(char) - Constructor for class safejdbc.holder.CharHolder
 
ConnectionProvider - interface safejdbc.ConnectionProvider.
A ConnectionProvider is used by the SQLExecuter class to obtain a connection.

D

DataSourceAdapter - class safejdbc.DataSourceAdapter.
This class is a Adapter for DataSources to provide the ConnectionProvider interface.
DataSourceAdapter(DataSource) - Constructor for class safejdbc.DataSourceAdapter
 
decrement() - Method in class safejdbc.holder.IntHolder
 
divide(double) - Method in class safejdbc.holder.DoubleHolder
 
divide(float) - Method in class safejdbc.holder.FloatHolder
 
doTransaction(SQL) - Method in interface safejdbc.TXCodeBlock
This method is called by the executeTX method of SQLExecuter.
DoubleHolder - class safejdbc.holder.DoubleHolder.
This class is designed to hold a double.
DoubleHolder(double) - Constructor for class safejdbc.holder.DoubleHolder
 

E

executeTX(TXCodeBlock) - Method in class safejdbc.SQLExecuter
Use this method, to execute several database calls in a single transaction.

F

fill(PreparedStatement) - Method in interface safejdbc.FillingCommand
Implement this method to fill the parameters of the PreparedStatement
FillingCommand - interface safejdbc.FillingCommand.
This interface serves to set the parameter values of a PreparedStatement SQL string which is passed to the query or update method of SQL.
FloatHolder - class safejdbc.holder.FloatHolder.
This class is designed to hold a float.
FloatHolder(float) - Constructor for class safejdbc.holder.FloatHolder
 
forEachRow(ResultSet) - Method in class safejdbc.ResultSetIterator
This template method is called for each row of the ResultSet.

G

getConnection() - Method in class safejdbc.SimpleConnectionProvider
This method is called by the framework to yield a database connection.
getConnection() - Method in class safejdbc.DataSourceAdapter
 
getConnection() - Method in class safejdbc.TxDataSourceAdapter
 
getConnection() - Method in interface safejdbc.ConnectionProvider
This method is called to actually give the connection
getConnection() - Method in class safejdbc.LoggingWrapper
 
getConnection() - Method in class safejdbc.SimpleConProvider
Deprecated. Don't use this class anymore. You should use SimpleConnectionProvider instead.
getValue() - Method in class safejdbc.holder.FloatHolder
 
getValue() - Method in class safejdbc.holder.ByteHolder
 
getValue() - Method in class safejdbc.holder.StringHolder
 
getValue() - Method in class safejdbc.holder.IntHolder
 
getValue() - Method in class safejdbc.holder.CharHolder
 
getValue() - Method in class safejdbc.holder.DoubleHolder
 
getValue() - Method in class safejdbc.holder.ObjectHolder
 
getValue() - Method in class safejdbc.holder.BooleanHolder
 
getValue() - Method in class safejdbc.holder.LongHolder
 
getValue() - Method in class safejdbc.holder.ShortHolder
 

I

increment() - Method in class safejdbc.holder.IntHolder
 
IntHolder - class safejdbc.holder.IntHolder.
This class is designed to hold an int.
IntHolder(int) - Constructor for class safejdbc.holder.IntHolder
 

L

log(String) - Method in interface safejdbc.LogListener
The framework will hand over all SQL statements to this method.
LoggingWrapper - class safejdbc.LoggingWrapper.
If you want to log your SQL-Statements you just have to wrap your ConnectionProvider with a LoggingWrapper.
LoggingWrapper(ConnectionProvider) - Constructor for class safejdbc.LoggingWrapper
This constructor is for your convenience.
LoggingWrapper(ConnectionProvider, LogListener) - Constructor for class safejdbc.LoggingWrapper
Every SQL-Statement will be handed over to the LogListener.
LogListener - interface safejdbc.LogListener.
A LogListener is used by a LoggingWrapper.
LongHolder - class safejdbc.holder.LongHolder.
This class is designed to hold a long.
LongHolder(long) - Constructor for class safejdbc.holder.LongHolder
 

M

main(String[]) - Static method in class safejdbc.VersionInfo
 
multiply(double) - Method in class safejdbc.holder.DoubleHolder
 
multiply(float) - Method in class safejdbc.holder.FloatHolder
 

N

not() - Method in class safejdbc.holder.BooleanHolder
 

O

ObjectHolder - class safejdbc.holder.ObjectHolder.
This class is designed to hold an object.
ObjectHolder(Object) - Constructor for class safejdbc.holder.ObjectHolder
 
or(boolean) - Method in class safejdbc.holder.BooleanHolder
 
or(byte) - Method in class safejdbc.holder.ByteHolder
 

P

process(ResultSet) - Method in class safejdbc.ResultSetIterator
This method is called by the framework.
process(ResultSet) - Method in interface safejdbc.ResultSetProcessor
 

Q

query(String, FillingCommand, ResultSetProcessor) - Method in interface safejdbc.SQL
Use this method to execute SQL-Query-Statements such as select from.
query(String, FillingCommand, ResultSetProcessor) - Method in class safejdbc.SQLExecuter
 
query(String, ResultSetProcessor) - Method in interface safejdbc.SQL
Use this method to execute SQL-Query-Statements such as select from.
Example: sql.query("SELECT id, name FROM customer WHERE id > 0", new ResultSetIterator() { public void forEachRow(ResultSet rs) throws SQLException { System.out.println(rs.getString("name")); }});
query(String, ResultSetProcessor) - Method in class safejdbc.SQLExecuter
 

R

ResultSetIterator - class safejdbc.ResultSetIterator.
An Implementation of the ResultSetIterator interface.
ResultSetIterator() - Constructor for class safejdbc.ResultSetIterator
 
ResultSetProcessor - interface safejdbc.ResultSetProcessor.
ResultSetProcessors are used to specify how a ResultSet should be handled.

S

safejdbc - package safejdbc
This is the main package of the SafeJdbc library which provides a safe and simple object oriented wrapper around the JDBC interface.
safejdbc.holder - package safejdbc.holder
This package contains a variety of holder classes.
setValue(boolean) - Method in class safejdbc.holder.BooleanHolder
 
setValue(byte) - Method in class safejdbc.holder.ByteHolder
 
setValue(char) - Method in class safejdbc.holder.CharHolder
 
setValue(double) - Method in class safejdbc.holder.DoubleHolder
 
setValue(float) - Method in class safejdbc.holder.FloatHolder
 
setValue(int) - Method in class safejdbc.holder.IntHolder
 
setValue(long) - Method in class safejdbc.holder.LongHolder
 
setValue(Object) - Method in class safejdbc.holder.ObjectHolder
 
setValue(short) - Method in class safejdbc.holder.ShortHolder
 
setValue(String) - Method in class safejdbc.holder.StringHolder
 
ShortHolder - class safejdbc.holder.ShortHolder.
This class is designed to hold a short.
ShortHolder(short) - Constructor for class safejdbc.holder.ShortHolder
 
SimpleConnectionProvider - class safejdbc.SimpleConnectionProvider.
This class provides JDBC connection via the JDBC 1 Driver.
SimpleConnectionProvider(String, Properties, String) - Constructor for class safejdbc.SimpleConnectionProvider
This constructor initializes the driver using a map containing login information.
SimpleConnectionProvider(String, String, String, String) - Constructor for class safejdbc.SimpleConnectionProvider
This constructor initializes the driver via separate strings.
SimpleConProvider - class safejdbc.SimpleConProvider.
Deprecated. Don't use this class anymore. You should use SimpleConnectionProvider instead.
SimpleConProvider(String, Properties, String) - Constructor for class safejdbc.SimpleConProvider
Deprecated. Don't use this class anymore. You should use SimpleConnectionProvider instead.
SimpleConProvider(String, String, String, String) - Constructor for class safejdbc.SimpleConProvider
Deprecated. Don't use this class anymore. You should use SimpleConnectionProvider instead.
singleIntQuery(String) - Method in interface safejdbc.SQL
This method is a convenience method for executing a SQL query which has a single row with a single column containing a number as a result.
singleIntQuery(String) - Method in class safejdbc.SQLExecuter
This method is a convenience method for executing a SQL query which has a single row with a single column containing a number as a result.
singleIntQuery(String, FillingCommand) - Method in interface safejdbc.SQL
This method is a convenience method for executing a SQL query which has a single row with a single column containing a number as a result.
singleIntQuery(String, FillingCommand) - Method in class safejdbc.SQLExecuter
This method is a convenience method for executing a SQL query which has a single row with a single column containing a number as a result.
SQL - interface safejdbc.SQL.
This is the central abstraction of the JDBC library, it provides methods to execute SQL statements.
SQLExecuter - class safejdbc.SQLExecuter.
This is probably the most important class within the SafeJDBC framework, because this class provides methods to actually access the database.
SQLExecuter(ConnectionProvider) - Constructor for class safejdbc.SQLExecuter
To create an SQLExecuter instance a ConnectionProvider is needed.
StringHolder - class safejdbc.holder.StringHolder.
This class is designed to hold a string.
StringHolder(String) - Constructor for class safejdbc.holder.StringHolder
 
subtrace(float) - Method in class safejdbc.holder.FloatHolder
 
subtract(double) - Method in class safejdbc.holder.DoubleHolder
 
subtract(int) - Method in class safejdbc.holder.IntHolder
 
subtract(long) - Method in class safejdbc.holder.LongHolder
 
subtract(short) - Method in class safejdbc.holder.ShortHolder
 

T

TXCodeBlock - interface safejdbc.TXCodeBlock.
All code in a TXCodeBlock is performed within a single transaction.
TxDataSourceAdapter - class safejdbc.TxDataSourceAdapter.
Some J2EE environments (e.g.
TxDataSourceAdapter(DataSource) - Constructor for class safejdbc.TxDataSourceAdapter
 

U

update(String) - Method in interface safejdbc.SQL
Use this method to execute modifying SQL-statements such as insert into or update.
Example: sql.update("INSERT INTO customer (id, name) VALUES (1, 'John Smith')");
update(String) - Method in class safejdbc.SQLExecuter
 
update(String, FillingCommand) - Method in interface safejdbc.SQL
Use this method to execute modifying SQL-statements such as insert into or update, with a PreparedStatement.
update(String, FillingCommand) - Method in class safejdbc.SQLExecuter
 

V

VersionInfo - class safejdbc.VersionInfo.
 
VersionInfo() - Constructor for class safejdbc.VersionInfo
 

X

xor(boolean) - Method in class safejdbc.holder.BooleanHolder
 
xor(byte) - Method in class safejdbc.holder.ByteHolder
 

A B C D E F G I L M N O P Q R S T U V X

Copyright (c) 2001, 2002 by Jan Hermanns and Arno Haase. All Rights Reserved.