Skip navigation links
spring-jdbc
  • Overview
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Terminally Deprecated
  • Interfaces
  • Classes
  • Exceptions
  • Methods
  • Terminally Deprecated Elements
    Element
    Description
    org.springframework.jdbc.object.SqlQuery.getRowsExpected()
    since 6.2.4 with no replacement since the property has never had any affect on behavior; to be removed in 7.0
    org.springframework.jdbc.object.SqlQuery.setRowsExpected(int)
    since 6.2.4 with no replacement since the property has never had any affect on behavior; to be removed in 7.0
  • Deprecated Interfaces
    Interface
    Description
    org.springframework.jdbc.support.lob.LobCreator
    as of 6.2, in favor of SqlBinaryValue and SqlCharacterValue
    org.springframework.jdbc.support.lob.LobHandler
    as of 6.2, in favor of SqlBinaryValue and SqlCharacterValue
    org.springframework.jdbc.support.xml.SqlXmlHandler
    as of 6.2, in favor of direct ResultSet.getSQLXML(int) and Connection.createSQLXML() usage, possibly in combination with a custom SqlValue implementation
    org.springframework.jdbc.support.xml.SqlXmlValue
    as of 6.2, in favor of a direct SqlValue implementation
    org.springframework.jdbc.support.xml.XmlBinaryStreamProvider
    as of 6.2, in favor of direct SQLXML usage
    org.springframework.jdbc.support.xml.XmlCharacterStreamProvider
    as of 6.2, in favor of direct SQLXML usage
    org.springframework.jdbc.support.xml.XmlResultProvider
    as of 6.2, in favor of direct SQLXML usage
  • Deprecated Classes
    Class
    Description
    org.springframework.jdbc.core.support.AbstractLobCreatingPreparedStatementCallback
    as of 6.2, in favor of SqlBinaryValue and SqlCharacterValue
    org.springframework.jdbc.core.support.AbstractLobStreamingResultSetExtractor
    as of 6.2 along with LobHandler, in favor of ResultSet.getBinaryStream(int)/ResultSet.getCharacterStream(int) usage
    org.springframework.jdbc.core.support.JdbcBeanDefinitionReader
    as of 5.3, in favor of Spring's common bean definition formats and/or custom reader implementations
    org.springframework.jdbc.core.support.SqlLobValue
    as of 6.2, in favor of SqlBinaryValue and SqlCharacterValue
    org.springframework.jdbc.support.lob.AbstractLobHandler
    as of 6.2, in favor of SqlBinaryValue and SqlCharacterValue
    org.springframework.jdbc.support.lob.DefaultLobHandler
    as of 6.2, in favor of SqlBinaryValue and SqlCharacterValue
    org.springframework.jdbc.support.lob.TemporaryLobCreator
    as of 6.2, in favor of SqlBinaryValue and SqlCharacterValue
    org.springframework.jdbc.support.xml.Jdbc4SqlXmlHandler
    as of 6.2, in favor of direct ResultSet.getSQLXML(int) and Connection.createSQLXML() usage, possibly in combination with a custom SqlValue implementation
  • Deprecated Exceptions
    Exceptions
    Description
    org.springframework.jdbc.LobRetrievalFailureException
    as of 6.2 along with LobHandler
    org.springframework.jdbc.support.xml.SqlXmlFeatureNotImplementedException
    as of 6.2, in favor of direct ResultSet.getSQLXML(int) and Connection.createSQLXML() usage, possibly in combination with a custom SqlValue implementation
  • Deprecated Methods
    Method
    Description
    org.springframework.jdbc.core.JdbcOperations.query(String, Object[], ResultSetExtractor<T>)
    as of 5.3, in favor of JdbcOperations.query(String, ResultSetExtractor, Object...)
    org.springframework.jdbc.core.JdbcOperations.query(String, Object[], RowCallbackHandler)
    as of 5.3, in favor of JdbcOperations.query(String, RowCallbackHandler, Object...)
    org.springframework.jdbc.core.JdbcOperations.query(String, Object[], RowMapper<T>)
    as of 5.3, in favor of JdbcOperations.query(String, RowMapper, Object...)
    org.springframework.jdbc.core.JdbcOperations.queryForList(String, Object[], Class<T>)
    as of 5.3, in favor of JdbcOperations.queryForList(String, Class, Object...)
    org.springframework.jdbc.core.JdbcOperations.queryForObject(String, Object[], Class<T>)
    as of 5.3, in favor of JdbcOperations.queryForObject(String, Class, Object...)
    org.springframework.jdbc.core.JdbcOperations.queryForObject(String, Object[], RowMapper<T>)
    as of 5.3, in favor of JdbcOperations.queryForObject(String, RowMapper, Object...)
    org.springframework.jdbc.core.JdbcTemplate.query(String, Object[], ResultSetExtractor<T>)
    org.springframework.jdbc.core.JdbcTemplate.query(String, Object[], RowCallbackHandler)
    org.springframework.jdbc.core.JdbcTemplate.query(String, Object[], RowMapper<T>)
    org.springframework.jdbc.core.JdbcTemplate.queryForList(String, Object[], Class<T>)
    org.springframework.jdbc.core.JdbcTemplate.queryForObject(String, Object[], Class<T>)
    org.springframework.jdbc.core.JdbcTemplate.queryForObject(String, Object[], RowMapper<T>)
    org.springframework.jdbc.datasource.DataSourceUtils.resetConnectionAfterTransaction(Connection, Integer)
    as of 5.1.11, in favor of DataSourceUtils.resetConnectionAfterTransaction(Connection, Integer, boolean)
    org.springframework.jdbc.object.SqlQuery.getRowsExpected()
    since 6.2.4 with no replacement since the property has never had any affect on behavior; to be removed in 7.0
    org.springframework.jdbc.object.SqlQuery.setRowsExpected(int)
    since 6.2.4 with no replacement since the property has never had any affect on behavior; to be removed in 7.0
    org.springframework.jdbc.SQLWarningException.SQLWarning()
    as of 5.3.29, in favor of SQLWarningException.getSQLWarning()
    org.springframework.jdbc.support.DatabaseStartupValidator.setValidationQuery(String)
    as of 5.3, in favor of the JDBC 4.0 connection validation
    org.springframework.jdbc.support.JdbcUtils.extractDatabaseMetaData(DataSource, String)
    as of 5.2.9, in favor of JdbcUtils.extractDatabaseMetaData(DataSource, DatabaseMetaDataCallback) with a lambda expression or method reference and a generically typed result
    org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.customTranslate(String, String, SQLException)
    as of 6.1, in favor of AbstractFallbackSQLExceptionTranslator.setCustomTranslator(org.springframework.jdbc.support.SQLExceptionTranslator)