Class Oracle10R1ConnectionHelper
- java.lang.Object
-
- org.apache.jackrabbit.core.util.db.ConnectionHelper
-
- org.apache.jackrabbit.core.util.db.OracleConnectionHelper
-
- org.apache.jackrabbit.core.util.db.Oracle10R1ConnectionHelper
-
public final class Oracle10R1ConnectionHelper extends OracleConnectionHelper
The connection helper for Oracle databases of version up to 10.1. It has special blob handling.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.jackrabbit.core.util.db.ConnectionHelper
ConnectionHelper.RetryManager<T>
-
-
Field Summary
-
Fields inherited from class org.apache.jackrabbit.core.util.db.ConnectionHelper
dataSource
-
-
Constructor Summary
Constructors Constructor Description Oracle10R1ConnectionHelper(DataSource dataSrc, boolean block)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PreparedStatementexecute(PreparedStatement stmt, Object[] params)Wraps any input-stream parameters in temporary blobs and frees these again after the statement has been executed.voidinit()Retrieve theoracle.sql.BLOBclass via reflection, and initialize the values for theDURATION_SESSIONandMODE_READWRITEconstants defined there.-
Methods inherited from class org.apache.jackrabbit.core.util.db.OracleConnectionHelper
replaceCharacter
-
Methods inherited from class org.apache.jackrabbit.core.util.db.ConnectionHelper
closeResources, endBatch, exec, exec, getConnection, inBatchMode, prepareDbIdentifier, query, startBatch, tableExists, update
-
-
-
-
Constructor Detail
-
Oracle10R1ConnectionHelper
public Oracle10R1ConnectionHelper(DataSource dataSrc, boolean block)
- Parameters:
dataSrc- theDataSourceon which this helper actsblock- whether to block on connection loss until the db is up again
-
-
Method Detail
-
init
public void init() throws ExceptionRetrieve theoracle.sql.BLOBclass via reflection, and initialize the values for theDURATION_SESSIONandMODE_READWRITEconstants defined there.- Overrides:
initin classOracleConnectionHelper- Throws:
Exception- on error
-
execute
protected PreparedStatement execute(PreparedStatement stmt, Object[] params) throws SQLException
Wraps any input-stream parameters in temporary blobs and frees these again after the statement has been executed. This method is used by all methods of this class that execute SQL statements. This default implementation sets all parameters and unwrapsStreamWrapperinstances. Subclasses may override this method to do something special with the parameters. E.g., theOracle10R1ConnectionHelperoverrides it in order to add special blob handling.- Overrides:
executein classConnectionHelper- Parameters:
stmt- thePreparedStatementto executeparams- the parameters- Returns:
- the executed statement
- Throws:
SQLException- on error
-
-