Keel 2.1RC2

org.apache.commons.beanutils
Class TestResultSetMetaData

java.lang.Object
  extended byorg.apache.commons.beanutils.TestResultSetMetaData
All Implemented Interfaces:
java.sql.ResultSetMetaData

public class TestResultSetMetaData
extends java.lang.Object
implements java.sql.ResultSetMetaData

Mock object that implements enough of java.sql.ResultSetMetaData to exercise the ResultSetDyaClass functionality.

Version:
$Revision: 1.1 $ $Date: 2002/07/12 22:38:21 $
Author:
Craig R. McClanahan

Field Summary
protected  java.lang.String[][] metadata
          Array of column names and class names for metadata.
 
Fields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown
 
Constructor Summary
TestResultSetMetaData()
           
 
Method Summary
 java.lang.String getCatalogName(int columnIndex)
           
 java.lang.String getColumnClassName(int columnIndex)
           
 int getColumnCount()
           
 int getColumnDisplaySize(int columnIndex)
           
 java.lang.String getColumnLabel(int columnIndex)
           
 java.lang.String getColumnName(int columnIndex)
           
 int getColumnType(int columnIndex)
           
 java.lang.String getColumnTypeName(int columnIndex)
           
 int getPrecision(int columnIndex)
           
 int getScale(int columnIndex)
           
 java.lang.String getSchemaName(int columnIndex)
           
 java.lang.String getTableName(int columnIndex)
           
 boolean isAutoIncrement(int columnIndex)
           
 boolean isCaseSensitive(int columnIndex)
           
 boolean isCurrency(int columnIndex)
           
 boolean isDefinitelyWritable(int columnIndex)
           
 int isNullable(int columnIndex)
           
 boolean isReadOnly(int columnIndex)
           
 boolean isSearchable(int columnIndex)
           
 boolean isSigned(int columnIndex)
           
 boolean isWritable(int columnIndex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

metadata

protected java.lang.String[][] metadata

Array of column names and class names for metadata.

Constructor Detail

TestResultSetMetaData

public TestResultSetMetaData()
Method Detail

getColumnClassName

public java.lang.String getColumnClassName(int columnIndex)
                                    throws java.sql.SQLException
Specified by:
getColumnClassName in interface java.sql.ResultSetMetaData
Throws:
java.sql.SQLException

getColumnCount

public int getColumnCount()
                   throws java.sql.SQLException
Specified by:
getColumnCount in interface java.sql.ResultSetMetaData
Throws:
java.sql.SQLException

getColumnName

public java.lang.String getColumnName(int columnIndex)
                               throws java.sql.SQLException
Specified by:
getColumnName in interface java.sql.ResultSetMetaData
Throws:
java.sql.SQLException

getCatalogName

public java.lang.String getCatalogName(int columnIndex)
                                throws java.sql.SQLException
Specified by:
getCatalogName in interface java.sql.ResultSetMetaData
Throws:
java.sql.SQLException

getColumnDisplaySize

public int getColumnDisplaySize(int columnIndex)
                         throws java.sql.SQLException
Specified by:
getColumnDisplaySize in interface java.sql.ResultSetMetaData
Throws:
java.sql.SQLException

getColumnLabel

public java.lang.String getColumnLabel(int columnIndex)
                                throws java.sql.SQLException
Specified by:
getColumnLabel in interface java.sql.ResultSetMetaData
Throws:
java.sql.SQLException

getColumnType

public int getColumnType(int columnIndex)
                  throws java.sql.SQLException
Specified by:
getColumnType in interface java.sql.ResultSetMetaData
Throws:
java.sql.SQLException

getColumnTypeName

public java.lang.String getColumnTypeName(int columnIndex)
                                   throws java.sql.SQLException
Specified by:
getColumnTypeName in interface java.sql.ResultSetMetaData
Throws:
java.sql.SQLException

getPrecision

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

getScale

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

getSchemaName

public java.lang.String getSchemaName(int columnIndex)
                               throws java.sql.SQLException
Specified by:
getSchemaName in interface java.sql.ResultSetMetaData
Throws:
java.sql.SQLException

getTableName

public java.lang.String getTableName(int columnIndex)
                              throws java.sql.SQLException
Specified by:
getTableName in interface java.sql.ResultSetMetaData
Throws:
java.sql.SQLException

isAutoIncrement

public boolean isAutoIncrement(int columnIndex)
                        throws java.sql.SQLException
Specified by:
isAutoIncrement in interface java.sql.ResultSetMetaData
Throws:
java.sql.SQLException

isCaseSensitive

public boolean isCaseSensitive(int columnIndex)
                        throws java.sql.SQLException
Specified by:
isCaseSensitive in interface java.sql.ResultSetMetaData
Throws:
java.sql.SQLException

isCurrency

public boolean isCurrency(int columnIndex)
                   throws java.sql.SQLException
Specified by:
isCurrency in interface java.sql.ResultSetMetaData
Throws:
java.sql.SQLException

isDefinitelyWritable

public boolean isDefinitelyWritable(int columnIndex)
                             throws java.sql.SQLException
Specified by:
isDefinitelyWritable in interface java.sql.ResultSetMetaData
Throws:
java.sql.SQLException

isNullable

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

isReadOnly

public boolean isReadOnly(int columnIndex)
                   throws java.sql.SQLException
Specified by:
isReadOnly in interface java.sql.ResultSetMetaData
Throws:
java.sql.SQLException

isSearchable

public boolean isSearchable(int columnIndex)
                     throws java.sql.SQLException
Specified by:
isSearchable in interface java.sql.ResultSetMetaData
Throws:
java.sql.SQLException

isSigned

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

isWritable

public boolean isWritable(int columnIndex)
                   throws java.sql.SQLException
Specified by:
isWritable in interface java.sql.ResultSetMetaData
Throws:
java.sql.SQLException

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.