Package com.impossibl.jdbc.spy
Class ResultSetMetaDataRelay
- java.lang.Object
-
- com.impossibl.jdbc.spy.ResultSetMetaDataRelay
-
- All Implemented Interfaces:
Relay<ResultSetMetaData>
,ResultSetMetaData
,Wrapper
public class ResultSetMetaDataRelay extends Object implements Relay<ResultSetMetaData>, ResultSetMetaData
-
-
Field Summary
Fields Modifier and Type Field Description com.impossibl.jdbc.spy.ResultSetMetaDataListener
listener
ResultSetMetaData
target
-
Fields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown
-
-
Constructor Summary
Constructors Constructor Description ResultSetMetaDataRelay(ResultSetMetaData target, com.impossibl.jdbc.spy.ResultSetMetaDataListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCatalogName(int column)
String
getColumnClassName(int column)
int
getColumnCount()
int
getColumnDisplaySize(int column)
String
getColumnLabel(int column)
String
getColumnName(int column)
int
getColumnType(int column)
String
getColumnTypeName(int column)
int
getPrecision(int column)
int
getScale(int column)
String
getSchemaName(int column)
String
getTableName(int column)
ResultSetMetaData
getTarget()
boolean
isAutoIncrement(int column)
boolean
isCaseSensitive(int column)
boolean
isCurrency(int column)
boolean
isDefinitelyWritable(int column)
int
isNullable(int column)
boolean
isReadOnly(int column)
boolean
isSearchable(int column)
boolean
isSigned(int column)
boolean
isWrapperFor(Class<?> iface)
boolean
isWritable(int column)
<T> T
unwrap(Class<T> iface)
-
-
-
Field Detail
-
target
public ResultSetMetaData target
-
listener
public com.impossibl.jdbc.spy.ResultSetMetaDataListener listener
-
-
Constructor Detail
-
ResultSetMetaDataRelay
public ResultSetMetaDataRelay(ResultSetMetaData target, com.impossibl.jdbc.spy.ResultSetMetaDataListener listener)
-
-
Method Detail
-
getTarget
public ResultSetMetaData getTarget()
- Specified by:
getTarget
in interfaceRelay<ResultSetMetaData>
-
getScale
public int getScale(int column) throws SQLException
- Specified by:
getScale
in interfaceResultSetMetaData
- Throws:
SQLException
-
isSearchable
public boolean isSearchable(int column) throws SQLException
- Specified by:
isSearchable
in interfaceResultSetMetaData
- Throws:
SQLException
-
isWritable
public boolean isWritable(int column) throws SQLException
- Specified by:
isWritable
in interfaceResultSetMetaData
- Throws:
SQLException
-
isWrapperFor
public boolean isWrapperFor(Class<?> iface) throws SQLException
- Specified by:
isWrapperFor
in interfaceWrapper
- Throws:
SQLException
-
getColumnType
public int getColumnType(int column) throws SQLException
- Specified by:
getColumnType
in interfaceResultSetMetaData
- Throws:
SQLException
-
isCurrency
public boolean isCurrency(int column) throws SQLException
- Specified by:
isCurrency
in interfaceResultSetMetaData
- Throws:
SQLException
-
getPrecision
public int getPrecision(int column) throws SQLException
- Specified by:
getPrecision
in interfaceResultSetMetaData
- Throws:
SQLException
-
isSigned
public boolean isSigned(int column) throws SQLException
- Specified by:
isSigned
in interfaceResultSetMetaData
- Throws:
SQLException
-
getColumnDisplaySize
public int getColumnDisplaySize(int column) throws SQLException
- Specified by:
getColumnDisplaySize
in interfaceResultSetMetaData
- Throws:
SQLException
-
getColumnLabel
public String getColumnLabel(int column) throws SQLException
- Specified by:
getColumnLabel
in interfaceResultSetMetaData
- Throws:
SQLException
-
getCatalogName
public String getCatalogName(int column) throws SQLException
- Specified by:
getCatalogName
in interfaceResultSetMetaData
- Throws:
SQLException
-
getColumnCount
public int getColumnCount() throws SQLException
- Specified by:
getColumnCount
in interfaceResultSetMetaData
- Throws:
SQLException
-
isAutoIncrement
public boolean isAutoIncrement(int column) throws SQLException
- Specified by:
isAutoIncrement
in interfaceResultSetMetaData
- Throws:
SQLException
-
unwrap
public <T> T unwrap(Class<T> iface) throws SQLException
- Specified by:
unwrap
in interfaceWrapper
- Throws:
SQLException
-
isReadOnly
public boolean isReadOnly(int column) throws SQLException
- Specified by:
isReadOnly
in interfaceResultSetMetaData
- Throws:
SQLException
-
isDefinitelyWritable
public boolean isDefinitelyWritable(int column) throws SQLException
- Specified by:
isDefinitelyWritable
in interfaceResultSetMetaData
- Throws:
SQLException
-
getColumnName
public String getColumnName(int column) throws SQLException
- Specified by:
getColumnName
in interfaceResultSetMetaData
- Throws:
SQLException
-
getSchemaName
public String getSchemaName(int column) throws SQLException
- Specified by:
getSchemaName
in interfaceResultSetMetaData
- Throws:
SQLException
-
isNullable
public int isNullable(int column) throws SQLException
- Specified by:
isNullable
in interfaceResultSetMetaData
- Throws:
SQLException
-
getTableName
public String getTableName(int column) throws SQLException
- Specified by:
getTableName
in interfaceResultSetMetaData
- Throws:
SQLException
-
getColumnClassName
public String getColumnClassName(int column) throws SQLException
- Specified by:
getColumnClassName
in interfaceResultSetMetaData
- Throws:
SQLException
-
isCaseSensitive
public boolean isCaseSensitive(int column) throws SQLException
- Specified by:
isCaseSensitive
in interfaceResultSetMetaData
- Throws:
SQLException
-
getColumnTypeName
public String getColumnTypeName(int column) throws SQLException
- Specified by:
getColumnTypeName
in interfaceResultSetMetaData
- Throws:
SQLException
-
-