com.p6spy.engine.spy

Class P6Connection

public class P6Connection extends P6Base implements Connection

Description: Wrapper class for Connection $Author: cheechq $ $Revision: 1.4 $ $Date: 2003/06/03 19:20:25 $ $Id: P6Connection.java,v 1.4 2003/06/03 19:20:25 cheechq Exp $ $Log: P6Connection.java,v $ Revision 1.4 2003/06/03 19:20:25 cheechq removed unused imports Revision 1.3 2003/01/03 20:33:42 aarvesen Added getJDBC() method to return the underlying jdbc object. Revision 1.2 2002/12/06 22:40:50 aarvesen Extend P6Base. New factory registration in the constructor. Some jdk 1.4. hacks Revision 1.1 2002/05/24 07:31:13 jeffgoke version 1 rewrite Revision 1.7 2002/05/18 06:39:52 jeffgoke Peter Laird added Outage detection. Added junit tests for outage detection. Fixed multi-driver tests. Revision 1.6 2002/05/16 04:58:40 jeffgoke Viktor Szathmary added multi-driver support. Rewrote P6SpyOptions to be easier to manage. Fixed several bugs. Revision 1.5 2002/04/27 20:24:01 jeffgoke added logging of commit statements and rollback statements Revision 1.4 2002/04/11 04:18:03 jeffgoke fixed bug where callable & prepared were not passing their ancestors the correct constructor information Revision 1.3 2002/04/10 04:24:26 jeffgoke added support for callable statements and fixed numerous bugs that allowed the real class to be returned Revision 1.2 2002/04/07 20:43:59 jeffgoke fixed bug that caused null connection to return an empty connection instead of null. added an option allowing the user to truncate. added a release target to the build to create the release files. Revision 1.1.1.1 2002/04/07 04:52:25 jeffgoke no message Revision 1.2 2001-08-02 07:52:43-05 andy <> Revision 1.1 2001-07-30 23:03:31-05 andy <> Revision 1.0 2001-07-30 17:46:22-05 andy Initial revision
Field Summary
protected static intcounter
protected intid
protected Connectionpassthru
Constructor Summary
P6Connection(P6Factory factory, Connection conn)
Method Summary
voidclearWarnings()
voidclose()
voidcommit()
StatementcreateStatement()
StatementcreateStatement(int p0, int p1)
StatementcreateStatement(int p0, int p1, int p2)
booleangetAutoCommit()
StringgetCatalog()
intgetHoldability()
intgetId()
ConnectiongetJDBC()
Returns the underlying JDBC object (in this case, a java.sql.Connection)
DatabaseMetaDatagetMetaData()
intgetTransactionIsolation()
MapgetTypeMap()
SQLWarninggetWarnings()
booleanisClosed()
booleanisReadOnly()
StringnativeSQL(String p0)
CallableStatementprepareCall(String p0)
CallableStatementprepareCall(String p0, int p1, int p2)
CallableStatementprepareCall(String p0, int p1, int p2, int p3)
PreparedStatementprepareStatement(String p0)
PreparedStatementprepareStatement(String p0, int p1, int p2)
PreparedStatementprepareStatement(String p0, int p1, int p2, int p3)
PreparedStatementprepareStatement(String p0, int p1)
PreparedStatementprepareStatement(String p0, int[] p1)
PreparedStatementprepareStatement(String p0, String[] p1)
voidreleaseSavepoint(Savepoint p0)
voidrollback()
voidrollback(Savepoint p0)
voidsetAutoCommit(boolean p0)
voidsetCatalog(String p0)
voidsetHoldability(int p0)
voidsetReadOnly(boolean p0)
SavepointsetSavepoint()
SavepointsetSavepoint(String p0)
voidsetTransactionIsolation(int p0)
voidsetTypeMap(Map p0)

Field Detail

counter

protected static int counter

id

protected int id

passthru

protected Connection passthru

Constructor Detail

P6Connection

public P6Connection(P6Factory factory, Connection conn)

Method Detail

clearWarnings

public void clearWarnings()

close

public void close()

commit

public void commit()

createStatement

public Statement createStatement()

createStatement

public Statement createStatement(int p0, int p1)

createStatement

public Statement createStatement(int p0, int p1, int p2)

getAutoCommit

public boolean getAutoCommit()

getCatalog

public String getCatalog()

getHoldability

public int getHoldability()

getId

public int getId()

getJDBC

public Connection getJDBC()
Returns the underlying JDBC object (in this case, a java.sql.Connection)

Returns: the wrapped JDBC object

getMetaData

public DatabaseMetaData getMetaData()

getTransactionIsolation

public int getTransactionIsolation()

getTypeMap

public Map getTypeMap()

getWarnings

public SQLWarning getWarnings()

isClosed

public boolean isClosed()

isReadOnly

public boolean isReadOnly()

nativeSQL

public String nativeSQL(String p0)

prepareCall

public CallableStatement prepareCall(String p0)

prepareCall

public CallableStatement prepareCall(String p0, int p1, int p2)

prepareCall

public CallableStatement prepareCall(String p0, int p1, int p2, int p3)

prepareStatement

public PreparedStatement prepareStatement(String p0)

prepareStatement

public PreparedStatement prepareStatement(String p0, int p1, int p2)

prepareStatement

public PreparedStatement prepareStatement(String p0, int p1, int p2, int p3)

prepareStatement

public PreparedStatement prepareStatement(String p0, int p1)

prepareStatement

public PreparedStatement prepareStatement(String p0, int[] p1)

prepareStatement

public PreparedStatement prepareStatement(String p0, String[] p1)

releaseSavepoint

public void releaseSavepoint(Savepoint p0)

rollback

public void rollback()

rollback

public void rollback(Savepoint p0)

setAutoCommit

public void setAutoCommit(boolean p0)

setCatalog

public void setCatalog(String p0)

setHoldability

public void setHoldability(int p0)

setReadOnly

public void setReadOnly(boolean p0)

setSavepoint

public Savepoint setSavepoint()

setSavepoint

public Savepoint setSavepoint(String p0)

setTransactionIsolation

public void setTransactionIsolation(int p0)

setTypeMap

public void setTypeMap(Map p0)