106
106
import java .io .InputStream ;
107
107
import java .io .OutputStream ;
108
108
import java .io .Reader ;
109
+ import java .io .Serial ;
109
110
import java .io .StringReader ;
110
111
import java .io .Writer ;
111
112
import java .nio .charset .StandardCharsets ;
@@ -886,16 +887,6 @@ public SequenceSupport getSequenceSupport() {
886
887
return HANASequenceSupport .INSTANCE ;
887
888
}
888
889
889
- @ Override
890
- public boolean supportsTableCheck () {
891
- return true ;
892
- }
893
-
894
- @ Override
895
- public boolean supportsTupleDistinctCounts () {
896
- return true ;
897
- }
898
-
899
890
@ Override
900
891
public boolean dropConstraints () {
901
892
return false ;
@@ -1413,17 +1404,17 @@ public MaterializedBlob(byte[] bytes) {
1413
1404
}
1414
1405
1415
1406
@ Override
1416
- public long length () throws SQLException {
1407
+ public long length () {
1417
1408
return this .getBytes ().length ;
1418
1409
}
1419
1410
1420
1411
@ Override
1421
- public byte [] getBytes (long pos , int length ) throws SQLException {
1412
+ public byte [] getBytes (long pos , int length ) {
1422
1413
return Arrays .copyOfRange ( this .bytes , (int ) ( pos - 1 ), (int ) ( pos - 1 + length ) );
1423
1414
}
1424
1415
1425
1416
@ Override
1426
- public InputStream getBinaryStream () throws SQLException {
1417
+ public InputStream getBinaryStream () {
1427
1418
return new ByteArrayInputStream ( this .getBytes () );
1428
1419
}
1429
1420
@@ -1438,7 +1429,7 @@ public long position(Blob pattern, long start) throws SQLException {
1438
1429
}
1439
1430
1440
1431
@ Override
1441
- public int setBytes (long pos , byte [] bytes ) throws SQLException {
1432
+ public int setBytes (long pos , byte [] bytes ) {
1442
1433
int bytesSet = 0 ;
1443
1434
if ( this .bytes .length < pos - 1 + bytes .length ) {
1444
1435
this .bytes = Arrays .copyOf ( this .bytes , (int ) ( pos - 1 + bytes .length ) );
@@ -1450,7 +1441,7 @@ public int setBytes(long pos, byte[] bytes) throws SQLException {
1450
1441
}
1451
1442
1452
1443
@ 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 ) {
1454
1445
int bytesSet = 0 ;
1455
1446
if ( this .bytes .length < pos - 1 + len ) {
1456
1447
this .bytes = Arrays .copyOf ( this .bytes , (int ) ( pos - 1 + len ) );
@@ -1472,17 +1463,17 @@ public OutputStream setBinaryStream(long pos) {
1472
1463
}
1473
1464
1474
1465
@ Override
1475
- public void truncate (long len ) throws SQLException {
1466
+ public void truncate (long len ) {
1476
1467
this .setBytes ( Arrays .copyOf ( this .getBytes (), (int ) len ) );
1477
1468
}
1478
1469
1479
1470
@ Override
1480
- public void free () throws SQLException {
1471
+ public void free () {
1481
1472
this .setBytes ( null );
1482
1473
}
1483
1474
1484
1475
@ Override
1485
- public InputStream getBinaryStream (long pos , long length ) throws SQLException {
1476
+ public InputStream getBinaryStream (long pos , long length ) {
1486
1477
return new ByteArrayInputStream ( this .getBytes (), (int ) ( pos - 1 ), (int ) length );
1487
1478
}
1488
1479
@@ -1505,19 +1496,19 @@ public MaterializedNClob(String data) {
1505
1496
}
1506
1497
1507
1498
@ Override
1508
- public void truncate (long len ) throws SQLException {
1499
+ public void truncate (long len ) {
1509
1500
this .data = "" ;
1510
1501
}
1511
1502
1512
1503
@ 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 ) {
1514
1505
this .data = this .data .substring ( 0 , (int ) ( pos - 1 ) ) + str .substring ( offset , offset + len )
1515
1506
+ this .data .substring ( (int ) ( pos - 1 + len ) );
1516
1507
return len ;
1517
1508
}
1518
1509
1519
1510
@ Override
1520
- public int setString (long pos , String str ) throws SQLException {
1511
+ public int setString (long pos , String str ) {
1521
1512
this .data = this .data .substring ( 0 , (int ) ( pos - 1 ) ) + str + this .data .substring ( (int ) ( pos - 1 + str .length () ) );
1522
1513
return str .length ();
1523
1514
}
@@ -1533,32 +1524,32 @@ public OutputStream setAsciiStream(long pos) throws SQLException {
1533
1524
}
1534
1525
1535
1526
@ Override
1536
- public long position (Clob searchstr , long start ) throws SQLException {
1527
+ public long position (Clob searchstr , long start ) {
1537
1528
return this .data .indexOf ( extractString ( searchstr ), (int ) ( start - 1 ) );
1538
1529
}
1539
1530
1540
1531
@ Override
1541
- public long position (String searchstr , long start ) throws SQLException {
1532
+ public long position (String searchstr , long start ) {
1542
1533
return this .data .indexOf ( searchstr , (int ) ( start - 1 ) );
1543
1534
}
1544
1535
1545
1536
@ Override
1546
- public long length () throws SQLException {
1537
+ public long length () {
1547
1538
return this .data .length ();
1548
1539
}
1549
1540
1550
1541
@ Override
1551
- public String getSubString (long pos , int length ) throws SQLException {
1542
+ public String getSubString (long pos , int length ) {
1552
1543
return this .data .substring ( (int ) ( pos - 1 ), (int ) ( pos - 1 + length ) );
1553
1544
}
1554
1545
1555
1546
@ Override
1556
- public Reader getCharacterStream (long pos , long length ) throws SQLException {
1547
+ public Reader getCharacterStream (long pos , long length ) {
1557
1548
return new StringReader ( this .data .substring ( (int ) ( pos - 1 ), (int ) ( pos - 1 + length ) ) );
1558
1549
}
1559
1550
1560
1551
@ Override
1561
- public Reader getCharacterStream () throws SQLException {
1552
+ public Reader getCharacterStream () {
1562
1553
return new StringReader ( this .data );
1563
1554
}
1564
1555
@@ -1568,7 +1559,7 @@ public InputStream getAsciiStream() {
1568
1559
}
1569
1560
1570
1561
@ Override
1571
- public void free () throws SQLException {
1562
+ public void free () {
1572
1563
this .data = null ;
1573
1564
}
1574
1565
}
@@ -1616,6 +1607,7 @@ protected X doExtract(CallableStatement statement, String name, WrapperOptions o
1616
1607
1617
1608
private static class HANAStreamBlobType implements JdbcType {
1618
1609
1610
+ @ Serial
1619
1611
private static final long serialVersionUID = -2476600722093442047L ;
1620
1612
1621
1613
final int maxLobPrefetchSize ;
@@ -1698,6 +1690,7 @@ public String toString() {
1698
1690
}
1699
1691
1700
1692
/** serial version uid. */
1693
+ @ Serial
1701
1694
private static final long serialVersionUID = -379042275442752102L ;
1702
1695
1703
1696
final int maxLobPrefetchSize ;
@@ -1801,6 +1794,7 @@ public boolean isUseUnicodeStringTypes() {
1801
1794
private static class HANANClobJdbcType extends NClobJdbcType {
1802
1795
1803
1796
/** serial version uid. */
1797
+ @ Serial
1804
1798
private static final long serialVersionUID = 5651116091681647859L ;
1805
1799
1806
1800
final int maxLobPrefetchSize ;
@@ -1899,6 +1893,7 @@ public int getMaxLobPrefetchSize() {
1899
1893
1900
1894
public static class HANABlobType implements JdbcType {
1901
1895
1896
+ @ Serial
1902
1897
private static final long serialVersionUID = 5874441715643764323L ;
1903
1898
public static final JdbcType INSTANCE = new HANABlobType ( MAX_LOB_PREFETCH_SIZE_DEFAULT_VALUE );
1904
1899
0 commit comments