|
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.ManagedConnections
public final class ManagedConnections
ManagedConnection collection.
The collection map is keyed on the name of the DatabaseReference associated with the connection (one connection per name).
This class is intended for use by a single execution thread.
Constructor Summary | |
---|---|
protected |
ManagedConnections()
Default constructor. |
Method Summary | |
---|---|
protected void |
closeAll()
Closes all ManagedConnections. |
protected void |
closeConnection(ManagedConnection managedConnection)
Closed a ManagedConnection. |
protected void |
commitAll()
Executes a commit for each ManagedConnection. |
protected ManagedConnection |
findByReferenceName(String referenceName)
Finds the ManagedConnection associated with a DatabaseReference name. |
protected ManagedConnection |
returnConnection(DatabaseReference databaseReference)
Returns the ManagedConnection associated with a supplied DatabaseReference. |
protected void |
rollbackAll()
Executes a rollback for each ManagedConnection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ManagedConnections()
Method Detail |
---|
protected void closeAll()
protected void closeConnection(ManagedConnection managedConnection)
managedConnection
- the ManagedConnection to closeprotected void commitAll() throws SQLException
SQLException
- if an exception occursprotected ManagedConnection findByReferenceName(String referenceName)
referenceName
- the DatabaseReference name associated with the
ManagedConnection to find
protected ManagedConnection returnConnection(DatabaseReference databaseReference) throws ClassNotFoundException, NamingException, SQLException
If a ManagedConnection has already been established for the reference, it will be returned. Otherwise an new ManagedConnection will be established based upon the supplied DatabaseReference.
databaseReference
- the associated DatabaseReference
ClassNotFoundException
- if the database driver class was not found
NamingException
- if a JNDI naming exception occurs
SQLException
- if an SQL exception occurs while establishing the connectionprotected void rollbackAll()
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |