|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.javatools.db.DatabaseFactory.ConnectionCreator
public abstract static class DatabaseFactory.ConnectionCreator
A connection creator should be registered for each connection store that exists. The connection store should be able to create new Connections given the name of a connection.
| Field Summary | |
|---|---|
protected java.util.Map<java.lang.String,Database> |
m_dbs
|
| Constructor Summary | |
|---|---|
DatabaseFactory.ConnectionCreator()
|
|
| Method Summary | |
|---|---|
protected void |
cacheDatabase(java.lang.String connName,
Database db)
|
protected abstract java.sql.Connection |
createConnectionImpl(java.lang.String connName)
Creates a Connection from a registered connection store if a connection of given name exists. |
Database |
findDatabase(java.lang.String connName)
|
protected abstract java.lang.String |
getStoreName()
|
protected boolean |
isActive()
|
boolean |
renameDatabase(java.lang.String oldName,
java.lang.String newName)
|
boolean |
shouldClearCaches(java.sql.Connection oldConn,
java.sql.Connection newConn,
Database db)
Called on reconnect to test whether a Database should clear its caches of objects and privileges before using the new conenction. |
Database |
uncacheDatabase(java.lang.String connName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Map<java.lang.String,Database> m_dbs
| Constructor Detail |
|---|
public DatabaseFactory.ConnectionCreator()
| Method Detail |
|---|
protected abstract java.sql.Connection createConnectionImpl(java.lang.String connName)
throws DBException
DBExceptionprotected boolean isActive()
protected abstract java.lang.String getStoreName()
public boolean shouldClearCaches(java.sql.Connection oldConn,
java.sql.Connection newConn,
Database db)
oldConn - the old connection to compare - this should already be
closed.newConn - the new connection to compare - this should have been
created by createConnectionImpl(String) to replace the
closed oldConn.db - the Database that will have its caches cleared.
public Database findDatabase(java.lang.String connName)
public Database uncacheDatabase(java.lang.String connName)
protected void cacheDatabase(java.lang.String connName,
Database db)
public boolean renameDatabase(java.lang.String oldName,
java.lang.String newName)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||