Skip navigation links
B C D F G I K M O R S 

B

build(Map<String, String>) - Static method in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
Initialize a set of connection properties based on key / values in a HashMap.
buildDefault() - Static method in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
Creates a set of connection properties that use the defaults as specified in this class.

C

ConnectionFactory - Class in org.beiter.michael.db
This class creates and manages JDBC Connection instances either from: a named JNDI managed connection or a connection pool that is maintained by the DataSourceFactory factory
ConnectionProperties - Class in org.beiter.michael.db
This class specifies connection pool properties.
ConnectionProperties() - Constructor for class org.beiter.michael.db.ConnectionProperties
Constructs an empty set of connection properties, with most values being set to null, 0, or empty (depending on the type of the property).
ConnectionProperties(ConnectionProperties) - Constructor for class org.beiter.michael.db.ConnectionProperties
Creates a set of connection properties from an exist set of connection properties, making a defensive copy.

D

DataSourceFactory - Class in org.beiter.michael.db
This class creates and manages JDBC Data Source instances either from: a named JNDI managed data source or a data source pool that is maintained by this factory
DEFAULT_AUTO_COMMIT - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
DEFAULT_CACHE_STATE - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
DEFAULT_DRIVER - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
DEFAULT_LIFO - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
DEFAULT_MAX_CONN_LIFETIME_MILLIS - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
DEFAULT_MAX_IDLE - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
DEFAULT_MAX_TOTAL - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
DEFAULT_MAX_WAIT_MILLIS - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
DEFAULT_MIN_IDLE - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
DEFAULT_NUM_TESTS_PER_EVICITON_RUN - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
DEFAULT_PASSWORD - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
DEFAULT_READ_ONLY - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
DEFAULT_TEST_ON_BORROW - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
DEFAULT_TEST_ON_CREATE - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
DEFAULT_TEST_ON_RETURN - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
DEFAULT_TEST_WHILE_IDLE - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
DEFAULT_TRANSACTION_ISOLATION - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
DEFAULT_URL - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
DEFAULT_USERNAME - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
DEFAULT_VALIDATION_QUERY - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 

F

FactoryException - Exception in org.beiter.michael.db
This exception is thrown by Factories when they encounter an error that needs to be handled by the caller.
FactoryException() - Constructor for exception org.beiter.michael.db.FactoryException
 
FactoryException(String, Throwable) - Constructor for exception org.beiter.michael.db.FactoryException
 
FactoryException(String) - Constructor for exception org.beiter.michael.db.FactoryException
 
FactoryException(Throwable) - Constructor for exception org.beiter.michael.db.FactoryException
 

G

getAdditionalProperties() - Method in class org.beiter.michael.db.ConnectionProperties
 
getConnection(String) - Static method in class org.beiter.michael.db.ConnectionFactory
Return a Connection instance for a JNDI managed JDBC connection.
getConnection(ConnectionProperties) - Static method in class org.beiter.michael.db.ConnectionFactory
Return a Connection instance from a pool that manages JDBC driver based connections.
getDataSource(String) - Static method in class org.beiter.michael.db.DataSourceFactory
Return a DataSource instance for a JNDI managed JDBC data source.
getDataSource(ConnectionProperties) - Static method in class org.beiter.michael.db.DataSourceFactory
Return a DataSource instance from a pool that manages JDBC driver based connections.
getDefaultTransactionIsolation() - Method in class org.beiter.michael.db.ConnectionProperties
 
getDriver() - Method in class org.beiter.michael.db.ConnectionProperties
 
getMaxConnLifetimeMillis() - Method in class org.beiter.michael.db.ConnectionProperties
 
getMaxIdle() - Method in class org.beiter.michael.db.ConnectionProperties
 
getMaxTotal() - Method in class org.beiter.michael.db.ConnectionProperties
 
getMaxWaitMillis() - Method in class org.beiter.michael.db.ConnectionProperties
 
getMinEvictableIdleTimeMillis() - Method in class org.beiter.michael.db.ConnectionProperties
 
getMinIdle() - Method in class org.beiter.michael.db.ConnectionProperties
 
getNumTestsPerEvictionRun() - Method in class org.beiter.michael.db.ConnectionProperties
 
getPassword() - Method in class org.beiter.michael.db.ConnectionProperties
 
getSoftMinEvictableIdleTimeMillis() - Method in class org.beiter.michael.db.ConnectionProperties
 
getTimeBetweenEvictionRunsMillis() - Method in class org.beiter.michael.db.ConnectionProperties
 
getUrl() - Method in class org.beiter.michael.db.ConnectionProperties
 
getUsername() - Method in class org.beiter.michael.db.ConnectionProperties
 
getValidationQuery() - Method in class org.beiter.michael.db.ConnectionProperties
 

I

isCacheState() - Method in class org.beiter.michael.db.ConnectionProperties
 
isDefaultAutoCommit() - Method in class org.beiter.michael.db.ConnectionProperties
 
isDefaultReadOnly() - Method in class org.beiter.michael.db.ConnectionProperties
 
isLifo() - Method in class org.beiter.michael.db.ConnectionProperties
 
isTestOnBorrow() - Method in class org.beiter.michael.db.ConnectionProperties
 
isTestOnCreate() - Method in class org.beiter.michael.db.ConnectionProperties
 
isTestOnReturn() - Method in class org.beiter.michael.db.ConnectionProperties
 
isTestWhileIdle() - Method in class org.beiter.michael.db.ConnectionProperties
 

K

