# Deprecated API

## Contents

- Deprecated Classes
- Deprecated Methods

Deprecated Classes
Class and Description
com.taosdata.jdbc.rs.RestfulConnection Use WebSocket connection instead.
com.taosdata.jdbc.rs.RestfulDatabaseMetaData Use WebSocket connection instead.
com.taosdata.jdbc.rs.RestfulDriver Use WebSocket connection instead.
com.taosdata.jdbc.rs.RestfulParameterMetaData Use WebSocket connection instead.
com.taosdata.jdbc.rs.RestfulPreparedStatement Use WebSocket connection instead.
com.taosdata.jdbc.rs.RestfulResultSet Use WebSocket connection instead.
com.taosdata.jdbc.rs.RestfulResultSetMetaData Use WebSocket connection instead.
com.taosdata.jdbc.rs.RestfulStatement Use WebSocket connection instead.
com.taosdata.jdbc.SchemalessWriter This class will be removed in future. Please use writer functions in connection object instead.

Deprecated Methods
Method and Description
com.taosdata.jdbc.TSDBPreparedStatement.columnDataClearBatch()
com.taosdata.jdbc.tmq.TaosConsumer.commitCallbackHandler(int) This callback method is no longer used.
com.taosdata.jdbc.AbstractResultSet.getBigDecimal(int, int) Use `ResultSet.getBigDecimal(int)` or `AbstractResultSet.getBigDecimal(String)` instead.
com.taosdata.jdbc.AbstractResultSet.getBigDecimal(String, int) Use `ResultSet.getBigDecimal(int)` or `AbstractResultSet.getBigDecimal(String)` instead.
com.taosdata.jdbc.AbstractResultSet.getUnicodeStream(int) Use `AbstractResultSet.getCharacterStream(int)` instead.
com.taosdata.jdbc.AbstractResultSet.getUnicodeStream(String) Use `AbstractResultSet.getCharacterStream(String)` instead.
com.taosdata.jdbc.SchemalessWriter.write(String[], SchemalessProtocolType, SchemalessTimestampType, String, Integer, Long)
com.taosdata.jdbc.SchemalessWriter.writeRaw(String, SchemalessProtocolType, SchemalessTimestampType, String, Integer, Long)