112
112
import static com .ing .data .cassandra .jdbc .utils .JsonUtil .getObjectMapper ;
113
113
import static com .ing .data .cassandra .jdbc .utils .UdtUtil .udtValueUsingFormattedContents ;
114
114
import static com .ing .data .cassandra .jdbc .utils .UdtUtil .udtValuesUsingFormattedContents ;
115
+ import static com .ing .data .cassandra .jdbc .utils .WarningConstants .GET_LIST_FAILED ;
116
+ import static com .ing .data .cassandra .jdbc .utils .WarningConstants .GET_SET_FAILED ;
117
+ import static com .ing .data .cassandra .jdbc .utils .WarningConstants .GET_VECTOR_FAILED ;
115
118
116
119
/**
117
120
* Cassandra result set: implementation class for {@link java.sql.ResultSet}.
@@ -791,7 +794,7 @@ public List<?> getList(final int columnIndex) throws SQLException {
791
794
}
792
795
return new ArrayList <>(resultList );
793
796
} catch (final ClassNotFoundException e ) {
794
- LOG .warn ("Error while executing getList()" , e );
797
+ LOG .warn (GET_LIST_FAILED , e );
795
798
}
796
799
}
797
800
return this .currentRow .getList (columnIndex - 1 , String .class );
@@ -811,7 +814,7 @@ public List<?> getList(final String columnLabel) throws SQLException {
811
814
}
812
815
return new ArrayList <>(resultList );
813
816
} catch (final ClassNotFoundException e ) {
814
- LOG .warn ("Error while executing getList()" , e );
817
+ LOG .warn (GET_LIST_FAILED , e );
815
818
}
816
819
}
817
820
return this .currentRow .getList (columnLabel , String .class );
@@ -1364,7 +1367,7 @@ public Set<?> getSet(final int columnIndex) throws SQLException {
1364
1367
return this .currentRow .getSet (columnIndex - 1 ,
1365
1368
Class .forName (fromDataType (setType .getElementType ()).asJavaClass ().getCanonicalName ()));
1366
1369
} catch (ClassNotFoundException e ) {
1367
- LOG .warn ("Error while executing getSet()" , e );
1370
+ LOG .warn (GET_SET_FAILED , e );
1368
1371
}
1369
1372
return null ;
1370
1373
}
@@ -1377,7 +1380,7 @@ public Set<?> getSet(final String columnLabel) throws SQLException {
1377
1380
return this .currentRow .getSet (columnLabel ,
1378
1381
Class .forName (fromDataType (setType .getElementType ()).asJavaClass ().getCanonicalName ()));
1379
1382
} catch (ClassNotFoundException e ) {
1380
- LOG .warn ("Error while executing getSet()" , e );
1383
+ LOG .warn (GET_SET_FAILED , e );
1381
1384
}
1382
1385
return null ;
1383
1386
}
@@ -1540,7 +1543,7 @@ public CqlVector<?> getVector(final int columnIndex) throws SQLException {
1540
1543
throw new SQLException (VECTOR_ELEMENTS_NOT_NUMBERS );
1541
1544
}
1542
1545
} catch (ClassNotFoundException e ) {
1543
- LOG .warn ("Error while executing getSet()" , e );
1546
+ LOG .warn (GET_VECTOR_FAILED , e );
1544
1547
}
1545
1548
return null ;
1546
1549
}
@@ -1558,7 +1561,7 @@ public CqlVector<?> getVector(final String columnLabel) throws SQLException {
1558
1561
throw new SQLException (VECTOR_ELEMENTS_NOT_NUMBERS );
1559
1562
}
1560
1563
} catch (ClassNotFoundException e ) {
1561
- LOG .warn ("Error while executing getVector()" , e );
1564
+ LOG .warn (GET_VECTOR_FAILED , e );
1562
1565
}
1563
1566
return null ;
1564
1567
}
0 commit comments