net.sourceforge.jtds.jdbc

Class ParameterMetaDataImpl

Implemented Interfaces:
ParameterMetaData

public class ParameterMetaDataImpl
extends java.lang.Object
implements ParameterMetaData

jTDS implementation of 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.

Version:
$Id: ParameterMetaDataImpl.java,v 1.7 2005/09/21 21:50:34 ddkilzer Exp $
Authors:
Brian Heineman
Mike Hutchinson

Field Summary

private int
maxPrecision
private ParamInfo[]
parameterList
private boolean
useLOBs

Constructor Summary

ParameterMetaDataImpl(ParamInfo[] parameterList, ConnectionJDBC2 connection)

Method Summary

private ParamInfo
getParameter(int param)
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)
int
isNullable(int param)
boolean
isSigned(int param)

Field Details

maxPrecision

private final int maxPrecision

parameterList

private final ParamInfo[] parameterList

useLOBs

private final boolean useLOBs

Constructor Details

ParameterMetaDataImpl

public ParameterMetaDataImpl(ParamInfo[] parameterList,
                             ConnectionJDBC2 connection)

Method Details

getParameter

private ParamInfo getParameter(int param)
            throws SQLException

getParameterClassName

public String getParameterClassName(int param)
            throws SQLException

getParameterCount

public int getParameterCount()
            throws SQLException

getParameterMode

public int getParameterMode(int param)
            throws SQLException

getParameterType

public int getParameterType(int param)
            throws SQLException

getParameterTypeName

public String getParameterTypeName(int param)
            throws SQLException

getPrecision

public int getPrecision(int param)
            throws SQLException

getScale

public int getScale(int param)
            throws SQLException

isNullable

public int isNullable(int param)
            throws SQLException

isSigned

public boolean isSigned(int param)
            throws SQLException

Generated on September 18 2009