org.logicalcobwebs.proxool
Class AbstractDatabaseMetaData

java.lang.Object
  extended byorg.logicalcobwebs.proxool.AbstractDatabaseMetaData
Direct Known Subclasses:
ProxyDatabaseMetaData

public abstract class AbstractDatabaseMetaData
extends java.lang.Object

Contains most of the functionality that we require to manipilate the connection. The subclass of this defines how we delegate to the real connection.

Since:
Proxool 0.7
Version:
$Revision: 1.4 $, $Date: 2003/03/03 11:11:56 $
Author:
bill, $Author: billhorsman $ (current maintainer)

Field Summary
private  java.sql.DatabaseMetaData databaseMetaData
           
private static Log LOG
           
private  boolean needToReset
          Whether we have invoked a method that requires us to reset
private  ProxyConnectionIF proxyConnection
           
 
Constructor Summary
protected AbstractDatabaseMetaData(java.sql.Connection connection, ProxyConnectionIF proxyConnection)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Whether the underlying databaseMetaData are equal
 java.sql.Connection getConnection()
          We don't want to ask the DatabaseMetaData object for the connection or we will get the delegate instead of the Proxool one.
protected  java.sql.DatabaseMetaData getDatabaseMetaData()
          Get the DatabaseMetaData from the connection
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG

private static final Log LOG

databaseMetaData

private java.sql.DatabaseMetaData databaseMetaData

proxyConnection

private ProxyConnectionIF proxyConnection

needToReset

private boolean needToReset
Whether we have invoked a method that requires us to reset

Constructor Detail

AbstractDatabaseMetaData

protected AbstractDatabaseMetaData(java.sql.Connection connection,
                                   ProxyConnectionIF proxyConnection)
                            throws java.sql.SQLException
Method Detail

equals

public boolean equals(java.lang.Object obj)
Whether the underlying databaseMetaData are equal

Parameters:
obj - the object (probably another databaseMetaData) that we are being compared to
Returns:
whether they are the same

getConnection

public java.sql.Connection getConnection()
We don't want to ask the DatabaseMetaData object for the connection or we will get the delegate instead of the Proxool one.

See Also:
DatabaseMetaData.getConnection()

getDatabaseMetaData

protected java.sql.DatabaseMetaData getDatabaseMetaData()
Get the DatabaseMetaData from the connection

Returns:
databaseMetaData

toString

public java.lang.String toString()
See Also:
Object.toString()