public class ParameterMetaDataImpl
extends java.lang.Object
implements java.sql.ParameterMetaData
ParameterMetaData
.
For Sybase it is usually possible to obtain true parameter data for prepared
statements. For Microsoft just use information determined from the actual
parameters if set or return some reasonable defaults otherwise.Modifier and Type | Field and Description |
---|---|
private int |
maxPrecision |
private ParamInfo[] |
parameterList |
private boolean |
useLOBs |
Constructor and Description |
---|
ParameterMetaDataImpl(ParamInfo[] parameterList,
JtdsConnection connection) |
Modifier and Type | Method and Description |
---|---|
private ParamInfo |
getParameter(int param) |
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 arg0) |
java.lang.Object |
unwrap(java.lang.Class arg0) |
private final ParamInfo[] parameterList
private final int maxPrecision
private final boolean useLOBs
public ParameterMetaDataImpl(ParamInfo[] parameterList, JtdsConnection connection)
public int getParameterCount() throws java.sql.SQLException
getParameterCount
in interface java.sql.ParameterMetaData
java.sql.SQLException
public int isNullable(int param) throws java.sql.SQLException
isNullable
in interface java.sql.ParameterMetaData
java.sql.SQLException
public int getParameterType(int param) throws java.sql.SQLException
getParameterType
in interface java.sql.ParameterMetaData
java.sql.SQLException
public int getScale(int param) throws java.sql.SQLException
getScale
in interface java.sql.ParameterMetaData
java.sql.SQLException
public boolean isSigned(int param) throws java.sql.SQLException
isSigned
in interface java.sql.ParameterMetaData
java.sql.SQLException
public int getPrecision(int param) throws java.sql.SQLException
getPrecision
in interface java.sql.ParameterMetaData
java.sql.SQLException
public java.lang.String getParameterTypeName(int param) throws java.sql.SQLException
getParameterTypeName
in interface java.sql.ParameterMetaData
java.sql.SQLException
public java.lang.String getParameterClassName(int param) throws java.sql.SQLException
getParameterClassName
in interface java.sql.ParameterMetaData
java.sql.SQLException
public int getParameterMode(int param) throws java.sql.SQLException
getParameterMode
in interface java.sql.ParameterMetaData
java.sql.SQLException
private ParamInfo getParameter(int param) throws java.sql.SQLException
java.sql.SQLException
public boolean isWrapperFor(java.lang.Class arg0) throws java.sql.SQLException
isWrapperFor
in interface java.sql.Wrapper
java.sql.SQLException
public java.lang.Object unwrap(java.lang.Class arg0) throws java.sql.SQLException
unwrap
in interface java.sql.Wrapper
java.sql.SQLException
Generated on June 8 2013