Package org.teiid.jdbc
Class ParameterMetaDataImpl
- java.lang.Object
-
- org.teiid.jdbc.WrapperImpl
-
- org.teiid.jdbc.ParameterMetaDataImpl
-
- All Implemented Interfaces:
ParameterMetaData
,Wrapper
public class ParameterMetaDataImpl extends WrapperImpl implements ParameterMetaData
Note: this is currently only accurate forPreparedStatement
s. Only the basic type information will be accurate forCallableStatement
s.
-
-
Field Summary
-
Fields inherited from interface java.sql.ParameterMetaData
parameterModeIn, parameterModeInOut, parameterModeOut, parameterModeUnknown, parameterNoNulls, parameterNullable, parameterNullableUnknown
-
-
Constructor Summary
Constructors Constructor Description ParameterMetaDataImpl(ResultSetMetaDataImpl metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getParameterClassName(int param)
int
getParameterCount()
int
getParameterMode(int param)
String
getParameterName(int param)
int
getParameterType(int param)
String
getParameterTypeName(int param)
int
getPrecision(int param)
int
getScale(int param)
int
isNullable(int param)
boolean
isSigned(int param)
-
Methods inherited from class org.teiid.jdbc.WrapperImpl
isWrapperFor, unwrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
-
-
-
Constructor Detail
-
ParameterMetaDataImpl
public ParameterMetaDataImpl(ResultSetMetaDataImpl metadata)
-
-
Method Detail
-
getParameterClassName
public String getParameterClassName(int param) throws SQLException
- Specified by:
getParameterClassName
in interfaceParameterMetaData
- Throws:
SQLException
-
getParameterCount
public int getParameterCount() throws SQLException
- Specified by:
getParameterCount
in interfaceParameterMetaData
- Throws:
SQLException
-
getParameterMode
public int getParameterMode(int param) throws SQLException
- Specified by:
getParameterMode
in interfaceParameterMetaData
- Throws:
SQLException
-
getParameterType
public int getParameterType(int param) throws SQLException
- Specified by:
getParameterType
in interfaceParameterMetaData
- Throws:
SQLException
-
getParameterTypeName
public String getParameterTypeName(int param) throws SQLException
- Specified by:
getParameterTypeName
in interfaceParameterMetaData
- Throws:
SQLException
-
getPrecision
public int getPrecision(int param) throws SQLException
- Specified by:
getPrecision
in interfaceParameterMetaData
- Throws:
SQLException
-
getScale
public int getScale(int param) throws SQLException
- Specified by:
getScale
in interfaceParameterMetaData
- Throws:
SQLException
-
isNullable
public int isNullable(int param) throws SQLException
- Specified by:
isNullable
in interfaceParameterMetaData
- Throws:
SQLException
-
isSigned
public boolean isSigned(int param) throws SQLException
- Specified by:
isSigned
in interfaceParameterMetaData
- Throws:
SQLException
-
getParameterName
public String getParameterName(int param) throws SQLException
- Throws:
SQLException
-
-