Package com.impossibl.jdbc.spy
Class ParameterMetaDataRelay
- java.lang.Object
-
- com.impossibl.jdbc.spy.ParameterMetaDataRelay
-
- All Implemented Interfaces:
Relay<ParameterMetaData>
,ParameterMetaData
,Wrapper
public class ParameterMetaDataRelay extends Object implements Relay<ParameterMetaData>, ParameterMetaData
-
-
Field Summary
Fields Modifier and Type Field Description com.impossibl.jdbc.spy.ParameterMetaDataListener
listener
ParameterMetaData
target
-
Fields inherited from interface java.sql.ParameterMetaData
parameterModeIn, parameterModeInOut, parameterModeOut, parameterModeUnknown, parameterNoNulls, parameterNullable, parameterNullableUnknown
-
-
Constructor Summary
Constructors Constructor Description ParameterMetaDataRelay(ParameterMetaData target, com.impossibl.jdbc.spy.ParameterMetaDataListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getParameterClassName(int param)
int
getParameterCount()
int
getParameterMode(int param)
int
getParameterType(int param)
String
getParameterTypeName(int param)
int
getPrecision(int param)
int
getScale(int param)
ParameterMetaData
getTarget()
int
isNullable(int param)
boolean
isSigned(int param)
boolean
isWrapperFor(Class<?> iface)
<T> T
unwrap(Class<T> iface)
-
-
-
Field Detail
-
target
public ParameterMetaData target
-
listener
public com.impossibl.jdbc.spy.ParameterMetaDataListener listener
-
-
Constructor Detail
-
ParameterMetaDataRelay
public ParameterMetaDataRelay(ParameterMetaData target, com.impossibl.jdbc.spy.ParameterMetaDataListener listener)
-
-
Method Detail
-
getTarget
public ParameterMetaData getTarget()
- Specified by:
getTarget
in interfaceRelay<ParameterMetaData>
-
getParameterMode
public int getParameterMode(int param) throws SQLException
- Specified by:
getParameterMode
in interfaceParameterMetaData
- Throws:
SQLException
-
getPrecision
public int getPrecision(int param) throws SQLException
- Specified by:
getPrecision
in interfaceParameterMetaData
- Throws:
SQLException
-
getParameterTypeName
public String getParameterTypeName(int param) throws SQLException
- Specified by:
getParameterTypeName
in interfaceParameterMetaData
- Throws:
SQLException
-
getParameterCount
public int getParameterCount() throws SQLException
- Specified by:
getParameterCount
in interfaceParameterMetaData
- Throws:
SQLException
-
getScale
public int getScale(int param) throws SQLException
- Specified by:
getScale
in interfaceParameterMetaData
- Throws:
SQLException
-
getParameterType
public int getParameterType(int param) throws SQLException
- Specified by:
getParameterType
in interfaceParameterMetaData
- Throws:
SQLException
-
getParameterClassName
public String getParameterClassName(int param) throws SQLException
- Specified by:
getParameterClassName
in interfaceParameterMetaData
- Throws:
SQLException
-
isSigned
public boolean isSigned(int param) throws SQLException
- Specified by:
isSigned
in interfaceParameterMetaData
- Throws:
SQLException
-
isWrapperFor
public boolean isWrapperFor(Class<?> iface) throws SQLException
- Specified by:
isWrapperFor
in interfaceWrapper
- Throws:
SQLException
-
unwrap
public <T> T unwrap(Class<T> iface) throws SQLException
- Specified by:
unwrap
in interfaceWrapper
- Throws:
SQLException
-
isNullable
public int isNullable(int param) throws SQLException
- Specified by:
isNullable
in interfaceParameterMetaData
- Throws:
SQLException
-
-