Search in sources :

Example 21 with ResultSetInternalMethods

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

the class CallableStatement method getByte.

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

Example 22 with ResultSetInternalMethods

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

the class CallableStatement method getTimestamp.

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

Example 23 with ResultSetInternalMethods

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

the class CallableStatement method getNString.

@Override
public String getNString(int parameterIndex) throws SQLException {
    ResultSetInternalMethods rs = getOutputParameters(parameterIndex);
    String retValue = rs.getNString(mapOutputParameterIndexToRsIndex(parameterIndex));
    this.outputParamWasNull = rs.wasNull();
    return retValue;
}
Also used : ResultSetInternalMethods(com.mysql.cj.jdbc.result.ResultSetInternalMethods)

Example 24 with ResultSetInternalMethods

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

the class CallableStatement method getObject.

@Override
public <T> T getObject(int parameterIndex, Class<T> type) throws SQLException {
    synchronized (checkClosed().getConnectionMutex()) {
        ResultSetInternalMethods rs = getOutputParameters(parameterIndex);
        // remove cast once 1.5, 1.6 EOL'd
        T retVal = ((ResultSetImpl) rs).getObject(mapOutputParameterIndexToRsIndex(parameterIndex), type);
        this.outputParamWasNull = rs.wasNull();
        return retVal;
    }
}
Also used : ResultSetInternalMethods(com.mysql.cj.jdbc.result.ResultSetInternalMethods) ResultSetImpl(com.mysql.cj.jdbc.result.ResultSetImpl)

Example 25 with ResultSetInternalMethods

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

the class CallableStatement method getTime.

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

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