@@ -85,7 +85,7 @@ protected void doBind(
85
85
WrapperOptions wrapperOptions ) throws SQLException {
86
86
final Instant instant = javaType .unwrap ( value , Instant .class , wrapperOptions );
87
87
try {
88
- // supposed to be supported in JDBC 4.2
88
+ // supported by some databases (not required by JDBC)
89
89
st .setObject ( index , instant , Types .TIMESTAMP_WITH_TIMEZONE );
90
90
}
91
91
catch (SQLException |AbstractMethodError e ) {
@@ -103,7 +103,7 @@ protected void doBind(
103
103
throws SQLException {
104
104
final Instant instant = javaType .unwrap ( value , Instant .class , wrapperOptions );
105
105
try {
106
- // supposed to be supported in JDBC 4.2
106
+ // supported by some databases (not required by JDBC)
107
107
st .setObject ( name , instant , Types .TIMESTAMP_WITH_TIMEZONE );
108
108
}
109
109
catch (SQLException |AbstractMethodError e ) {
@@ -120,7 +120,7 @@ public <X> ValueExtractor<X> getExtractor(final JavaType<X> javaType) {
120
120
@ Override
121
121
protected X doExtract (ResultSet rs , int position , WrapperOptions wrapperOptions ) throws SQLException {
122
122
try {
123
- // supposed to be supported in JDBC 4.2
123
+ // supported by some databases (not required by JDBC)
124
124
return javaType .wrap ( rs .getObject ( position , Instant .class ), wrapperOptions );
125
125
}
126
126
catch (SQLException |AbstractMethodError e ) {
@@ -132,7 +132,7 @@ protected X doExtract(ResultSet rs, int position, WrapperOptions wrapperOptions)
132
132
@ Override
133
133
protected X doExtract (CallableStatement statement , int position , WrapperOptions wrapperOptions ) throws SQLException {
134
134
try {
135
- // supposed to be supported in JDBC 4.2
135
+ // supported by some databases (not required by JDBC)
136
136
return javaType .wrap ( statement .getObject ( position , Instant .class ), wrapperOptions );
137
137
}
138
138
catch (SQLException |AbstractMethodError e ) {
@@ -144,7 +144,7 @@ protected X doExtract(CallableStatement statement, int position, WrapperOptions
144
144
@ Override
145
145
protected X doExtract (CallableStatement statement , String name , WrapperOptions wrapperOptions ) throws SQLException {
146
146
try {
147
- // supposed to be supported in JDBC 4.2
147
+ // supported by some databases (not required by JDBC)
148
148
return javaType .wrap ( statement .getObject ( name , Instant .class ), wrapperOptions );
149
149
}
150
150
catch (SQLException |AbstractMethodError e ) {
0 commit comments