HHH-14800 Remove redundant doBindNull() overrides

This commit is contained in:
Karel Maesen 2021-09-20 19:24:02 +02:00
parent 3995c644d1
commit 9de428ac1a
1 changed files with 0 additions and 11 deletions

View File

@ -125,17 +125,6 @@ public class PGGeometryTypeDescriptor implements JdbcTypeDescriptor {
st.setObject( name, obj );
}
//this and the next override is ONLY necessary as long as the distinction between SQLType and JDBC Type is not resolved
@Override
protected void doBindNull(PreparedStatement st, int index, WrapperOptions options) throws SQLException {
st.setNull( index, Types.OTHER );
}
@Override
protected void doBindNull(CallableStatement st, String name, WrapperOptions options) throws SQLException {
st.setNull( name, Types.OTHER );
}
private PGobject toPGobject(X value, WrapperOptions options) throws SQLException {
final WkbEncoder encoder = Wkb.newEncoder( Wkb.Dialect.POSTGIS_EWKB_1 );
final Geometry<?> geometry = getJavaTypeDescriptor().unwrap( value, Geometry.class, options );