org.objectweb.cjdbc.driver
Class ResultSetMetaData

java.lang.Object
  extended byorg.objectweb.cjdbc.driver.ResultSetMetaData
All Implemented Interfaces:
java.sql.ResultSetMetaData

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

ResultSet metadata provided for pretty printing of the ResultSet by a console.

Version:
1.0
Author:
Emmanuel Cecchet

Field Summary
private  DriverResultSet rs
           
 
Fields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown
 
Constructor Summary
ResultSetMetaData(DriverResultSet rs)
          Constructs a ResultSetMetaData from a C-JDBC ResultSet.
 
Method Summary
 java.lang.String getCatalogName(int column)
           
 java.lang.String getColumnClassName(int column)
           
 int getColumnCount()
           
 int getColumnDisplaySize(int column)
           
 java.lang.String getColumnLabel(int column)
           
 java.lang.String getColumnName(int column)
           
 int getColumnType(int column)
           
 java.lang.String getColumnTypeName(int column)
           
 int getPrecision(int column)
           
 int getScale(int column)
           
 java.lang.String getSchemaName(int column)
           
 java.lang.String getTableName(int column)
           
 boolean isAutoIncrement(int column)
           
 boolean isCaseSensitive(int column)
           
 boolean isCurrency(int column)
           
 boolean isDefinitelyWritable(int column)
           
 int isNullable(int column)
           
 boolean isReadOnly(int column)
           
 boolean isSearchable(int column)
           
 boolean isSigned(int column)
           
 boolean isWritable(int column)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rs

private DriverResultSet rs
Constructor Detail

ResultSetMetaData

public ResultSetMetaData(DriverResultSet rs)
Constructs a ResultSetMetaData from a C-JDBC ResultSet.

Parameters:
rs - the ResultSet
Method Detail

getColumnCount

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

isAutoIncrement

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

isCaseSensitive

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

isSearchable

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

isCurrency

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

isNullable

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

isSigned

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

getColumnDisplaySize

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

getColumnLabel

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

getColumnName

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

getSchemaName

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

getPrecision

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

getScale

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

getTableName

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

getCatalogName

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

getColumnType

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

getColumnTypeName

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

isReadOnly

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

isWritable

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

isDefinitelyWritable

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

getColumnClassName

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


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.