org.enhydra.jdbc.pool
Class GenerationObject

java.lang.Object
  extended byorg.enhydra.jdbc.pool.GenerationObject

public class GenerationObject
extends java.lang.Object

This class allows to store multiple things in the Generic Pool hashtable. In our first implementation, we store the generation number. It is used to close down all pooled objects that were open when a error occured, allowing new pooled objects to be allocated


Constructor Summary
GenerationObject(java.lang.Object o, int generation)
          constructor
GenerationObject(java.lang.Object o, int generation, java.lang.String user, java.lang.String password)
          constructor
 
Method Summary
 int getGeneration()
           
 java.lang.Object getObj()
           
 java.lang.String getPassword()
           
 java.lang.String getUser()
           
 void killObject()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenerationObject

public GenerationObject(java.lang.Object o,
                        int generation)
constructor


GenerationObject

public GenerationObject(java.lang.Object o,
                        int generation,
                        java.lang.String user,
                        java.lang.String password)
constructor

Method Detail

getGeneration

public int getGeneration()

getObj

public java.lang.Object getObj()

getUser

public java.lang.String getUser()

getPassword

public java.lang.String getPassword()

killObject

public void killObject()