Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
C
D
E
G
I
L
N
O
P
S
U
C
close()
- Method in class org.pf.db.util.
SQLExecutor
Closes all open connections.
closeStatement(Statement)
- Method in class org.pf.db.util.
SQLExecutor
Closes the given statement.
current()
- Static method in class org.pf.db.util.
DBUtil
Returns the only instance this class supports (design pattern "Singleton")
D
DataSourceProxy
- Class in
org.pf.db.util
This class is a datasource wrapper for other datasources or simple connections.
DataSourceProxy(Connection)
- Constructor for class org.pf.db.util.
DataSourceProxy
Initialize the new instance with a ready-to-use connection.
DataSourceProxy(String, String, String)
- Constructor for class org.pf.db.util.
DataSourceProxy
Initialize the new instance with all necessary connection information.
DataSourceProxy(String)
- Constructor for class org.pf.db.util.
DataSourceProxy
Initialize the new instance with an URL for the database connection.
DataSourceProxy(DataSource, String, String)
- Constructor for class org.pf.db.util.
DataSourceProxy
DataSourceProxy(DataSource)
- Constructor for class org.pf.db.util.
DataSourceProxy
DBUtil
- Class in
org.pf.db.util
Helper and convenience methods for Java database handling.
E
execute(String)
- Method in class org.pf.db.util.
SQLExecutor
Executes the given SQL command and returns the number of affected rows.
executeSQL(String)
- Method in class org.pf.db.util.
SQLExecutor
Executes the given SQL command and returns true if the execution was successful.
executeWriteStatement(PreparedStatement)
- Method in class org.pf.db.util.
SQLExecutor
Executes the given statement and returns the number of affected rows.
G
getBlockSize()
- Method in class org.pf.db.util.
ObjectIdentifierDB
Returns the block size this generator is using.
getConnection()
- Method in class org.pf.db.util.
DataSourceProxy
Attempt to establish a database connection
getConnection(String, String)
- Method in class org.pf.db.util.
DataSourceProxy
Attempt to establish a database connection
getDbPassword()
- Method in class org.pf.db.util.
DataSourceProxy
getDbUrl()
- Method in class org.pf.db.util.
DataSourceProxy
getDbUserid()
- Method in class org.pf.db.util.
DataSourceProxy
getLogger()
- Static method in class org.pf.db.
LoggerProvider
Returns the current logger used by this component to report errors and exceptions.
getLoginTimeout()
- Method in class org.pf.db.util.
DataSourceProxy
Returns the maximum time in seconds that this data source can wait while attempting to connect to a database.
getLogWriter()
- Method in class org.pf.db.util.
DataSourceProxy
Returns the log writer for this data source
I
isDriverRegistered(String)
- Method in class org.pf.db.util.
DBUtil
Returns true if the database driver with the specified class name is registered at the java.sql.DriverManager.
isWrapperFor(Class<?>)
- Method in class org.pf.db.util.
DataSourceProxy
Always returns false.
L
loadAndRegisterDriver(String)
- Method in class org.pf.db.util.
DBUtil
Loads the database driver with the given class name and registers it at the java.sql.DriverManager.
LoggerProvider
- Class in
org.pf.db
This is the central access point for the package's logger.
N
nextIdentifier()
- Method in interface org.pf.db.util.
ObjectIdentifierProducer
Returns a new identifier which is different to the last one.
O
ObjectIdentifierDB
- Class in
org.pf.db.util
Instances of this class provide generation of unique identifiers backed by a specific database table.
ObjectIdentifierDB(DataSource)
- Constructor for class org.pf.db.util.
ObjectIdentifierDB
Initialize the new instance with the given data source.
ObjectIdentifierDB(String, DataSource)
- Constructor for class org.pf.db.util.
ObjectIdentifierDB
Initialize the new instance with the given data source.
ObjectIdentifierDB(DataSource, String)
- Constructor for class org.pf.db.util.
ObjectIdentifierDB
Initialize the new instance with the data source.
ObjectIdentifierDB(String, DataSource, String)
- Constructor for class org.pf.db.util.
ObjectIdentifierDB
Initialize the new instance with the data source.
ObjectIdentifierGenerator
- Class in
org.pf.db.util
This class provides identifiers by incrementing an internal counter, starting at 1.
ObjectIdentifierGenerator()
- Constructor for class org.pf.db.util.
ObjectIdentifierGenerator
Initialize the new instance with default values.
ObjectIdentifierGenerator(int)
- Constructor for class org.pf.db.util.
ObjectIdentifierGenerator
Initialize the new instance with the length for the generated identifiers.
ObjectIdentifierGenerator(long, int)
- Constructor for class org.pf.db.util.
ObjectIdentifierGenerator
Initialize the new instance with the length for the generated identifiers and the id to start with.
ObjectIdentifierProducer
- Interface in
org.pf.db.util
An object that generates new identifiers must implement this interface.
org.pf.db
- package org.pf.db
Database Utilities
Contains the logging interface for all classes in this component.
org.pf.db.util
- package org.pf.db.util
Database Utility Classes
Contains classes for DataSource support and object ID generation based on a database table.
P
prepareWriteStatement(String)
- Method in class org.pf.db.util.
SQLExecutor
Returns a PreparedStatement for the given SQL command.
S
setBlockSize(int)
- Method in class org.pf.db.util.
ObjectIdentifierDB
Set the block size this generator is using.
setDbPassword(String)
- Method in class org.pf.db.util.
DataSourceProxy
setDbUrl(String)
- Method in class org.pf.db.util.
DataSourceProxy
setDbUserid(String)
- Method in class org.pf.db.util.
DataSourceProxy
setDriverClassName(String)
- Method in class org.pf.db.util.
DataSourceProxy
Creates an instance of the given class name in order to register the database driver.
setLogger(Logger)
- Static method in class org.pf.db.
LoggerProvider
Replace the logger by another one.
setLoginTimeout(int)
- Method in class org.pf.db.util.
DataSourceProxy
Sets the maximum time in seconds that this data source can wait while attempting to connect to a database.
setLogWriter(PrintWriter)
- Method in class org.pf.db.util.
DataSourceProxy
Sets the log writer for this data source
SQLExecutor
- Class in
org.pf.db.util
Provides an easy to use interface to execute SQL statements against a database.
SQLExecutor(DataSource)
- Constructor for class org.pf.db.util.
SQLExecutor
Initialize the new instance with default values.
U
unwrap(Class<T>)
- Method in class org.pf.db.util.
DataSourceProxy
Always throws SQLException, becaus eno interfaces are supported.
C
D
E
G
I
L
N
O
P
S
U
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
Copyright © 2014 Manfred Duchrow Consulting & Software. All rights reserved.