com.metamatrix.jdbc
Class ResultsMetadataWithProvider

java.lang.Object
  extended by com.metamatrix.jdbc.WrapperImpl
      extended by com.metamatrix.jdbc.ResultsMetadataWithProvider
All Implemented Interfaces:
java.sql.ResultSetMetaData, java.sql.Wrapper

public class ResultsMetadataWithProvider
extends WrapperImpl
implements ResultSetMetaData


Field Summary
 
Fields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown
 
Constructor Summary
ResultsMetadataWithProvider(ResultsMetadataProvider provider)
           
 
Method Summary
 java.lang.String getCatalogName(int index)
           
 java.lang.String getColumnClassName(int index)
           
 int getColumnCount()
           
 int getColumnDisplaySize(int index)
           
 java.lang.String getColumnLabel(int index)
           
 java.lang.String getColumnName(int index)
           
 int getColumnType(int index)
           
 java.lang.String getColumnTypeName(int index)
           
 int getParameterCount()
          Get the number of parameters in the original command if that command was a prepared command.
 int getPrecision(int index)
           
 int getScale(int index)
           
 java.lang.String getSchemaName(int index)
           
 java.lang.String getTableName(int index)
           
 java.lang.String getVirtualDatabaseName(int index)
          Get name of the VirtualDatabase at the column index.
 java.lang.String getVirtualDatabaseVersion(int index)
          Get version of the VirtualDatabase at the column index.
 boolean isAutoIncrement(int index)
           
 boolean isCaseSensitive(int index)
           
 boolean isCurrency(int index)
           
 boolean isDefinitelyWritable(int index)
           
 int isNullable(int index)
           
 boolean isReadOnly(int index)
           
 boolean isSearchable(int index)
           
 boolean isSigned(int index)
           
 boolean isWritable(int index)
           
static ResultsMetadataWithProvider newInstance(ResultsMetadataProvider provider)
          Factory Constructor
 
Methods inherited from class com.metamatrix.jdbc.WrapperImpl
isWrapperFor, unwrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
 

Constructor Detail

ResultsMetadataWithProvider

public ResultsMetadataWithProvider(ResultsMetadataProvider provider)
Method Detail

newInstance

public static ResultsMetadataWithProvider newInstance(ResultsMetadataProvider provider)
Factory Constructor

Parameters:
statement -
valueID -

getVirtualDatabaseName

public java.lang.String getVirtualDatabaseName(int index)
                                        throws java.sql.SQLException
Description copied from interface: ResultSetMetaData
Get name of the VirtualDatabase at the column index.

Parameters:
index - Column index
Returns:
Virtual database name
Throws:
java.sql.SQLException

getVirtualDatabaseVersion

public java.lang.String getVirtualDatabaseVersion(int index)
                                           throws java.sql.SQLException
Description copied from interface: ResultSetMetaData
Get version of the VirtualDatabase at the column index.

Parameters:
index - Column index
Returns:
name of the VirtualDatabase.
Throws:
java.sql.SQLException

getColumnCount

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

isAutoIncrement

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

isCaseSensitive

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

isSearchable

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

isCurrency

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

isNullable

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

isSigned

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

getColumnDisplaySize

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

getColumnLabel

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

getColumnName

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

getSchemaName

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

getPrecision

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

getScale

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

getTableName

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

getCatalogName

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

getColumnType

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

getColumnTypeName

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

isReadOnly

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

isWritable

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

isDefinitelyWritable

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

getColumnClassName

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

getParameterCount

public int getParameterCount()
                      throws java.sql.SQLException
Description copied from interface: ResultSetMetaData
Get the number of parameters in the original command if that command was a prepared command.

Returns:
Number of parameters in original command
Throws:
java.sql.SQLException


Copyright © 2009. All Rights Reserved.