@ Override public void setNull ( int parameterIndex , int sqlType ) throws SQLException { checkParameterBounds ( parameterIndex ) ; switch ( sqlType ) { case Types . TINYINT : this . parameters [ parameterIndex - 1 ] = VoltType . NULL_TINYINT ; break ; case Types . SMALLINT : this . parameters [ parameterIndex - 1 ] = VoltType . NULL_SMALLINT ; break ; case Types . INTEGER : this . parameters [ parameterIndex - 1 ] = VoltType . NULL_INTEGER ; break ; case Types . BIGINT : this . parameters [ parameterIndex - 1 ] = VoltType . NULL_BIGINT ; break ; case Types . DOUBLE : this . parameters [ parameterIndex - 1 ] = VoltType . NULL_FLOAT ; break ; case Types . DECIMAL : this . parameters [ parameterIndex - 1 ] = VoltType . NULL_DECIMAL ; break ; case Types . TIMESTAMP : this . parameters [ parameterIndex - 1 ] = VoltType . NULL_TIMESTAMP ; break ; case Types . VARBINARY : case Types . VARCHAR : case Types . NVARCHAR : case Types . OTHER : case Types . NULL : this . parameters [ parameterIndex - 1 ] = VoltType . NULL_STRING_OR_VARBINARY ; break ; default : throw SQLError . get ( SQLError . ILLEGAL_ARGUMENT ) ; } }
Sets the designated parameter to SQL NULL .