simpledb.remote
Class SimpleMetaData

java.lang.Object
  extended by simpledb.remote.ResultSetMetaDataAdapter
      extended by simpledb.remote.SimpleMetaData
All Implemented Interfaces:
ResultSetMetaData, Wrapper

public class SimpleMetaData
extends ResultSetMetaDataAdapter

An adapter class that wraps RemoteMetaData. Its methods do nothing except transform RemoteExceptions into SQLExceptions.

Author:
Edward Sciore

Field Summary
 
Fields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown
 
Constructor Summary
SimpleMetaData(RemoteMetaData md)
           
 
Method Summary
 int getColumnCount()
           
 int getColumnDisplaySize(int column)
           
 String getColumnName(int column)
           
 int getColumnType(int column)
           
 
Methods inherited from class simpledb.remote.ResultSetMetaDataAdapter
getCatalogName, getColumnClassName, getColumnLabel, getColumnTypeName, getPrecision, getScale, getSchemaName, getTableName, isAutoIncrement, isCaseSensitive, isCurrency, isDefinitelyWritable, isNullable, isReadOnly, isSearchable, isSigned, isWrapperFor, isWritable, unwrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMetaData

public SimpleMetaData(RemoteMetaData md)
Method Detail

getColumnCount

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

getColumnName

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

getColumnType

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

getColumnDisplaySize

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


Copyright © 2011. All Rights Reserved.