use of jdk.incubator.sql2.AdbaType in project oracle-db-examples by oracle.
the class OutOperation method registerOutParameters.
/**
* Registers the out parameters in ordinal position id to the JDBC type
* sqlType.
*
* @throws SQLException
*/
private void registerOutParameters() throws SQLException {
for (Map.Entry<String, SqlType> entry : outParameters.entrySet()) {
int id = Integer.parseInt(entry.getKey());
SqlType type = entry.getValue();
jdbcCallableStmt.registerOutParameter(id, toSQLType((AdbaType) type));
}
}
use of jdk.incubator.sql2.AdbaType in project oracle-db-examples by oracle-samples.
the class OutOperation method registerOutParameters.
/**
* Registers the out parameters in ordinal position id to the JDBC type
* sqlType.
*
* @throws SQLException
*/
private void registerOutParameters() throws SQLException {
for (Map.Entry<String, SqlType> entry : outParameters.entrySet()) {
int id = Integer.parseInt(entry.getKey());
SqlType type = entry.getValue();
jdbcCallableStmt.registerOutParameter(id, toSQLType((AdbaType) type));
}
}