net.spy.pool
Class JDBCPoolAble

java.lang.Object
  extended by net.spy.SpyObject
      extended by net.spy.pool.PoolAble
          extended by net.spy.pool.JDBCPoolAble

public class JDBCPoolAble
extends PoolAble

PoolAble object for containing a JDBC object.


Field Summary
 
Fields inherited from class net.spy.pool.PoolAble
MAY_CLEAN, MUST_CLEAN
 
Constructor Summary
JDBCPoolAble(java.lang.Object theObject, int poolHash)
          Get a JDBC poolable.
JDBCPoolAble(java.lang.Object theObject, long maxAge, int poolHash)
          Get a JDBC poolable.
 
Method Summary
 void checkIn()
          Overridden to deal with SQL Warnings.
 void discard()
          Discard the object.
 boolean isAlive()
          Find out of the JDBCPoolAble represents a usable object.
 
Methods inherited from class net.spy.pool.PoolAble
activate, checkOut, debug, getObject, getObjectID, intGetObject, isAvailable, isCheckedOut, pruneStatus, setAvailable, setMaxAge, setObjectID, setPoolName, setUnavailable, toString
 
Methods inherited from class net.spy.SpyObject
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JDBCPoolAble

public JDBCPoolAble(java.lang.Object theObject,
                    int poolHash)
Get a JDBC poolable.


JDBCPoolAble

public JDBCPoolAble(java.lang.Object theObject,
                    long maxAge,
                    int poolHash)
Get a JDBC poolable.

Method Detail

discard

public void discard()
Description copied from class: PoolAble
Discard the object. Anything that extends from this class needs to call super.discard() when it's done.

Overrides:
discard in class PoolAble
See Also:
PoolAble

isAlive

public boolean isAlive()
Find out of the JDBCPoolAble represents a usable object. This is done by doing a select of a constant and verifying it gets the same value in the return.

Overrides:
isAlive in class PoolAble
Returns:
true if the object will be usable

checkIn

public void checkIn()
Overridden to deal with SQL Warnings.

Overrides:
checkIn in class PoolAble
See Also:
PoolAble


Copyright © 1995-2005 SPY Internetworking. All Rights Reserved.