Package org.apache.derby.client.am
Class ClientParameterMetaData
- java.lang.Object
-
- org.apache.derby.client.am.ClientParameterMetaData
-
- All Implemented Interfaces:
java.sql.ParameterMetaData
,java.sql.Wrapper
public class ClientParameterMetaData extends java.lang.Object implements java.sql.ParameterMetaData
-
-
Field Summary
Fields Modifier and Type Field Description private ColumnMetaData
columnMetaData_
-
Constructor Summary
Constructors Constructor Description ClientParameterMetaData(ColumnMetaData columnMetaData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getParameterClassName(int param)
int
getParameterCount()
int
getParameterMode(int param)
int
getParameterType(int param)
java.lang.String
getParameterTypeName(int param)
int
getPrecision(int param)
int
getScale(int param)
int
isNullable(int param)
boolean
isSigned(int param)
boolean
isWrapperFor(java.lang.Class<?> iface)
Check whether this instance wraps an object that implements the interface specified byiface
.<T> T
unwrap(java.lang.Class<T> iface)
Returnsthis
if this class implements the specified interface.
-
-
-
Field Detail
-
columnMetaData_
private ColumnMetaData columnMetaData_
-
-
Constructor Detail
-
ClientParameterMetaData
public ClientParameterMetaData(ColumnMetaData columnMetaData)
-
-
Method Detail
-
getParameterCount
public int getParameterCount() throws java.sql.SQLException
- Specified by:
getParameterCount
in interfacejava.sql.ParameterMetaData
- Throws:
java.sql.SQLException
-
getParameterType
public int getParameterType(int param) throws java.sql.SQLException
- Specified by:
getParameterType
in interfacejava.sql.ParameterMetaData
- Throws:
java.sql.SQLException
-
getParameterTypeName
public java.lang.String getParameterTypeName(int param) throws java.sql.SQLException
- Specified by:
getParameterTypeName
in interfacejava.sql.ParameterMetaData
- Throws:
java.sql.SQLException
-
getParameterClassName
public java.lang.String getParameterClassName(int param) throws java.sql.SQLException
- Specified by:
getParameterClassName
in interfacejava.sql.ParameterMetaData
- Throws:
java.sql.SQLException
-
getParameterMode
public int getParameterMode(int param) throws java.sql.SQLException
- Specified by:
getParameterMode
in interfacejava.sql.ParameterMetaData
- Throws:
java.sql.SQLException
-
isNullable
public int isNullable(int param) throws java.sql.SQLException
- Specified by:
isNullable
in interfacejava.sql.ParameterMetaData
- Throws:
java.sql.SQLException
-
isSigned
public boolean isSigned(int param) throws java.sql.SQLException
- Specified by:
isSigned
in interfacejava.sql.ParameterMetaData
- Throws:
java.sql.SQLException
-
getPrecision
public int getPrecision(int param) throws java.sql.SQLException
- Specified by:
getPrecision
in interfacejava.sql.ParameterMetaData
- Throws:
java.sql.SQLException
-
getScale
public int getScale(int param) throws java.sql.SQLException
- Specified by:
getScale
in interfacejava.sql.ParameterMetaData
- Throws:
java.sql.SQLException
-
isWrapperFor
public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException
Check whether this instance wraps an object that implements the interface specified byiface
.- Specified by:
isWrapperFor
in interfacejava.sql.Wrapper
- Parameters:
iface
- a class defining an interface- Returns:
true
if this instance implementsiface
, orfalse
otherwise- Throws:
java.sql.SQLException
- if an error occurs while determining if this instance implementsiface
-
unwrap
public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException
Returnsthis
if this class implements the specified interface.- Specified by:
unwrap
in interfacejava.sql.Wrapper
- Parameters:
iface
- a class defining an interface- Returns:
- an object that implements the interface
- Throws:
java.sql.SQLException
- if no object is found that implements the interface
-
-