org.oXML.extras.db
Class ConnectorProxy
java.lang.Object
org.oXML.extras.db.ConnectorProxy
- All Implemented Interfaces:
- Connector
- public class ConnectorProxy
- extends java.lang.Object
- implements Connector
DataConnection proxy that will retry any query (default max 3 times) if
it throws an exception.
|
Constructor Summary |
ConnectorProxy(org.tagbox.util.Pool pool)
create a new ConnectorProxy using a specific DataConnection pool |
ConnectorProxy(org.tagbox.util.Pool pool,
int retry)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectorProxy
public ConnectorProxy(org.tagbox.util.Pool pool)
- create a new ConnectorProxy using a specific DataConnection pool
ConnectorProxy
public ConnectorProxy(org.tagbox.util.Pool pool,
int retry)
execute
public void execute(java.lang.String query)
throws DatabaseException
- Specified by:
execute in interface Connector
- Throws:
DatabaseException
execute
protected void execute(java.lang.String query,
int retries)
throws DatabaseException
- Throws:
DatabaseException
execute
public void execute(java.lang.String query,
Template target,
RuntimeContext context)
throws ObjectBoxException
- Description copied from interface:
Connector
- execute the statement
- Specified by:
execute in interface Connector
- Parameters:
query - the statement to be executedtarget - the template of what the result should look like
- Throws:
ObjectBoxException
execute
protected void execute(java.lang.String query,
Template target,
RuntimeContext context,
int retries)
throws ObjectBoxException
- Throws:
ObjectBoxException
autoCommit
public boolean autoCommit()
throws DatabaseException
- Throws:
DatabaseException
autoCommit
public void autoCommit(boolean auto)
throws DatabaseException
- Throws:
DatabaseException
commit
public void commit()
throws DatabaseException
- Throws:
DatabaseException
rollback
public void rollback()
throws DatabaseException
- Throws:
DatabaseException