All Packages  Class Hierarchy

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Index of all Fields and Methods

A

acceptsURL(String). Method in class com.bitmechanic.sql.ConnectionPoolManager
Returns true of url starts with URL_PREFIX
addAlias(ConnectionPool). Method in class com.bitmechanic.sql.ConnectionPoolManager
Adds an alias to the pool using a supplied ConnectionPool object.
addAlias(String, String, String, String, String, int, int, int). Method in class com.bitmechanic.sql.ConnectionPoolManager
Adds an alias to the pool.
addAlias(String, String, String, String, String, int, int, int, int). Method in class com.bitmechanic.sql.ConnectionPoolManager
Adds an alias to the pool.

B

booleanToString(boolean). Static method in class com.bitmechanic.sql.SQLUtil
returns "y" if b is true.

C

connect(String, Properties). Method in class com.bitmechanic.sql.ConnectionPoolManager
Returns a connection from pool
ConnectionPool(String, String, String, String, int, int, int). Constructor for class com.bitmechanic.sql.ConnectionPool
Creates a Connection pool with no maxCheckout parameter.
ConnectionPool(String, String, String, String, int, int, int, int). Constructor for class com.bitmechanic.sql.ConnectionPool
Creates a Connection pool
ConnectionPoolManager(). Constructor for class com.bitmechanic.sql.ConnectionPoolManager
Creates a pool that doesn't monitor itself to check for idle/stale connections.
ConnectionPoolManager(int). Constructor for class com.bitmechanic.sql.ConnectionPoolManager
Creates a pool with a monitoring thread that checks the pool to make sure no connections are stale or idle.

D

dequeue(). Method in class com.bitmechanic.util.Queue

E

empty(). Method in class com.bitmechanic.util.Queue
enqueue(Object). Method in class com.bitmechanic.util.Queue
escapeString(String). Static method in class com.bitmechanic.sql.SQLUtil
Calls escapeString(str, int) with a length of 999999
escapeString(String, int). Static method in class com.bitmechanic.sql.SQLUtil
Escapes ' with '' and truncates the string to the length specified.

F

formatHiResMysqlDate(Date). Static method in class com.bitmechanic.sql.SQLUtil
Formats a date using the SimpleDateFormat "yyyy-MM-dd HH:mm:ss"
formatMysqlDate(Date). Static method in class com.bitmechanic.sql.SQLUtil
Formats a date using the SimpleDateFormat "yyyy-MM-dd"

G

getAlias(). Method in class com.bitmechanic.sql.ConnectionPool
Returns the alias for this pool.
getConnection(). Method in class com.bitmechanic.sql.ConnectionPool
Returns a connection for the pool.
getMajorVersion(). Method in class com.bitmechanic.sql.ConnectionPoolManager
getMaxConn(). Method in class com.bitmechanic.sql.ConnectionPool
Returns the maximum number of connections this pool can open
getMinorVersion(). Method in class com.bitmechanic.sql.ConnectionPoolManager
getNumCheckoutTimeouts(). Method in class com.bitmechanic.sql.ConnectionPool
Returns the number of times a Connection has been closed by the reapIdleConnections() method due to being checked out for longer than the checkoutSeconds interval.
getNumRequests(). Method in class com.bitmechanic.sql.ConnectionPool
Returns the number of times a Connection has been checked out from the pool
getNumWaits(). Method in class com.bitmechanic.sql.ConnectionPool
Returns the number of times a thread has had to block on wait() as a result of all PooledConnections being in use.
getPool(String). Method in class com.bitmechanic.sql.ConnectionPoolManager
Returns the pool with the supplied alias
getPools(). Method in class com.bitmechanic.sql.ConnectionPoolManager
Returns an Enumeration of the ConnectionPool objects currently created
getPropertyInfo(String, Properties). Method in class com.bitmechanic.sql.ConnectionPoolManager

J

JavaAlarm(Runnable, long). Constructor for class com.bitmechanic.util.JavaAlarm
jdbcCompliant(). Method in class com.bitmechanic.sql.ConnectionPoolManager
Always returns false since I haven't sent this code to Sun for approval

N

notNull(String). Static method in class com.bitmechanic.sql.SQLUtil
Checks if str is null, and if it is returns an empty string.

P

parseMysqlDate(String). Static method in class com.bitmechanic.sql.SQLUtil

Q

Queue(). Constructor for class com.bitmechanic.util.Queue
Queue(int). Constructor for class com.bitmechanic.util.Queue

R

reapIdleConnections(). Method in class com.bitmechanic.sql.ConnectionPool
Check all connections to make sure they haven't: 1) gone idle for too long
2) been checked out by a thread for too long (cursor leak)
removeAlias(String). Method in class com.bitmechanic.sql.ConnectionPoolManager
Closes all Connections in the pool with the supplied alias
removeAllConnections(). Method in class com.bitmechanic.sql.ConnectionPool
Removes all connections from the pool and calls close() on them.
returnConnection(PooledConnection). Method in class com.bitmechanic.sql.ConnectionPool
run(). Method in class com.bitmechanic.sql.ConnectionPoolManager
Monitors each ConnectionPool and makes sure that no connection has gone idle or has been checked out for too long.
run(). Method in class com.bitmechanic.util.JavaAlarm

S

setTracing(boolean). Method in class com.bitmechanic.sql.ConnectionPool
Turns tracing on or off.
setTracing(boolean). Method in class com.bitmechanic.sql.ConnectionPoolManager
Turns tracing on or off.
size(). Method in class com.bitmechanic.sql.ConnectionPool
Returns the current number of Connections in the pool.
size(). Method in class com.bitmechanic.util.Queue
SQLUtil(). Constructor for class com.bitmechanic.sql.SQLUtil
stringToBoolean(String). Static method in class com.bitmechanic.sql.SQLUtil
returns true if str is not null and equals "y" otherwise returns true

T

TimeoutException(String). Constructor for class com.bitmechanic.util.TimeoutException

U

URL_PREFIX. Static variable in class com.bitmechanic.sql.ConnectionPoolManager