106106import java .io .InputStream ;
107107import java .io .OutputStream ;
108108import java .io .Reader ;
109+ import java .io .Serial ;
109110import java .io .StringReader ;
110111import java .io .Writer ;
111112import java .nio .charset .StandardCharsets ;
@@ -886,16 +887,6 @@ public SequenceSupport getSequenceSupport() {
886887 return HANASequenceSupport .INSTANCE ;
887888 }
888889
889- @ Override
890- public boolean supportsTableCheck () {
891- return true ;
892- }
893-
894- @ Override
895- public boolean supportsTupleDistinctCounts () {
896- return true ;
897- }
898-
899890 @ Override
900891 public boolean dropConstraints () {
901892 return false ;
@@ -1413,17 +1404,17 @@ public MaterializedBlob(byte[] bytes) {
14131404 }
14141405
14151406 @ Override
1416- public long length () throws SQLException {
1407+ public long length () {
14171408 return this .getBytes ().length ;
14181409 }
14191410
14201411 @ Override
1421- public byte [] getBytes (long pos , int length ) throws SQLException {
1412+ public byte [] getBytes (long pos , int length ) {
14221413 return Arrays .copyOfRange ( this .bytes , (int ) ( pos - 1 ), (int ) ( pos - 1 + length ) );
14231414 }
14241415
14251416 @ Override
1426- public InputStream getBinaryStream () throws SQLException {
1417+ public InputStream getBinaryStream () {
14271418 return new ByteArrayInputStream ( this .getBytes () );
14281419 }
14291420
@@ -1438,7 +1429,7 @@ public long position(Blob pattern, long start) throws SQLException {
14381429 }
14391430
14401431 @ Override
1441- public int setBytes (long pos , byte [] bytes ) throws SQLException {
1432+ public int setBytes (long pos , byte [] bytes ) {
14421433 int bytesSet = 0 ;
14431434 if ( this .bytes .length < pos - 1 + bytes .length ) {
14441435 this .bytes = Arrays .copyOf ( this .bytes , (int ) ( pos - 1 + bytes .length ) );
@@ -1450,7 +1441,7 @@ public int setBytes(long pos, byte[] bytes) throws SQLException {
14501441 }
14511442
14521443 @ Override
1453- public int setBytes (long pos , byte [] bytes , int offset , int len ) throws SQLException {
1444+ public int setBytes (long pos , byte [] bytes , int offset , int len ) {
14541445 int bytesSet = 0 ;
14551446 if ( this .bytes .length < pos - 1 + len ) {
14561447 this .bytes = Arrays .copyOf ( this .bytes , (int ) ( pos - 1 + len ) );
@@ -1472,17 +1463,17 @@ public OutputStream setBinaryStream(long pos) {
14721463 }
14731464
14741465 @ Override
1475- public void truncate (long len ) throws SQLException {
1466+ public void truncate (long len ) {
14761467 this .setBytes ( Arrays .copyOf ( this .getBytes (), (int ) len ) );
14771468 }
14781469
14791470 @ Override
1480- public void free () throws SQLException {
1471+ public void free () {
14811472 this .setBytes ( null );
14821473 }
14831474
14841475 @ Override
1485- public InputStream getBinaryStream (long pos , long length ) throws SQLException {
1476+ public InputStream getBinaryStream (long pos , long length ) {
14861477 return new ByteArrayInputStream ( this .getBytes (), (int ) ( pos - 1 ), (int ) length );
14871478 }
14881479
@@ -1505,19 +1496,19 @@ public MaterializedNClob(String data) {
15051496 }
15061497
15071498 @ Override
1508- public void truncate (long len ) throws SQLException {
1499+ public void truncate (long len ) {
15091500 this .data = "" ;
15101501 }
15111502
15121503 @ Override
1513- public int setString (long pos , String str , int offset , int len ) throws SQLException {
1504+ public int setString (long pos , String str , int offset , int len ) {
15141505 this .data = this .data .substring ( 0 , (int ) ( pos - 1 ) ) + str .substring ( offset , offset + len )
15151506 + this .data .substring ( (int ) ( pos - 1 + len ) );
15161507 return len ;
15171508 }
15181509
15191510 @ Override
1520- public int setString (long pos , String str ) throws SQLException {
1511+ public int setString (long pos , String str ) {
15211512 this .data = this .data .substring ( 0 , (int ) ( pos - 1 ) ) + str + this .data .substring ( (int ) ( pos - 1 + str .length () ) );
15221513 return str .length ();
15231514 }
@@ -1533,32 +1524,32 @@ public OutputStream setAsciiStream(long pos) throws SQLException {
15331524 }
15341525
15351526 @ Override
1536- public long position (Clob searchstr , long start ) throws SQLException {
1527+ public long position (Clob searchstr , long start ) {
15371528 return this .data .indexOf ( extractString ( searchstr ), (int ) ( start - 1 ) );
15381529 }
15391530
15401531 @ Override
1541- public long position (String searchstr , long start ) throws SQLException {
1532+ public long position (String searchstr , long start ) {
15421533 return this .data .indexOf ( searchstr , (int ) ( start - 1 ) );
15431534 }
15441535
15451536 @ Override
1546- public long length () throws SQLException {
1537+ public long length () {
15471538 return this .data .length ();
15481539 }
15491540
15501541 @ Override
1551- public String getSubString (long pos , int length ) throws SQLException {
1542+ public String getSubString (long pos , int length ) {
15521543 return this .data .substring ( (int ) ( pos - 1 ), (int ) ( pos - 1 + length ) );
15531544 }
15541545
15551546 @ Override
1556- public Reader getCharacterStream (long pos , long length ) throws SQLException {
1547+ public Reader getCharacterStream (long pos , long length ) {
15571548 return new StringReader ( this .data .substring ( (int ) ( pos - 1 ), (int ) ( pos - 1 + length ) ) );
15581549 }
15591550
15601551 @ Override
1561- public Reader getCharacterStream () throws SQLException {
1552+ public Reader getCharacterStream () {
15621553 return new StringReader ( this .data );
15631554 }
15641555
@@ -1568,7 +1559,7 @@ public InputStream getAsciiStream() {
15681559 }
15691560
15701561 @ Override
1571- public void free () throws SQLException {
1562+ public void free () {
15721563 this .data = null ;
15731564 }
15741565 }
@@ -1616,6 +1607,7 @@ protected X doExtract(CallableStatement statement, String name, WrapperOptions o
16161607
16171608 private static class HANAStreamBlobType implements JdbcType {
16181609
1610+ @ Serial
16191611 private static final long serialVersionUID = -2476600722093442047L ;
16201612
16211613 final int maxLobPrefetchSize ;
@@ -1698,6 +1690,7 @@ public String toString() {
16981690 }
16991691
17001692 /** serial version uid. */
1693+ @ Serial
17011694 private static final long serialVersionUID = -379042275442752102L ;
17021695
17031696 final int maxLobPrefetchSize ;
@@ -1801,6 +1794,7 @@ public boolean isUseUnicodeStringTypes() {
18011794 private static class HANANClobJdbcType extends NClobJdbcType {
18021795
18031796 /** serial version uid. */
1797+ @ Serial
18041798 private static final long serialVersionUID = 5651116091681647859L ;
18051799
18061800 final int maxLobPrefetchSize ;
@@ -1899,6 +1893,7 @@ public int getMaxLobPrefetchSize() {
18991893
19001894 public static class HANABlobType implements JdbcType {
19011895
1896+ @ Serial
19021897 private static final long serialVersionUID = 5874441715643764323L ;
19031898 public static final JdbcType INSTANCE = new HANABlobType ( MAX_LOB_PREFETCH_SIZE_DEFAULT_VALUE );
19041899
0 commit comments