com.holub.database.jdbc
Class JDBCResultSetMetaData

java.lang.Object
  extended by com.holub.database.jdbc.adapters.ResultSetMetaDataAdapter
      extended by com.holub.database.jdbc.JDBCResultSetMetaData
All Implemented Interfaces:
ResultSetMetaData

public class JDBCResultSetMetaData
extends ResultSetMetaDataAdapter

A limited version of the result-set metadata class. All methods not shown throw a SQLException if called.

©2004 Allen I. Holub. All rights reserved.

This code may be used freely by yourself with the following restrictions:

  1. Your splash screen, about box, or equivalent, must include Allen Holub's name, copyright, and URL. For example:

    This program contains Allen Holub's SQL package.
    (c) 2005 Allen I. Holub. All Rights Reserved.
    http://www.holub.com


    If your program does not run interactively, then the foregoing notice must appear in your documentation.
  2. You may not redistribute (or mirror) the source code.
  3. You must report any bugs that you find to me. Use the form at http://www.holub.com/company/contact.html or send email.
  4. The software is supplied as is. Neither Allen Holub nor Holub Associates are responsible for any bugs (or any problems caused by bugs, including lost productivity or data) in any of this code.

Field Summary
 
Fields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown
 
Constructor Summary
JDBCResultSetMetaData(Cursor cursor)
           
 
Method Summary
 int getColumnCount()
           
 String getColumnName(int index)
           
 int getColumnType(int column)
           
 String getColumnTypeName(int column)
           
 String getTableName()
           
 
Methods inherited from class com.holub.database.jdbc.adapters.ResultSetMetaDataAdapter
getCatalogName, getColumnClassName, getColumnDisplaySize, getColumnLabel, getPrecision, getScale, getSchemaName, getTableName, isAutoIncrement, isCaseSensitive, isCurrency, isDefinitelyWritable, isNullable, isReadOnly, isSearchable, isSigned, isWritable
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCResultSetMetaData

public JDBCResultSetMetaData(Cursor cursor)
Method Detail

getColumnType

public int getColumnType(int column)
                  throws SQLException
Specified by:
getColumnType in interface ResultSetMetaData
Overrides:
getColumnType in class ResultSetMetaDataAdapter
Throws:
SQLException

getColumnTypeName

public String getColumnTypeName(int column)
                         throws SQLException
Specified by:
getColumnTypeName in interface ResultSetMetaData
Overrides:
getColumnTypeName in class ResultSetMetaDataAdapter
Throws:
SQLException

getColumnName

public String getColumnName(int index)
                     throws SQLException
Specified by:
getColumnName in interface ResultSetMetaData
Overrides:
getColumnName in class ResultSetMetaDataAdapter
Throws:
SQLException

getColumnCount

public int getColumnCount()
                   throws SQLException
Specified by:
getColumnCount in interface ResultSetMetaData
Overrides:
getColumnCount in class ResultSetMetaDataAdapter
Throws:
SQLException

getTableName

public String getTableName()
                    throws SQLException
Throws:
SQLException