@@ -185,13 +185,15 @@ |
|
@Override |
public BigDecimal getBigDecimal(int columnIndex) throws SQLException { |
- throw new SQLFeatureNotSupportedException("Operation not supported."); //To change body of generated methods, choose Tools | Templates. |
+ String value = getString(columnIndex); |
+ return (value == null) ? BigDecimal.ZERO : new BigDecimal(value); |
} |
|
|
@Override |
public BigDecimal getBigDecimal(String columnLabel) throws SQLException { |
- throw new SQLFeatureNotSupportedException("Operation not supported."); //To change body of generated methods, choose Tools | Templates. |
+ int index = findColumn(columnLabel); |
+ return getBigDecimal(index); |
} |
|
|
@@ -235,25 +237,29 @@ |
|
@Override |
public byte getByte(int columnIndex) throws SQLException { |
- throw new SQLFeatureNotSupportedException("Operation not supported."); //To change body of generated methods, choose Tools | Templates. |
+ String value = getString(columnIndex); |
+ return (value == null) ? Byte.MIN_VALUE : Byte.parseByte(value); |
} |
|
|
@Override |
public byte getByte(String columnLabel) throws SQLException { |
- throw new SQLFeatureNotSupportedException("Operation not supported."); //To change body of generated methods, choose Tools | Templates. |
+ int index = findColumn(columnLabel); |
+ return getByte(index); |
} |
|
|
@Override |
public byte[] getBytes(int columnIndex) throws SQLException { |
- throw new SQLFeatureNotSupportedException("Operation not supported."); //To change body of generated methods, choose Tools | Templates. |
+ String value = getString(columnIndex); |
+ return (value == null) ? new byte[]{} : value.getBytes(); |
} |
|
|
@Override |
public byte[] getBytes(String columnLabel) throws SQLException { |
- throw new SQLFeatureNotSupportedException("Operation not supported."); //To change body of generated methods, choose Tools | Templates. |
+ int index = findColumn(columnLabel); |
+ return getBytes(index); |
} |
|
|
@@ -9,9 +9,7 @@ |
import java.sql.ResultSet; |
import java.sql.SQLException; |
import java.sql.Statement; |
-import java.util.ArrayList; |
import java.util.Queue; |
-import java.util.Random; |
import java.util.concurrent.ConcurrentLinkedQueue; |
import java.util.concurrent.ThreadLocalRandom; |
import java.util.logging.Handler; |
@@ -19,7 +17,6 @@ |
import java.util.logging.LogManager; |
import java.util.logging.Logger; |
import org.testng.Assert; |
-import static org.testng.Assert.*; |
import org.testng.Reporter; |
import org.testng.annotations.AfterClass; |
import org.testng.annotations.AfterMethod; |