br.ufg.integrate.wrapper.csv
Class CsvResultSetMetaData

java.lang.Object
  extended by br.ufg.integrate.wrapper.jdbc.IntegrateResultSetMetaData
      extended by br.ufg.integrate.wrapper.csv.CsvResultSetMetaData
All Implemented Interfaces:
ResultSetMetaData, Wrapper

public class CsvResultSetMetaData
extends IntegrateResultSetMetaData

This class implements the ResultSetMetaData interface for the CsvJdbc driver.

Version:
$Id: CsvResultSetMetaData.java,v 1.4 2002/01/01 23:04:26 jackerm Exp $
Author:
Jonathan Ackerman, JD Evora

Field Summary
protected  String[] columnNames
          Names of columns
protected  String tableName
          Name of table
 
Fields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown
 
Method Summary
 String getCatalogName(int column)
          Returns the name of the catalog for the specified column.
 String getColumnClassName(int column)
          Returns the name of the class for the specified column.
 int getColumnCount()
          Returns the number of columns in the table.
 int getColumnDisplaySize(int column)
          Returns the display column size for the specified column.
 String getColumnLabel(int column)
          Returns the label for the specified column
 String getColumnName(int column)
          Returns the name of the specified column
 int getColumnType(int column)
           
 String getColumnTypeName(int column)
           
 int getPrecision(int column)
           
 int getScale(int column)
           
 String getSchemaName(int column)
           
 String getTableName(int column)
           
 boolean isAutoIncrement(int column)
          Gets the auto increment falg for the specfied column.
 boolean isCaseSensitive(int column)
          Returns the case sensitivity flag for the specfied column
 boolean isCurrency(int column)
          Returns the currency flag for the specified column
 boolean isDefinitelyWritable(int column)
           
 int isNullable(int column)
          Returns the nullable flag for the specfied column
 boolean isReadOnly(int column)
           
 boolean isSearchable(int column)
          Returns the searchable flag for the specified column
 boolean isSigned(int column)
          Returns the signed flag for the specfied column
 boolean isWritable(int column)
           
 
Methods inherited from class br.ufg.integrate.wrapper.jdbc.IntegrateResultSetMetaData
isWrapperFor, unwrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

columnNames

protected String[] columnNames
Names of columns


tableName

protected String tableName
Name of table

Method Detail

getColumnClassName

public String getColumnClassName(int column)
                          throws SQLException
Returns the name of the class for the specified column. Always returns String.

Specified by:
getColumnClassName in interface ResultSetMetaData
Specified by:
getColumnClassName in class IntegrateResultSetMetaData
Parameters:
column - The column number
Returns:
The name of the class for the requested column
Throws:
SQLException - Thrown if there was a problem
See Also:
ResultSetMetaData.getColumnClassName(int)

getColumnCount

public int getColumnCount()
                   throws SQLException
Returns the number of columns in the table.

Specified by:
getColumnCount in interface ResultSetMetaData
Specified by:
getColumnCount in class IntegrateResultSetMetaData
Returns:
The number of columns in the table
Throws:
SQLException - Thrown if there is a a problem
See Also:
ResultSetMetaData.getColumnCount()

getCatalogName

public String getCatalogName(int column)
                      throws SQLException
Returns the name of the catalog for the specified column. Returns "".

Specified by:
getCatalogName in interface ResultSetMetaData
Overrides:
getCatalogName in class IntegrateResultSetMetaData
Parameters:
column - The column to get the catalog for
Returns:
The catalog name (always "")
Throws:
SQLException - Thrown if there is a problem
See Also:
ResultSetMetaData.getCatalogName(int)

getColumnDisplaySize

public int getColumnDisplaySize(int column)
                         throws SQLException
Returns the display column size for the specified column. Always returns 20.

Specified by:
getColumnDisplaySize in interface ResultSetMetaData
Overrides:
getColumnDisplaySize in class IntegrateResultSetMetaData
Parameters:
column - The column to get the size of
Returns:
The size of the requested column
Throws:
SQLException - Thrown if there is a problem.
See Also:
ResultSetMetaData.getColumnDisplaySize(int)

isAutoIncrement

public boolean isAutoIncrement(int column)
                        throws SQLException
Gets the auto increment falg for the specfied column.

Specified by:
isAutoIncrement in interface ResultSetMetaData
Overrides:
isAutoIncrement in class IntegrateResultSetMetaData
Parameters:
column - The column to get the flag for
Returns:
The autoIncrement flag (always false)
Throws:
SQLException - Thrown if there is a problem
See Also:
ResultSetMetaData.isAutoIncrement(int)

isCaseSensitive

public boolean isCaseSensitive(int column)
                        throws SQLException
Returns the case sensitivity flag for the specfied column

Specified by:
isCaseSensitive in interface ResultSetMetaData
Overrides:
isCaseSensitive in class IntegrateResultSetMetaData
Parameters:
column - The column to return the flag for
Returns:
The caseSensitive flag (always false)
Throws:
SQLException - Thrown if there is a problem
See Also:
ResultSetMetaData.isCaseSensitive(int)

