| java.lang.Object net.sourceforge.orbroker.BrokerConnection
All known Subclasses: net.sourceforge.orbroker.QueryableConnection,
BrokerConnection | abstract class BrokerConnection (Code) | | An abstract connection wrapper.
author: Nils Kilden-Pedersen |
BrokerConnection | protected BrokerConnection(Broker broker, Connection connection)(Code) | | Create BrokerConnection with external JDBC connection.
Will not retry a stale connection.
Parameters: broker - Parameters: connection - |
BrokerConnection | protected BrokerConnection(Broker broker, Integer isolationLevel)(Code) | | Create BrokerConnection with a Broker connection.
Will retry a stale connection.
Parameters: broker - Parameters: isolationLevel - |
addContext | final void addContext(ConnectionContext addContext)(Code) | | Add context parameters.
Parameters: addContext - The context to add. |
dropConnection | final protected void dropConnection()(Code) | | Release connection, and close if necessary.
|
getClosedConnectionMessage | abstract protected String getClosedConnectionMessage()(Code) | | |
getFinalizeWarning | abstract protected String getFinalizeWarning()(Code) | | |
getParameter | final public Object getParameter(String name)(Code) | | Get parameter.
Used to retrieve OUT/INOUT parameters from stored procedures.
Both input and output parameters are stored in the same context,
so any parameter set using
BrokerConnection.setParameter(String,Object) will be available with this method. Also if a stored procedure has
an output parameter that needs to be used as input in another
SQL statements, it's immediately available, i.e. there's no need
to code like this:
txn.setParameter("parm", txn.getParameter("parm"));
Parameters: name - parameter name parameter value |
getTransactionIsolationText | final protected String getTransactionIsolationText()(Code) | | |
isAutoCommit | final protected boolean isAutoCommit()(Code) | | |
retryFailedStatement | protected boolean retryFailedStatement(SQLException e)(Code) | | Retry is guaranteed to return true 0 or 1 times only,
so it can be used recursively without looping infinitely.
Parameters: e - exception true if statement should be retried |
setConnectionProperties | abstract protected void setConnectionProperties() throws SQLException(Code) | | |
setParameter | final public void setParameter(String name, Object value)(Code) | | Set named parameter.
Parameters: name - parameter name Parameters: value - parameter value |
setTextReplacement | final public void setTextReplacement(String key, String value)(Code) | | Set a text replacement value. This will replace a {{key}}
string with the value.
This will override any value set on Broker.
Parameters: key - Text replacement key Parameters: value - Text replacement value See Also: BrokerConnection.setTextReplacements(Properties) |
setTextReplacements | final public void setTextReplacements(Properties textReplacements)(Code) | | Set text replacement values. This will replace all {{key}}
type properties in an sql-statement with the values.
This will override any value set on Broker.
Parameters: textReplacements - The replacement values to set. See Also: BrokerConnection.setTextReplacement(String,String) |
shouldConnectionClose | abstract protected boolean shouldConnectionClose()(Code) | | |
supportsBatch | final protected boolean supportsBatch()(Code) | | |
supportsScrollable | final protected boolean supportsScrollable()(Code) | | |
|
|