Class OracleSpecialDBOperation
- java.lang.Object
-
- com.sun.jdo.spi.persistence.support.sqlstore.database.BaseSpecialDBOperation
-
- com.sun.jdo.spi.persistence.support.sqlstore.database.oracle.OracleSpecialDBOperation
-
- All Implemented Interfaces:
SpecialDBOperation
public class OracleSpecialDBOperation extends BaseSpecialDBOperation
OracleSpecialDBOperation is derived class for Oracle specific operation.- Author:
- Shing Wai Chan, Mitesh Meswani
-
-
Constructor Summary
Constructors Constructor Description OracleSpecialDBOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbindFixedCharColumn(PreparedStatement stmt, int index, String strVal, int length)Implements special handling of char columns on Oracle.voiddefineColumnTypeForResult(PreparedStatement ps, List columns)Defines Column type for result for specified ps.voidinitialize(DatabaseMetaData metaData, String identifier)Initializes driver specific behavior classes by determining the characteristics of the jdbc driver used with this DataSource.
-
-
-
Method Detail
-
initialize
public void initialize(DatabaseMetaData metaData, String identifier) throws SQLException
Initializes driver specific behavior classes by determining the characteristics of the jdbc driver used with this DataSource.- Specified by:
initializein interfaceSpecialDBOperation- Overrides:
initializein classBaseSpecialDBOperation- Parameters:
metaData- DatbaseMetaData of the database for which an instance implementing this interface is ingratiated.identifier- Identifier of object used to obtain databaseMetaData. This can be null in non managed environment.- Throws:
SQLException
-
defineColumnTypeForResult
public void defineColumnTypeForResult(PreparedStatement ps, List columns) throws SQLException
Defines Column type for result for specified ps.- Specified by:
defineColumnTypeForResultin interfaceSpecialDBOperation- Overrides:
defineColumnTypeForResultin classBaseSpecialDBOperation- Parameters:
ps- java.sql.PreparedStatementcolumns- List of ColumnElement corresponding to select clause- Throws:
SQLException
-
bindFixedCharColumn
public void bindFixedCharColumn(PreparedStatement stmt, int index, String strVal, int length) throws SQLException
Implements special handling of char columns on Oracle.- Specified by:
bindFixedCharColumnin interfaceSpecialDBOperation- Overrides:
bindFixedCharColumnin classBaseSpecialDBOperation- Parameters:
stmt- java.sql.PreparedStatementindex- Index of paramater marker inps.strVal- value that needs to bound.length- length of the column to which strVal is bound.- Throws:
SQLException
-
-