KEY_AUTO_COMMIT - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
KEY_CACHE_STATE - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
KEY_DRIVER - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
KEY_LIFO - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
KEY_MAX_CONN_LIFETIME_MILLIS - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
KEY_MAX_IDLE - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
KEY_MAX_TOTAL - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
KEY_MAX_WAIT_MILLIS - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
KEY_MIN_EVICTABLE_IDLE_TIME_MILLIS - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
KEY_MIN_IDLE - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
KEY_NUM_TESTS_PER_EVICITON_RUN - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
KEY_PASSWORD - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
KEY_READ_ONLY - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
KEY_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
KEY_TEST_ON_BORROW - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
KEY_TEST_ON_CREATE - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
KEY_TEST_ON_RETURN - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
KEY_TEST_WHILE_IDLE - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
KEY_TIME_BETWEEN_EVICTION_RUNS_MILLIS - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
KEY_TRANSACTION_ISOLATION - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
KEY_URL - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
KEY_USERNAME - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 
KEY_VALIDATION_QUERY - Static variable in class org.beiter.michael.db.propsbuilder.MapBasedConnPropsBuilder
 

M

MapBasedConnPropsBuilder - Class in org.beiter.michael.db.propsbuilder
This class builds a set of ConnectionProperties using the settings obtained from a Map.

O

org.beiter.michael.db - package org.beiter.michael.db
Provides classes to obtain a JDBC database connection, for instance from JNDI or from a connection pool.
org.beiter.michael.db.propsbuilder - package org.beiter.michael.db.propsbuilder
Provides classes to build the properties required for the JDBC database connection management package.

R

reset() - Static method in class org.beiter.michael.db.ConnectionFactory
Resets the internal state of the DataSourceFactory that manages the data source pools exposed by this factory.
reset() - Static method in class org.beiter.michael.db.DataSourceFactory
Resets the internal state of the factory.

S

setAdditionalProperties(Map<String, String>) - Method in class org.beiter.michael.db.ConnectionProperties
Any additional properties which have not been parsed, and for which no getter/setter exists, but are to be stored in this object nevertheless.
setCacheState(boolean) - Method in class org.beiter.michael.db.ConnectionProperties
If true, the pooled connection will cache the current readOnly and autoCommit settings when first read or written and on all subsequent writes.
setDefaultAutoCommit(boolean) - Method in class org.beiter.michael.db.ConnectionProperties
The default auto-commit state of connections created by the pool.
setDefaultReadOnly(boolean) - Method in class org.beiter.michael.db.ConnectionProperties
The default read-only state of connections created by the pool.
setDefaultTransactionIsolation(int) - Method in class org.beiter.michael.db.ConnectionProperties
The default TransactionIsolation state of connections created by this pool.
setDriver(String) - Method in class org.beiter.michael.db.ConnectionProperties
The JDBC database driver class
setLifo(boolean) - Method in class org.beiter.michael.db.ConnectionProperties
True means that the pool returns the most recently used ("last in") connection in the pool (if there are idle connections available).
setMaxConnLifetimeMillis(long) - Method in class org.beiter.michael.db.ConnectionProperties
The maximum lifetime in milliseconds of a connection.
setMaxIdle(int) - Method in class org.beiter.michael.db.ConnectionProperties
The maximum number of connections that can remain idle in the pool, without extra ones being released, or negative for no limit.
setMaxTotal(int) - Method in class org.beiter.michael.db.ConnectionProperties
The maximum number of active connections that can be allocated from this pool at the same time, or negative for no limit.
setMaxWaitMillis(long) - Method in class org.beiter.michael.db.ConnectionProperties
The maximum number of milliseconds that the pool will wait (when there are no available connections) for a connection to be returned before throwing an exception, or -1 to wait indefinitely.
setMinEvictableIdleTimeMillis(long) - Method in class org.beiter.michael.db.ConnectionProperties
The minimum amount of time an object may sit idle in the pool before it is eligable for eviction by the idle object evictor (if any).
setMinIdle(int) - Method in class org.beiter.michael.db.ConnectionProperties
The minimum number of connections that can remain idle in the pool, without extra ones being created, or zero to create none.
setNumTestsPerEvictionRun(int) - Method in class org.beiter.michael.db.ConnectionProperties
The number of objects to examine during each run of the idle object evictor thread (if any).
setPassword(String) - Method in class org.beiter.michael.db.ConnectionProperties
The password for the connection
setSoftMinEvictableIdleTimeMillis(long) - Method in class org.beiter.michael.db.ConnectionProperties
The minimum amount of time a connection may sit idle in the pool before it is eligible for eviction by the idle connection evictor, with the extra condition that at least "minIdle" connections remain in the pool.
setTestOnBorrow(boolean) - Method in class org.beiter.michael.db.ConnectionProperties
The indication of whether objects will be validated before being borrowed from the pool.
setTestOnCreate(boolean) - Method in class org.beiter.michael.db.ConnectionProperties
The indication of whether objects will be validated after creation.
setTestOnReturn(boolean) - Method in class org.beiter.michael.db.ConnectionProperties
The indication of whether objects will be validated before being returned to the pool.
setTestWhileIdle(boolean) - Method in class org.beiter.michael.db.ConnectionProperties
The indication of whether objects will be validated by the idle object evictor (if any).
setTimeBetweenEvictionRunsMillis(long) - Method in class org.beiter.michael.db.ConnectionProperties
The number of milliseconds to sleep between runs of the idle object evictor thread.
setUrl(String) - Method in class org.beiter.michael.db.ConnectionProperties
The JDBC database URL of the form jdbc:subprotocol:subname
setUsername(String) - Method in class org.beiter.michael.db.ConnectionProperties
The username for the connection
setValidationQuery(String) - Method in class org.beiter.michael.db.ConnectionProperties
The SQL query that will be used to validate connections from the pool before returning them to the caller.
B C D F G I K M O R S 
Skip navigation links

Copyright © 2014–2016 Michael Beiter . All rights reserved.