public abstract class AbstractConnectionOperation extends java.lang.Object implements ConnectionOperation
| Modifier and Type | Field and Description |
|---|---|
protected JDBCConnection |
conn |
protected JDBCHelper |
helper |
protected static Logger |
LOGGER |
| Constructor and Description |
|---|
AbstractConnectionOperation(JDBCHelper helper) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeConnection(java.lang.Object result) |
boolean |
continueTransactionAllowed() |
protected JDBCSQLBuilderBase |
createSQLBuilder() |
protected JDBCConnection |
getConnection() |
boolean |
needTransaction() |
protected java.lang.Object |
perform_operation() |
java.lang.Object |
perform() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitperformprotected static final Logger LOGGER
protected final JDBCHelper helper
protected JDBCConnection conn
public AbstractConnectionOperation(JDBCHelper helper)
public boolean continueTransactionAllowed()
continueTransactionAllowed in interface ConnectionOperationpublic boolean needTransaction()
needTransaction in interface ConnectionOperationprotected JDBCSQLBuilderBase createSQLBuilder()
public java.lang.Object perform()
perform in interface ConnectionOperationprotected JDBCConnection getConnection() throws AccessResourceException
AccessResourceExceptionprotected java.lang.Object perform_operation()
throws java.lang.Exception
java.lang.Exceptionprotected void closeConnection(java.lang.Object result)
throws java.lang.Exception
result - the result of the operation recently executedjava.lang.Exception