|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.framework.sql.ConnectionBroker
public final class ConnectionBroker
Primary interface for accessing JDBC connection resources.
This class is intended for use by a single request execution thread.
Constructor Summary | |
---|---|
ConnectionBroker()
Default constructor. |
|
ConnectionBroker(DatabaseReferences databaseReferences)
Construct based upon a configured collection of DatabaseReferences. |
Method Summary | |
---|---|
void |
closeAll()
Closes all ManagedConnections. |
void |
closeConnection(ManagedConnection managedConnection)
Closes a ManagedConnection. |
ManagedConnection |
returnConnection(String referenceTag)
Returns the ManagedConnection associated with a supplied connection tag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectionBroker()
public ConnectionBroker(DatabaseReferences databaseReferences)
databaseReferences
- the DatabaseReferences associated with the configurationMethod Detail |
---|
public void closeAll()
public void closeConnection(ManagedConnection managedConnection)
managedConnection
- the ManagedConnection to closepublic ManagedConnection returnConnection(String referenceTag) throws SQLException
If a ManagedConnection has already been established for the tag, it will be returned. Otherwise an new ManagedConnection will be established based upon the underlying DatabaseReference associated with the supplied tag.
referenceTag
- the tag associated with the database reference (can be null for default connection)
SQLException
- if an SQL exception occurs while establishing the connection
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |