org.teiid.jdbc
Class ParameterMetaDataImpl

java.lang.Object
  extended by org.teiid.jdbc.WrapperImpl
      extended by org.teiid.jdbc.ParameterMetaDataImpl
All Implemented Interfaces:
java.sql.ParameterMetaData, java.sql.Wrapper

public class ParameterMetaDataImpl
extends WrapperImpl
implements java.sql.ParameterMetaData

Note: this is currently only accurate for PreparedStatements. Only the basic type information will be accurate for CallableStatements.


Field Summary
 
Fields inherited from interface java.sql.ParameterMetaData
parameterModeIn, parameterModeInOut, parameterModeOut, parameterModeUnknown, parameterNoNulls, parameterNullable, parameterNullableUnknown
 
Constructor Summary
ParameterMetaDataImpl(ResultSetMetaDataImpl metadata)
           
 
Method Summary
 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)
           
 
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 java.lang.String getParameterClassName(int param)
                                       throws java.sql.SQLException
Specified by:
getParameterClassName in interface java.sql.ParameterMetaData
Throws:
java.sql.SQLException

getParameterCount

public int getParameterCount()
                      throws java.sql.SQLException
Specified by:
getParameterCount in interface java.sql.ParameterMetaData
Throws:
java.sql.SQLException

getParameterMode

public int getParameterMode(int param)
                     throws java.sql.SQLException
Specified by:
getParameterMode in interface java.sql.ParameterMetaData
Throws:
java.sql.SQLException

getParameterType

public int getParameterType(int param)
                     throws java.sql.SQLException
Specified by:
getParameterType in interface java.sql.ParameterMetaData
Throws:
java.sql.SQLException

getParameterTypeName

public java.lang.String getParameterTypeName(int param)
                                      throws java.sql.SQLException
Specified by:
getParameterTypeName in interface java.sql.ParameterMetaData
Throws:
java.sql.SQLException

getPrecision

public int getPrecision(int param)
                 throws java.sql.SQLException
Specified by:
getPrecision in interface java.sql.ParameterMetaData
Throws:
java.sql.SQLException

getScale

public int getScale(int param)
             throws java.sql.SQLException
Specified by:
getScale in interface java.sql.ParameterMetaData
Throws:
java.sql.SQLException

isNullable

public int isNullable(int param)
               throws java.sql.SQLException
Specified by:
isNullable in interface java.sql.ParameterMetaData
Throws:
java.sql.SQLException

isSigned

public boolean isSigned(int param)
                 throws java.sql.SQLException
Specified by:
isSigned in interface java.sql.ParameterMetaData
Throws:
java.sql.SQLException


Copyright © 2010. All Rights Reserved.