Search in sources :

Example 16 with ResultSetInternalMethods

use of com.mysql.cj.jdbc.result.ResultSetInternalMethods in project aws-mysql-jdbc by awslabs.

the class CallableStatement method getSQLXML.

@Override
public SQLXML getSQLXML(String parameterName) throws SQLException {
    // definitely not going to be from ?=
    ResultSetInternalMethods rs = getOutputParameters(0);
    SQLXML retValue = rs.getSQLXML(fixParameterName(parameterName));
    this.outputParamWasNull = rs.wasNull();
    return retValue;
}
Also used : SQLXML(java.sql.SQLXML) ResultSetInternalMethods(com.mysql.cj.jdbc.result.ResultSetInternalMethods)

Example 17 with ResultSetInternalMethods

use of com.mysql.cj.jdbc.result.ResultSetInternalMethods in project aws-mysql-jdbc by awslabs.

the class CallableStatement method getBoolean.

@Override
public boolean getBoolean(String parameterName) throws SQLException {
    synchronized (checkClosed().getConnectionMutex()) {
        // definitely not going to be from ?=
        ResultSetInternalMethods rs = getOutputParameters(0);
        boolean retValue = rs.getBoolean(fixParameterName(parameterName));
        this.outputParamWasNull = rs.wasNull();
        return retValue;
    }
}
Also used : ResultSetInternalMethods(com.mysql.cj.jdbc.result.ResultSetInternalMethods)

Example 18 with ResultSetInternalMethods

use of com.mysql.cj.jdbc.result.ResultSetInternalMethods in project aws-mysql-jdbc by awslabs.

the class CallableStatement method getDate.

@Override
public Date getDate(int parameterIndex) throws SQLException {
    synchronized (checkClosed().getConnectionMutex()) {
        ResultSetInternalMethods rs = getOutputParameters(parameterIndex);
        Date retValue = rs.getDate(mapOutputParameterIndexToRsIndex(parameterIndex));
        this.outputParamWasNull = rs.wasNull();
        return retValue;
    }
}
Also used : ResultSetInternalMethods(com.mysql.cj.jdbc.result.ResultSetInternalMethods) Date(java.sql.Date)

Example 19 with ResultSetInternalMethods

use of com.mysql.cj.jdbc.result.ResultSetInternalMethods in project aws-mysql-jdbc by awslabs.

the class CallableStatement method getString.

@Override
public String getString(String parameterName) throws SQLException {
    synchronized (checkClosed().getConnectionMutex()) {
        // definitely not going to be from ?=
        ResultSetInternalMethods rs = getOutputParameters(0);
        String retValue = rs.getString(fixParameterName(parameterName));
        this.outputParamWasNull = rs.wasNull();
        return retValue;
    }
}
Also used : ResultSetInternalMethods(com.mysql.cj.jdbc.result.ResultSetInternalMethods)

Example 20 with ResultSetInternalMethods

use of com.mysql.cj.jdbc.result.ResultSetInternalMethods in project aws-mysql-jdbc by awslabs.

the class CallableStatement method getURL.

@Override
public URL getURL(int parameterIndex) throws SQLException {
    synchronized (checkClosed().getConnectionMutex()) {
        ResultSetInternalMethods rs = getOutputParameters(parameterIndex);
        URL retValue = rs.getURL(mapOutputParameterIndexToRsIndex(parameterIndex));
        this.outputParamWasNull = rs.wasNull();
        return retValue;
    }
}
Also used : ResultSetInternalMethods(com.mysql.cj.jdbc.result.ResultSetInternalMethods) URL(java.net.URL)

Aggregations

ResultSetInternalMethods (com.mysql.cj.jdbc.result.ResultSetInternalMethods)69 Reader (java.io.Reader)5 Date (java.sql.Date)5 NClob (java.sql.NClob)5 Time (java.sql.Time)5 Timestamp (java.sql.Timestamp)5 CancelQueryTask (com.mysql.cj.CancelQueryTask)3 CJTimeoutException (com.mysql.cj.exceptions.CJTimeoutException)3 OperationCancelledException (com.mysql.cj.exceptions.OperationCancelledException)3 CachedResultSetMetaData (com.mysql.cj.jdbc.result.CachedResultSetMetaData)3 BigDecimal (java.math.BigDecimal)3 Array (java.sql.Array)3 Blob (java.sql.Blob)3 Clob (java.sql.Clob)3 Ref (java.sql.Ref)3 RowId (java.sql.RowId)3 ClientPreparedQuery (com.mysql.cj.ClientPreparedQuery)2 PreparedQuery (com.mysql.cj.PreparedQuery)2 ResultSetImpl (com.mysql.cj.jdbc.result.ResultSetImpl)2 Message (com.mysql.cj.protocol.Message)2