|
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.ManagedConnection
public final class ManagedConnection
Acts as a wrapper for a JDBC connection.
This class is intended for use by a single execution thread.
Constructor Summary | |
---|---|
protected |
ManagedConnection(DatabaseReference databaseReference)
Construct based upon a supplied DatabaseReference. |
Method Summary | |
---|---|
protected void |
close()
Closes the underlying JDBC connection. |
void |
commit()
Handles the commit for the transaction. |
protected void |
finalize()
Finalize on garbage collection. |
IClobMutator |
getClobMutator()
Gets clob mutator. |
protected DatabaseReference |
getDatabaseReference()
Gets the DatabaseReference for this connection. |
Connection |
getJdbcConnection()
Gets the underlying JDBC connection. |
void |
incrementTransactionCount()
Increments the underlying TransactionCounter by one. |
protected boolean |
isJdbcConnection(Connection connection)
Compare the underlying JDBC connection with another. |
void |
prepareForTransactions()
Prepares the underlying TransactionCounter prior to any edits. |
void |
rollback()
Handles the rollback for the transaction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ManagedConnection(DatabaseReference databaseReference) throws ClassNotFoundException, NamingException, SQLException
During construction, a JDBC connection is established based upon the associated with a 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 connectionMethod Detail |
---|
public Connection getJdbcConnection()
protected DatabaseReference getDatabaseReference()
protected void close()
public void commit() throws SQLException
SQLException
- if an exception occursprotected void finalize() throws Throwable
finalize
in class Object
Throwable
public void incrementTransactionCount()
protected boolean isJdbcConnection(Connection connection)
connection
- the connection to compare
public void prepareForTransactions() throws SQLException
SQLException
- if an exception occurspublic void rollback()
public IClobMutator getClobMutator() throws SQLException
SQLException
- if error getting clob mutator
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |