public class TestResultSetMetaData extends Object implements ResultSetMetaData
ResultSetMetaData
for testing purpose.
NOTE: partial implementation to cover current test scenarioscolumnNoNulls, columnNullable, columnNullableUnknown
Constructor and Description |
---|
TestResultSetMetaData(List<ColumnMetadata> columns) |
Modifier and Type | Method and Description |
---|---|
String |
getCatalogName(int i) |
String |
getColumnClassName(int i) |
int |
getColumnCount() |
int |
getColumnDisplaySize(int i) |
String |
getColumnLabel(int i) |
String |
getColumnName(int i) |
int |
getColumnType(int i) |
String |
getColumnTypeName(int i) |
int |
getPrecision(int i) |
int |
getScale(int i) |
String |
getSchemaName(int i) |
String |
getTableName(int i) |
boolean |
isAutoIncrement(int i) |
boolean |
isCaseSensitive(int i) |
boolean |
isCurrency(int i) |
boolean |
isDefinitelyWritable(int i) |
int |
isNullable(int i) |
boolean |
isReadOnly(int i) |
boolean |
isSearchable(int i) |
boolean |
isSigned(int i) |
boolean |
isWrapperFor(Class<?> aClass) |
boolean |
isWritable(int i) |
<T> T |
unwrap(Class<T> tClass) |
public TestResultSetMetaData(List<ColumnMetadata> columns)
public int getColumnCount() throws SQLException
getColumnCount
in interface ResultSetMetaData
SQLException
public boolean isAutoIncrement(int i) throws SQLException
isAutoIncrement
in interface ResultSetMetaData
SQLException
public boolean isCaseSensitive(int i) throws SQLException
isCaseSensitive
in interface ResultSetMetaData
SQLException
public boolean isSearchable(int i) throws SQLException
isSearchable
in interface ResultSetMetaData
SQLException
public boolean isCurrency(int i) throws SQLException
isCurrency
in interface ResultSetMetaData
SQLException
public int isNullable(int i) throws SQLException
isNullable
in interface ResultSetMetaData
SQLException
public boolean isSigned(int i) throws SQLException
isSigned
in interface ResultSetMetaData
SQLException
public int getColumnDisplaySize(int i) throws SQLException
getColumnDisplaySize
in interface ResultSetMetaData
SQLException
public String getColumnLabel(int i) throws SQLException
getColumnLabel
in interface ResultSetMetaData
SQLException
public String getColumnName(int i) throws SQLException
getColumnName
in interface ResultSetMetaData
SQLException
public String getSchemaName(int i) throws SQLException
getSchemaName
in interface ResultSetMetaData
SQLException
public int getPrecision(int i) throws SQLException
getPrecision
in interface ResultSetMetaData
SQLException
public int getScale(int i) throws SQLException
getScale
in interface ResultSetMetaData
SQLException
public String getTableName(int i) throws SQLException
getTableName
in interface ResultSetMetaData
SQLException
public String getCatalogName(int i) throws SQLException
getCatalogName
in interface ResultSetMetaData
SQLException
public int getColumnType(int i) throws SQLException
getColumnType
in interface ResultSetMetaData
SQLException
public String getColumnTypeName(int i) throws SQLException
getColumnTypeName
in interface ResultSetMetaData
SQLException
public boolean isReadOnly(int i) throws SQLException
isReadOnly
in interface ResultSetMetaData
SQLException
public boolean isWritable(int i) throws SQLException
isWritable
in interface ResultSetMetaData
SQLException
public boolean isDefinitelyWritable(int i) throws SQLException
isDefinitelyWritable
in interface ResultSetMetaData
SQLException
public String getColumnClassName(int i) throws SQLException
getColumnClassName
in interface ResultSetMetaData
SQLException
public <T> T unwrap(Class<T> tClass) throws SQLException
unwrap
in interface Wrapper
SQLException
public boolean isWrapperFor(Class<?> aClass) throws SQLException
isWrapperFor
in interface Wrapper
SQLException
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.