|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2018 the original author or authors. |
|
|
|
* Copyright 2002-2019 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -25,6 +25,7 @@ import java.util.Calendar; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.jdbc.InvalidResultSetAccessException; |
|
|
|
import org.springframework.jdbc.InvalidResultSetAccessException; |
|
|
|
|
|
|
|
import org.springframework.lang.Nullable; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Mirror interface for {@link javax.sql.RowSet}, representing a disconnected variant of |
|
|
|
* Mirror interface for {@link javax.sql.RowSet}, representing a disconnected variant of |
|
|
|
@ -74,6 +75,7 @@ public interface SqlRowSet extends Serializable { |
|
|
|
* @return an BigDecimal object representing the column value |
|
|
|
* @return an BigDecimal object representing the column value |
|
|
|
* @see java.sql.ResultSet#getBigDecimal(int) |
|
|
|
* @see java.sql.ResultSet#getBigDecimal(int) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Nullable |
|
|
|
BigDecimal getBigDecimal(int columnIndex) throws InvalidResultSetAccessException; |
|
|
|
BigDecimal getBigDecimal(int columnIndex) throws InvalidResultSetAccessException; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -82,6 +84,7 @@ public interface SqlRowSet extends Serializable { |
|
|
|
* @return an BigDecimal object representing the column value |
|
|
|
* @return an BigDecimal object representing the column value |
|
|
|
* @see java.sql.ResultSet#getBigDecimal(String) |
|
|
|
* @see java.sql.ResultSet#getBigDecimal(String) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Nullable |
|
|
|
BigDecimal getBigDecimal(String columnLabel) throws InvalidResultSetAccessException; |
|
|
|
BigDecimal getBigDecimal(String columnLabel) throws InvalidResultSetAccessException; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -122,6 +125,7 @@ public interface SqlRowSet extends Serializable { |
|
|
|
* @return a Date object representing the column value |
|
|
|
* @return a Date object representing the column value |
|
|
|
* @see java.sql.ResultSet#getDate(int) |
|
|
|
* @see java.sql.ResultSet#getDate(int) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Nullable |
|
|
|
Date getDate(int columnIndex) throws InvalidResultSetAccessException; |
|
|
|
Date getDate(int columnIndex) throws InvalidResultSetAccessException; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -130,6 +134,7 @@ public interface SqlRowSet extends Serializable { |
|
|
|
* @return a Date object representing the column value |
|
|
|
* @return a Date object representing the column value |
|
|
|
* @see java.sql.ResultSet#getDate(String) |
|
|
|
* @see java.sql.ResultSet#getDate(String) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Nullable |
|
|
|
Date getDate(String columnLabel) throws InvalidResultSetAccessException; |
|
|
|
Date getDate(String columnLabel) throws InvalidResultSetAccessException; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -139,6 +144,7 @@ public interface SqlRowSet extends Serializable { |
|
|
|
* @return a Date object representing the column value |
|
|
|
* @return a Date object representing the column value |
|
|
|
* @see java.sql.ResultSet#getDate(int, Calendar) |
|
|
|
* @see java.sql.ResultSet#getDate(int, Calendar) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Nullable |
|
|
|
Date getDate(int columnIndex, Calendar cal) throws InvalidResultSetAccessException; |
|
|
|
Date getDate(int columnIndex, Calendar cal) throws InvalidResultSetAccessException; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -148,6 +154,7 @@ public interface SqlRowSet extends Serializable { |
|
|
|
* @return a Date object representing the column value |
|
|
|
* @return a Date object representing the column value |
|
|
|
* @see java.sql.ResultSet#getDate(String, Calendar) |
|
|
|
* @see java.sql.ResultSet#getDate(String, Calendar) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Nullable |
|
|
|
Date getDate(String columnLabel, Calendar cal) throws InvalidResultSetAccessException; |
|
|
|
Date getDate(String columnLabel, Calendar cal) throws InvalidResultSetAccessException; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -219,9 +226,10 @@ public interface SqlRowSet extends Serializable { |
|
|
|
* (for NCHAR, NVARCHAR, LONGNVARCHAR columns). |
|
|
|
* (for NCHAR, NVARCHAR, LONGNVARCHAR columns). |
|
|
|
* @param columnIndex the column index |
|
|
|
* @param columnIndex the column index |
|
|
|
* @return a String representing the column value |
|
|
|
* @return a String representing the column value |
|
|
|
* @see java.sql.ResultSet#getNString(int) |
|
|
|
|
|
|
|
* @since 4.1.3 |
|
|
|
* @since 4.1.3 |
|
|
|
|
|
|
|
* @see java.sql.ResultSet#getNString(int) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Nullable |
|
|
|
String getNString(int columnIndex) throws InvalidResultSetAccessException; |
|
|
|
String getNString(int columnIndex) throws InvalidResultSetAccessException; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -229,9 +237,10 @@ public interface SqlRowSet extends Serializable { |
|
|
|
* (for NCHAR, NVARCHAR, LONGNVARCHAR columns). |
|
|
|
* (for NCHAR, NVARCHAR, LONGNVARCHAR columns). |
|
|
|
* @param columnLabel the column label |
|
|
|
* @param columnLabel the column label |
|
|
|
* @return a String representing the column value |
|
|
|
* @return a String representing the column value |
|
|
|
* @see java.sql.ResultSet#getNString(String) |
|
|
|
|
|
|
|
* @since 4.1.3 |
|
|
|
* @since 4.1.3 |
|
|
|
|
|
|
|
* @see java.sql.ResultSet#getNString(String) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Nullable |
|
|
|
String getNString(String columnLabel) throws InvalidResultSetAccessException; |
|
|
|
String getNString(String columnLabel) throws InvalidResultSetAccessException; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -240,6 +249,7 @@ public interface SqlRowSet extends Serializable { |
|
|
|
* @return a Object representing the column value |
|
|
|
* @return a Object representing the column value |
|
|
|
* @see java.sql.ResultSet#getObject(int) |
|
|
|
* @see java.sql.ResultSet#getObject(int) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Nullable |
|
|
|
Object getObject(int columnIndex) throws InvalidResultSetAccessException; |
|
|
|
Object getObject(int columnIndex) throws InvalidResultSetAccessException; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -248,6 +258,7 @@ public interface SqlRowSet extends Serializable { |
|
|
|
* @return a Object representing the column value |
|
|
|
* @return a Object representing the column value |
|
|
|
* @see java.sql.ResultSet#getObject(String) |
|
|
|
* @see java.sql.ResultSet#getObject(String) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Nullable |
|
|
|
Object getObject(String columnLabel) throws InvalidResultSetAccessException; |
|
|
|
Object getObject(String columnLabel) throws InvalidResultSetAccessException; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -257,6 +268,7 @@ public interface SqlRowSet extends Serializable { |
|
|
|
* @return a Object representing the column value |
|
|
|
* @return a Object representing the column value |
|
|
|
* @see java.sql.ResultSet#getObject(int, Map) |
|
|
|
* @see java.sql.ResultSet#getObject(int, Map) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Nullable |
|
|
|
Object getObject(int columnIndex, Map<String, Class<?>> map) throws InvalidResultSetAccessException; |
|
|
|
Object getObject(int columnIndex, Map<String, Class<?>> map) throws InvalidResultSetAccessException; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -266,6 +278,7 @@ public interface SqlRowSet extends Serializable { |
|
|
|
* @return a Object representing the column value |
|
|
|
* @return a Object representing the column value |
|
|
|
* @see java.sql.ResultSet#getObject(String, Map) |
|
|
|
* @see java.sql.ResultSet#getObject(String, Map) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Nullable |
|
|
|
Object getObject(String columnLabel, Map<String, Class<?>> map) throws InvalidResultSetAccessException; |
|
|
|
Object getObject(String columnLabel, Map<String, Class<?>> map) throws InvalidResultSetAccessException; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -273,9 +286,10 @@ public interface SqlRowSet extends Serializable { |
|
|
|
* @param columnIndex the column index |
|
|
|
* @param columnIndex the column index |
|
|
|
* @param type the Java type to convert the designated column to |
|
|
|
* @param type the Java type to convert the designated column to |
|
|
|
* @return a Object representing the column value |
|
|
|
* @return a Object representing the column value |
|
|
|
* @see java.sql.ResultSet#getObject(int) |
|
|
|
|
|
|
|
* @since 4.1.3 |
|
|
|
* @since 4.1.3 |
|
|
|
|
|
|
|
* @see java.sql.ResultSet#getObject(int, Class) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Nullable |
|
|
|
<T> T getObject(int columnIndex, Class<T> type) throws InvalidResultSetAccessException; |
|
|
|
<T> T getObject(int columnIndex, Class<T> type) throws InvalidResultSetAccessException; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -283,9 +297,10 @@ public interface SqlRowSet extends Serializable { |
|
|
|
* @param columnLabel the column label |
|
|
|
* @param columnLabel the column label |
|
|
|
* @param type the Java type to convert the designated column to |
|
|
|
* @param type the Java type to convert the designated column to |
|
|
|
* @return a Object representing the column value |
|
|
|
* @return a Object representing the column value |
|
|
|
* @see java.sql.ResultSet#getObject(int) |
|
|
|
|
|
|
|
* @since 4.1.3 |
|
|
|
* @since 4.1.3 |
|
|
|
|
|
|
|
* @see java.sql.ResultSet#getObject(String, Class) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Nullable |
|
|
|
<T> T getObject(String columnLabel, Class<T> type) throws InvalidResultSetAccessException; |
|
|
|
<T> T getObject(String columnLabel, Class<T> type) throws InvalidResultSetAccessException; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -310,6 +325,7 @@ public interface SqlRowSet extends Serializable { |
|
|
|
* @return a String representing the column value |
|
|
|
* @return a String representing the column value |
|
|
|
* @see java.sql.ResultSet#getString(int) |
|
|
|
* @see java.sql.ResultSet#getString(int) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Nullable |
|
|
|
String getString(int columnIndex) throws InvalidResultSetAccessException; |
|
|
|
String getString(int columnIndex) throws InvalidResultSetAccessException; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -318,6 +334,7 @@ public interface SqlRowSet extends Serializable { |
|
|
|
* @return a String representing the column value |
|
|
|
* @return a String representing the column value |
|
|
|
* @see java.sql.ResultSet#getString(String) |
|
|
|
* @see java.sql.ResultSet#getString(String) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Nullable |
|
|
|
String getString(String columnLabel) throws InvalidResultSetAccessException; |
|
|
|
String getString(String columnLabel) throws InvalidResultSetAccessException; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -326,6 +343,7 @@ public interface SqlRowSet extends Serializable { |
|
|
|
* @return a Time object representing the column value |
|
|
|
* @return a Time object representing the column value |
|
|
|
* @see java.sql.ResultSet#getTime(int) |
|
|
|
* @see java.sql.ResultSet#getTime(int) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Nullable |
|
|
|
Time getTime(int columnIndex) throws InvalidResultSetAccessException; |
|
|
|
Time getTime(int columnIndex) throws InvalidResultSetAccessException; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -334,6 +352,7 @@ public interface SqlRowSet extends Serializable { |
|
|
|
* @return a Time object representing the column value |
|
|
|
* @return a Time object representing the column value |
|
|
|
* @see java.sql.ResultSet#getTime(String) |
|
|
|
* @see java.sql.ResultSet#getTime(String) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Nullable |
|
|
|
Time getTime(String columnLabel) throws InvalidResultSetAccessException; |
|
|
|
Time getTime(String columnLabel) throws InvalidResultSetAccessException; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -343,6 +362,7 @@ public interface SqlRowSet extends Serializable { |
|
|
|
* @return a Time object representing the column value |
|
|
|
* @return a Time object representing the column value |
|
|
|
* @see java.sql.ResultSet#getTime(int, Calendar) |
|
|
|
* @see java.sql.ResultSet#getTime(int, Calendar) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Nullable |
|
|
|
Time getTime(int columnIndex, Calendar cal) throws InvalidResultSetAccessException; |
|
|
|
Time getTime(int columnIndex, Calendar cal) throws InvalidResultSetAccessException; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -352,6 +372,7 @@ public interface SqlRowSet extends Serializable { |
|
|
|
* @return a Time object representing the column value |
|
|
|
* @return a Time object representing the column value |
|
|
|
* @see java.sql.ResultSet#getTime(String, Calendar) |
|
|
|
* @see java.sql.ResultSet#getTime(String, Calendar) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Nullable |
|
|
|
Time getTime(String columnLabel, Calendar cal) throws InvalidResultSetAccessException; |
|
|
|
Time getTime(String columnLabel, Calendar cal) throws InvalidResultSetAccessException; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -360,6 +381,7 @@ public interface SqlRowSet extends Serializable { |
|
|
|
* @return a Timestamp object representing the column value |
|
|
|
* @return a Timestamp object representing the column value |
|
|
|
* @see java.sql.ResultSet#getTimestamp(int) |
|
|
|
* @see java.sql.ResultSet#getTimestamp(int) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Nullable |
|
|
|
Timestamp getTimestamp(int columnIndex) throws InvalidResultSetAccessException; |
|
|
|
Timestamp getTimestamp(int columnIndex) throws InvalidResultSetAccessException; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -368,6 +390,7 @@ public interface SqlRowSet extends Serializable { |
|
|
|
* @return a Timestamp object representing the column value |
|
|
|
* @return a Timestamp object representing the column value |
|
|
|
* @see java.sql.ResultSet#getTimestamp(String) |
|
|
|
* @see java.sql.ResultSet#getTimestamp(String) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Nullable |
|
|
|
Timestamp getTimestamp(String columnLabel) throws InvalidResultSetAccessException; |
|
|
|
Timestamp getTimestamp(String columnLabel) throws InvalidResultSetAccessException; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -377,6 +400,7 @@ public interface SqlRowSet extends Serializable { |
|
|
|
* @return a Timestamp object representing the column value |
|
|
|
* @return a Timestamp object representing the column value |
|
|
|
* @see java.sql.ResultSet#getTimestamp(int, Calendar) |
|
|
|
* @see java.sql.ResultSet#getTimestamp(int, Calendar) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Nullable |
|
|
|
Timestamp getTimestamp(int columnIndex, Calendar cal) throws InvalidResultSetAccessException; |
|
|
|
Timestamp getTimestamp(int columnIndex, Calendar cal) throws InvalidResultSetAccessException; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -386,6 +410,7 @@ public interface SqlRowSet extends Serializable { |
|
|
|
* @return a Timestamp object representing the column value |
|
|
|
* @return a Timestamp object representing the column value |
|
|
|
* @see java.sql.ResultSet#getTimestamp(String, Calendar) |
|
|
|
* @see java.sql.ResultSet#getTimestamp(String, Calendar) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Nullable |
|
|
|
Timestamp getTimestamp(String columnLabel, Calendar cal) throws InvalidResultSetAccessException; |
|
|
|
Timestamp getTimestamp(String columnLabel, Calendar cal) throws InvalidResultSetAccessException; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|