|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.logicalcobwebs.proxool.ProxyFactory
A central place to build proxy objects (connections
and statements).
| Field Summary | |
private static Log |
LOG
|
| Constructor Summary | |
(package private) |
ProxyFactory()
|
| Method Summary | |
protected static ProxyConnection |
buildProxyConnection(long id,
ConnectionPool connectionPool,
int status)
|
protected static java.sql.Statement |
createProxyStatement(java.sql.Statement delegate,
ConnectionPool connectionPool,
ProxyConnectionIF proxyConnection,
java.lang.String sqlStatement)
|
protected static java.sql.Connection |
getConnection(ProxyConnectionIF proxyConnection)
Get a Connection from the ProxyConnection |
protected static java.sql.DatabaseMetaData |
getDatabaseMetaData(java.sql.Connection connection,
ProxyConnectionIF proxyConnection)
Create a new DatabaseMetaData from a connection |
static java.sql.Connection |
getDelegateConnection(java.sql.Connection connection)
Gets the real Connection that we got from the delegate driver |
protected static java.sql.Statement |
getDelegateStatement(java.sql.Statement statement)
Gets the real Statement that we got from the delegate driver |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final Log LOG
| Constructor Detail |
ProxyFactory()
| Method Detail |
protected static ProxyConnection buildProxyConnection(long id,
ConnectionPool connectionPool,
int status)
throws java.sql.SQLException
java.sql.SQLExceptionprotected static java.sql.Connection getConnection(ProxyConnectionIF proxyConnection)
proxyConnection - where to find the connection
protected static java.sql.Statement getDelegateStatement(java.sql.Statement statement)
statement - proxy statement
public static java.sql.Connection getDelegateConnection(java.sql.Connection connection)
connection - proxy connection
protected static java.sql.Statement createProxyStatement(java.sql.Statement delegate,
ConnectionPool connectionPool,
ProxyConnectionIF proxyConnection,
java.lang.String sqlStatement)
protected static java.sql.DatabaseMetaData getDatabaseMetaData(java.sql.Connection connection,
ProxyConnectionIF proxyConnection)
throws java.sql.SQLException
connection - the proxy connection we are using
java.sql.SQLException - if the delegfate connection couldn't get the metaData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||