Search in sources :

Example 1 with AdbaType

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));
    }
}
Also used : AdbaType(jdk.incubator.sql2.AdbaType) SqlType(jdk.incubator.sql2.SqlType) HashMap(java.util.HashMap) Map(java.util.Map)

Example 2 with AdbaType

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));
    }
}
Also used : AdbaType(jdk.incubator.sql2.AdbaType) SqlType(jdk.incubator.sql2.SqlType) HashMap(java.util.HashMap) Map(java.util.Map)

Aggregations

HashMap (java.util.HashMap)2 Map (java.util.Map)2 AdbaType (jdk.incubator.sql2.AdbaType)2 SqlType (jdk.incubator.sql2.SqlType)2