org.melati.poem.dbms.test.sql
Class ThrowingParameterMetaDataJdbc3

Package class diagram package ThrowingParameterMetaDataJdbc3
java.lang.Object
  extended by org.melati.poem.dbms.test.sql.Thrower
      extended by org.melati.poem.dbms.test.sql.ThrowingParameterMetaDataJdbc3
All Implemented Interfaces:
ParameterMetaData, Wrapper
Direct Known Subclasses:
ThrowingParameterMetaDataJdbc4

public abstract class ThrowingParameterMetaDataJdbc3
extends Thrower
implements ParameterMetaData

The JDBC3 members of a ParameterMetaData, decorated to throw an SQLException on command.

Since:
5 Feb 2008
Author:
timp

Field Summary
 
Fields inherited from interface java.sql.ParameterMetaData
parameterModeIn, parameterModeInOut, parameterModeOut, parameterModeUnknown, parameterNoNulls, parameterNullable, parameterNullableUnknown
 
Constructor Summary
ThrowingParameterMetaDataJdbc3()
           
 
Method Summary
 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)
           
 
Methods inherited from class org.melati.poem.dbms.test.sql.Thrower
shouldThrow, startThrowing, startThrowingAfter, stopThrowing
 
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

ThrowingParameterMetaDataJdbc3

public ThrowingParameterMetaDataJdbc3()
Method Detail

getParameterClassName

public String getParameterClassName(int param)
                             throws SQLException
Specified by:
getParameterClassName in interface ParameterMetaData
Throws:
SQLException

getParameterCount

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

getParameterMode

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

getParameterType

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

getParameterTypeName

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

getPrecision

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

getScale

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

isNullable

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

isSigned

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


Copyright © 2000-2010 PanEris. All Rights Reserved.