isSearchable

public boolean isSearchable(int column)
                     throws SQLException
Returns the searchable flag for the specified column

Specified by:
isSearchable in interface ResultSetMetaData
Overrides:
isSearchable in class IntegrateResultSetMetaData
Parameters:
column - the column to return the flag form
Returns:
The searchable flag (always false)
Throws:
SQLException - Thrown if there is a problem
See Also:
ResultSetMetaData.isSearchable(int)

isCurrency

public boolean isCurrency(int column)
                   throws SQLException
Returns the currency flag for the specified column

Specified by:
isCurrency in interface ResultSetMetaData
Overrides:
isCurrency in class IntegrateResultSetMetaData
Parameters:
column - The column to get the flag for
Returns:
The currency flag (always false)
Throws:
SQLException - Thrown if there is a problem
See Also:
ResultSetMetaData.isCurrency(int)

isNullable

public int isNullable(int column)
               throws SQLException
Returns the nullable flag for the specfied column

Specified by:
isNullable in interface ResultSetMetaData
Overrides:
isNullable in class IntegrateResultSetMetaData
Parameters:
column - The column to return the flag for
Returns:
The nullable flag (always unknown)
Throws:
SQLException - Thrown if there is a problem
See Also:
ResultSetMetaData.isNullable(int)

isSigned

public boolean isSigned(int column)
                 throws SQLException
Returns the signed flag for the specfied column

Specified by:
isSigned in interface ResultSetMetaData
Overrides:
isSigned in class IntegrateResultSetMetaData
Parameters:
column - The column to return the flag for
Returns:
The signed flag (always false)
Throws:
SQLException - Thrown if there is a problem
See Also:
ResultSetMetaData.isSigned(int)

getColumnLabel

public String getColumnLabel(int column)
                      throws SQLException
Returns the label for the specified column

Specified by:
getColumnLabel in interface ResultSetMetaData
Overrides:
getColumnLabel in class IntegrateResultSetMetaData
Parameters:
column - The column to get the label for
Returns:
the label for the specified column
Throws:
SQLException - Thrown if there is a problem
See Also:
ResultSetMetaData.getColumnLabel(int)

getColumnName

public String getColumnName(int column)
                     throws SQLException
Returns the name of the specified column

Specified by:
getColumnName in interface ResultSetMetaData
Specified by:
getColumnName in class IntegrateResultSetMetaData
Parameters:
column - The column to get the name of
Returns:
The name of the column
Throws:
SQLException - Thrown if there is a problem
See Also:
ResultSetMetaData.getColumnName(int)

getSchemaName

public String getSchemaName(int column)
                     throws SQLException
Specified by:
getSchemaName in interface ResultSetMetaData
Specified by:
getSchemaName in class IntegrateResultSetMetaData
Throws:
SQLException
See Also:
ResultSetMetaData.getSchemaName(int)

getPrecision

public int getPrecision(int column)
                 throws SQLException
Specified by:
getPrecision in interface ResultSetMetaData
Overrides:
getPrecision in class IntegrateResultSetMetaData
Throws:
SQLException
See Also:
ResultSetMetaData.getPrecision(int)

getScale

public int getScale(int column)
             throws SQLException
Specified by:
getScale in interface ResultSetMetaData
Overrides:
getScale in class IntegrateResultSetMetaData
Throws:
SQLException
See Also:
ResultSetMetaData.getScale(int)

getTableName

public String getTableName(int column)
                    throws SQLException
Specified by:
getTableName in interface ResultSetMetaData
Specified by:
getTableName in class IntegrateResultSetMetaData
Throws:
SQLException
See Also:
ResultSetMetaData.getTableName(int)

getColumnType

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

getColumnTypeName

public String getColumnTypeName(int column)
                         throws SQLException
Specified by:
getColumnTypeName in interface ResultSetMetaData
Specified by:
getColumnTypeName in class IntegrateResultSetMetaData
Throws:
SQLException
See Also:
ResultSetMetaData.getColumnTypeName(int)

isReadOnly

public boolean isReadOnly(int column)
                   throws SQLException
Specified by:
isReadOnly in interface ResultSetMetaData
Overrides:
isReadOnly in class IntegrateResultSetMetaData
Throws:
SQLException
See Also:
ResultSetMetaData.isReadOnly(int)

isWritable

public boolean isWritable(int column)
                   throws SQLException
Specified by:
isWritable in interface ResultSetMetaData
Overrides:
isWritable in class IntegrateResultSetMetaData
Throws:
SQLException
See Also:
ResultSetMetaData.isWritable(int)

isDefinitelyWritable

public boolean isDefinitelyWritable(int column)
                             throws SQLException
Specified by:
isDefinitelyWritable in interface ResultSetMetaData
Overrides:
isDefinitelyWritable in class IntegrateResultSetMetaData
Throws:
SQLException
See Also:
ResultSetMetaData.isDefinitelyWritable(int)


Copyright © 2008 Rogério Arantes Gaioso. All Rights Reserved.