HHH-9286 - Oracle10gDialect override registerResultSetOutParameter(CallableStatement statement, String name) and getResultSet(CallableStatement statement, String name)

This commit is contained in:
Andrea Boriero 2016-01-20 16:45:53 +00:00
parent 8a34206fe0
commit 08b294b49d
1 changed files with 11 additions and 0 deletions

View File

@ -64,4 +64,15 @@ public class Oracle10gDialect extends Oracle9iDialect {
public ResultSet getResultSet(CallableStatement statement, int position) throws SQLException {
return (ResultSet) statement.getObject( position );
}
@Override
public int registerResultSetOutParameter(CallableStatement statement, String name) throws SQLException {
statement.registerOutParameter( name, OracleTypesHelper.INSTANCE.getOracleCursorTypeSqlType() );
return 1;
}
@Override
public ResultSet getResultSet(CallableStatement statement, String name) throws SQLException {
return (ResultSet) statement.getObject( name );
}
}