Deprecate LobHandler and SqlXmlHandler abstractions
Including SqlLobValue and related support classes. Closes gh-32179
This commit is contained in:
parent
7e67da8a26
commit
7ad197e8e1
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -25,7 +25,9 @@ import org.springframework.dao.DataRetrievalFailureException;
|
|||
*
|
||||
* @author Juergen Hoeller
|
||||
* @since 1.0.2
|
||||
* @deprecated as of 6.2 along with {@link org.springframework.jdbc.support.lob.LobHandler}
|
||||
*/
|
||||
@Deprecated(since = "6.2")
|
||||
@SuppressWarnings("serial")
|
||||
public class LobRetrievalFailureException extends DataRetrievalFailureException {
|
||||
|
||||
|
|
|
|||
|
|
@ -51,7 +51,9 @@ import org.springframework.util.Assert;
|
|||
* @author Juergen Hoeller
|
||||
* @since 1.0.2
|
||||
* @see org.springframework.jdbc.support.lob.LobCreator
|
||||
* @deprecated as of 6.2, in favor of {@link SqlBinaryValue} and {@link SqlCharacterValue}
|
||||
*/
|
||||
@Deprecated(since = "6.2")
|
||||
public abstract class AbstractLobCreatingPreparedStatementCallback implements PreparedStatementCallback<Integer> {
|
||||
|
||||
private final LobHandler lobHandler;
|
||||
|
|
|
|||
|
|
@ -54,7 +54,10 @@ import org.springframework.lang.Nullable;
|
|||
* @param <T> the result type
|
||||
* @see org.springframework.jdbc.support.lob.LobHandler
|
||||
* @see org.springframework.jdbc.LobRetrievalFailureException
|
||||
* @deprecated as of 6.2 along with {@link org.springframework.jdbc.support.lob.LobHandler},
|
||||
* in favor of {@link ResultSet#getBinaryStream}/{@link ResultSet#getCharacterStream} usage
|
||||
*/
|
||||
@Deprecated(since = "6.2")
|
||||
public abstract class AbstractLobStreamingResultSetExtractor<T> implements ResultSetExtractor<T> {
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -68,7 +68,9 @@ import org.springframework.lang.Nullable;
|
|||
* @see org.springframework.jdbc.core.JdbcTemplate#update(String, Object[], int[])
|
||||
* @see org.springframework.jdbc.object.SqlUpdate#update(Object[])
|
||||
* @see org.springframework.jdbc.object.StoredProcedure#execute(java.util.Map)
|
||||
* @deprecated as of 6.2, in favor of {@link SqlBinaryValue} and {@link SqlCharacterValue}
|
||||
*/
|
||||
@Deprecated(since = "6.2")
|
||||
public class SqlLobValue implements DisposableSqlTypeValue {
|
||||
|
||||
@Nullable
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -32,7 +32,10 @@ import org.springframework.lang.Nullable;
|
|||
* @author Juergen Hoeller
|
||||
* @since 1.2
|
||||
* @see java.sql.ResultSet#findColumn
|
||||
* @deprecated as of 6.2, in favor of {@link org.springframework.jdbc.core.support.SqlBinaryValue}
|
||||
* and {@link org.springframework.jdbc.core.support.SqlCharacterValue}
|
||||
*/
|
||||
@Deprecated(since = "6.2")
|
||||
public abstract class AbstractLobHandler implements LobHandler {
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -80,7 +80,10 @@ import org.springframework.lang.Nullable;
|
|||
* @see java.sql.PreparedStatement#setString
|
||||
* @see java.sql.PreparedStatement#setAsciiStream
|
||||
* @see java.sql.PreparedStatement#setCharacterStream
|
||||
* @deprecated as of 6.2, in favor of {@link org.springframework.jdbc.core.support.SqlBinaryValue}
|
||||
* and {@link org.springframework.jdbc.core.support.SqlCharacterValue}
|
||||
*/
|
||||
@Deprecated(since = "6.2")
|
||||
public class DefaultLobHandler extends AbstractLobHandler {
|
||||
|
||||
protected final Log logger = LogFactory.getLog(getClass());
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -57,7 +57,10 @@ import org.springframework.lang.Nullable;
|
|||
* @see java.sql.PreparedStatement#setString
|
||||
* @see java.sql.PreparedStatement#setAsciiStream
|
||||
* @see java.sql.PreparedStatement#setCharacterStream
|
||||
* @deprecated as of 6.2, in favor of {@link org.springframework.jdbc.core.support.SqlBinaryValue}
|
||||
* and {@link org.springframework.jdbc.core.support.SqlCharacterValue}
|
||||
*/
|
||||
@Deprecated(since = "6.2")
|
||||
public interface LobCreator extends Closeable {
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -72,7 +72,10 @@ import org.springframework.lang.Nullable;
|
|||
* @see java.sql.ResultSet#getString
|
||||
* @see java.sql.ResultSet#getAsciiStream
|
||||
* @see java.sql.ResultSet#getCharacterStream
|
||||
* @deprecated as of 6.2, in favor of {@link org.springframework.jdbc.core.support.SqlBinaryValue}
|
||||
* and {@link org.springframework.jdbc.core.support.SqlCharacterValue}
|
||||
*/
|
||||
@Deprecated(since = "6.2")
|
||||
public interface LobHandler {
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -31,6 +31,7 @@ import org.springframework.lang.Nullable;
|
|||
* @author Juergen Hoeller
|
||||
* @since 2.5.3
|
||||
*/
|
||||
@Deprecated
|
||||
class PassThroughBlob implements Blob {
|
||||
|
||||
@Nullable
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -38,6 +38,7 @@ import org.springframework.util.FileCopyUtils;
|
|||
* @author Juergen Hoeller
|
||||
* @since 2.5.3
|
||||
*/
|
||||
@Deprecated
|
||||
class PassThroughClob implements Clob {
|
||||
|
||||
@Nullable
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -46,7 +46,10 @@ import org.springframework.util.FileCopyUtils;
|
|||
* @see DefaultLobHandler#setCreateTemporaryLob
|
||||
* @see java.sql.Connection#createBlob()
|
||||
* @see java.sql.Connection#createClob()
|
||||
* @deprecated as of 6.2, in favor of {@link org.springframework.jdbc.core.support.SqlBinaryValue}
|
||||
* and {@link org.springframework.jdbc.core.support.SqlCharacterValue}
|
||||
*/
|
||||
@Deprecated(since = "6.2")
|
||||
public class TemporaryLobCreator implements LobCreator {
|
||||
|
||||
protected static final Log logger = LogFactory.getLog(TemporaryLobCreator.class);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -19,6 +19,7 @@ package org.springframework.jdbc.support.xml;
|
|||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.Reader;
|
||||
import java.sql.Connection;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
|
|
@ -46,7 +47,11 @@ import org.springframework.lang.Nullable;
|
|||
* @see java.sql.SQLXML
|
||||
* @see java.sql.ResultSet#getSQLXML
|
||||
* @see java.sql.PreparedStatement#setSQLXML
|
||||
* @deprecated as of 6.2, in favor of direct {@link ResultSet#getSQLXML} and
|
||||
* {@link Connection#createSQLXML()} usage, possibly in combination with a
|
||||
* custom {@link org.springframework.jdbc.support.SqlValue} implementation
|
||||
*/
|
||||
@Deprecated(since = "6.2")
|
||||
public class Jdbc4SqlXmlHandler implements SqlXmlHandler {
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -16,6 +16,9 @@
|
|||
|
||||
package org.springframework.jdbc.support.xml;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
|
||||
import org.springframework.dao.InvalidDataAccessApiUsageException;
|
||||
|
||||
/**
|
||||
|
|
@ -24,7 +27,11 @@ import org.springframework.dao.InvalidDataAccessApiUsageException;
|
|||
*
|
||||
* @author Thomas Risberg
|
||||
* @since 2.5.5
|
||||
* @deprecated as of 6.2, in favor of direct {@link ResultSet#getSQLXML} and
|
||||
* {@link Connection#createSQLXML()} usage, possibly in combination with a
|
||||
* custom {@link org.springframework.jdbc.support.SqlValue} implementation
|
||||
*/
|
||||
@Deprecated(since = "6.2")
|
||||
@SuppressWarnings("serial")
|
||||
public class SqlXmlFeatureNotImplementedException extends InvalidDataAccessApiUsageException {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -18,6 +18,7 @@ package org.springframework.jdbc.support.xml;
|
|||
|
||||
import java.io.InputStream;
|
||||
import java.io.Reader;
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
|
||||
|
|
@ -45,7 +46,11 @@ import org.springframework.lang.Nullable;
|
|||
* @see java.sql.SQLXML
|
||||
* @see java.sql.ResultSet#getSQLXML
|
||||
* @see java.sql.PreparedStatement#setSQLXML
|
||||
* @deprecated as of 6.2, in favor of direct {@link ResultSet#getSQLXML} and
|
||||
* {@link Connection#createSQLXML()} usage, possibly in combination with a
|
||||
* custom {@link org.springframework.jdbc.support.SqlValue} implementation
|
||||
*/
|
||||
@Deprecated(since = "6.2")
|
||||
public interface SqlXmlHandler {
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -25,7 +25,9 @@ import org.springframework.jdbc.support.SqlValue;
|
|||
* @author Thomas Risberg
|
||||
* @since 2.5.5
|
||||
* @see org.springframework.jdbc.support.SqlValue
|
||||
* @deprecated as of 6.2, in favor of a direct {@link SqlValue} implementation
|
||||
*/
|
||||
@Deprecated(since = "6.2")
|
||||
public interface SqlXmlValue extends SqlValue {
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -26,7 +26,9 @@ import java.io.OutputStream;
|
|||
* @author Thomas Risberg
|
||||
* @since 2.5.5
|
||||
* @see java.io.OutputStream
|
||||
* @deprecated as of 6.2, in favor of direct {@link java.sql.SQLXML} usage
|
||||
*/
|
||||
@Deprecated(since = "6.2")
|
||||
public interface XmlBinaryStreamProvider {
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -26,7 +26,9 @@ import java.io.Writer;
|
|||
* @author Thomas Risberg
|
||||
* @since 2.5.5
|
||||
* @see java.io.Writer
|
||||
* @deprecated as of 6.2, in favor of direct {@link java.sql.SQLXML} usage
|
||||
*/
|
||||
@Deprecated(since = "6.2")
|
||||
public interface XmlCharacterStreamProvider {
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -25,7 +25,9 @@ import javax.xml.transform.Result;
|
|||
* @author Thomas Risberg
|
||||
* @since 2.5.5
|
||||
* @see javax.xml.transform.Result
|
||||
* @deprecated as of 6.2, in favor of direct {@link java.sql.SQLXML} usage
|
||||
*/
|
||||
@Deprecated(since = "6.2")
|
||||
public interface XmlResultProvider {
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue