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;
}
}
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;
}
}
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;
}
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;
}
}
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;
}
}
Aggregations