org.apache.jackrabbit.core.util.db
Class OracleConnectionHelper
java.lang.Object
org.apache.jackrabbit.core.util.db.ConnectionHelper
org.apache.jackrabbit.core.util.db.OracleConnectionHelper
- Direct Known Subclasses:
- Oracle10R1ConnectionHelper
public class OracleConnectionHelper
- extends ConnectionHelper
The connection helper for Oracle databases of version 10.2 and later.
|
Method Summary |
void |
init()
Initializes the helper: checks for valid driver version. |
protected void |
replaceCharacter(StringBuffer 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_". |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OracleConnectionHelper
public OracleConnectionHelper(DataSource dataSrc,
boolean block)
- Parameters:
dataSrc - the DataSource on which this helper actsblock - whether to block on connection loss until the db is up again
init
public void init()
throws Exception
- Initializes the helper: checks for valid driver version.
Subclasses that override this method should still call it!
- Throws:
Exception - on error
replaceCharacter
protected final void replaceCharacter(StringBuffer 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_".
Called from
ConnectionHelper.prepareDbIdentifier(String). Default implementation replaces the illegal
characters with their hexadecimal encoding.
- Overrides:
replaceCharacter in class ConnectionHelper
- Parameters:
escaped - the escaped db identifierc - the character to replace
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.