public class OracleConnectionHelper extends ConnectionHelper
ConnectionHelper.RetryManager<T>
dataSource
Constructor and Description |
---|
OracleConnectionHelper(DataSource dataSrc,
boolean block) |
Modifier and Type | Method and Description |
---|---|
void |
init()
Initializes the helper: checks for valid driver version.
|
protected void |
replaceCharacter(StringBuilder escaped,
char c)
Since Oracle only supports table names up to 30 characters in
length illegal characters are simply replaced with "_" rather than
escaping them with "_x0000_".
|
closeResources, endBatch, exec, exec, execute, getConnection, inBatchMode, prepareDbIdentifier, query, startBatch, tableExists, update
public OracleConnectionHelper(DataSource dataSrc, boolean block)
dataSrc
- the DataSource
on which this helper actsblock
- whether to block on connection loss until the db is up againpublic void init() throws Exception
Exception
- on errorprotected final void replaceCharacter(StringBuilder escaped, char c)
ConnectionHelper.prepareDbIdentifier(String)
. Default implementation replaces the illegal
characters with their hexadecimal encoding.replaceCharacter
in class ConnectionHelper
escaped
- the escaped db identifierc
- the character to replaceCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.