Example usage for java.sql CallableStatement unwrap

List of usage examples for java.sql CallableStatement unwrap

Introduction

In this page you can find the example usage for java.sql CallableStatement unwrap.

Prototype

<T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException;

Source Link

Document

Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy.

Usage

From source file:io.lightlink.oracle.OracleStructType.java

@Override
public Object readFromCallableStatement(CallableStatement cs, int pos, RunnerContext runnerContext,
        String colName) throws SQLException, IOException {

    OracleCallableStatement ocs = cs.unwrap(OracleCallableStatement.class);
    return getMapFromStruct(unwrap(ocs.getConnection()), ocs.getSTRUCT(pos));
}