com.mockrunner.mock.jdbc
Class MockParameterMetaData

java.lang.Object
  extended by com.mockrunner.mock.jdbc.MockParameterMetaData
All Implemented Interfaces:
java.sql.ParameterMetaData, java.sql.Wrapper

public class MockParameterMetaData
extends java.lang.Object
implements java.sql.ParameterMetaData

Mock implementation of ParameterMetaData.


Field Summary
 
Fields inherited from interface java.sql.ParameterMetaData
parameterModeIn, parameterModeInOut, parameterModeOut, parameterModeUnknown, parameterNoNulls, parameterNullable, parameterNullableUnknown
 
Constructor Summary
MockParameterMetaData()
           
 
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)
           
 boolean isWrapperFor(java.lang.Class iface)
           
 void setNullable(int param, int nullable)
           
 void setParameterClassName(int param, java.lang.String parameterClassName)
           
 void setParameterCount(int count)
           
 void setParameterMode(int param, int parameterMode)
           
 void setParameterType(int param, int parameterType)
           
 void setParameterTypeName(int param, java.lang.String parameterTypeName)
           
 void setPrecision(int param, int precision)
           
 void setScale(int param, int scale)
           
 void setSigned(int param, boolean signed)
           
 java.lang.Object unwrap(java.lang.Class iface)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockParameterMetaData

public MockParameterMetaData()
Method Detail

setParameterCount

public void setParameterCount(int count)

setParameterMode

public void setParameterMode(int param,
                             int parameterMode)

setParameterType

public void setParameterType(int param,
                             int parameterType)

setPrecision

public void setPrecision(int param,
                         int precision)

setScale

public void setScale(int param,
                     int scale)

setNullable

public void setNullable(int param,
                        int nullable)

setSigned

public void setSigned(int param,
                      boolean signed)

setParameterClassName

public void setParameterClassName(int param,
                                  java.lang.String parameterClassName)

setParameterTypeName

public void setParameterTypeName(int param,
                                 java.lang.String parameterTypeName)

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

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

getParameterClassName

public java.lang.String getParameterClassName(int param)
                                       throws java.sql.SQLException
Specified by:
getParameterClassName 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

isWrapperFor

public boolean isWrapperFor(java.lang.Class iface)
                     throws java.sql.SQLException
Specified by:
isWrapperFor in interface java.sql.Wrapper
Throws:
java.sql.SQLException

unwrap

public java.lang.Object unwrap(java.lang.Class iface)
                        throws java.sql.SQLException
Specified by:
unwrap in interface java.sql.Wrapper
Throws:
java.sql.SQLException