com.metamatrix.jdbc
Interface ResultsMetadataProvider

All Known Implementing Classes:
AbstractMetadataProvider, DeferredMetadataProvider, StaticMetadataProvider

public interface ResultsMetadataProvider

Interface to provide result set metadata.


Method Summary
 boolean getBooleanValue(int columnIndex, java.lang.Integer metadataPropertyKey)
          Get metadata value for the column at columnIndex for a given metadata property.
 int getColumnCount()
          Get number of columns in the result set metadata
 int getIntValue(int columnIndex, java.lang.Integer metadataPropertyKey)
          Get metadata value for the column at columnIndex for a given metadata property.
 int getParameterCount()
          Get parameter count from original command
 java.lang.String getStringValue(int columnIndex, java.lang.Integer metadataPropertyKey)
          Get metadata value for the column at columnIndex for a given metadata property.
 java.lang.Object getValue(int columnIndex, java.lang.Integer metadataPropertyKey)
          Get metadata value for the column at columnIndex for a given metadata property.
 

Method Detail

getColumnCount

int getColumnCount()
                   throws java.sql.SQLException
Get number of columns in the result set metadata

Returns:
Column count
Throws:
java.sql.SQLException

getValue

java.lang.Object getValue(int columnIndex,
                          java.lang.Integer metadataPropertyKey)
                          throws java.sql.SQLException
Get metadata value for the column at columnIndex for a given metadata property.

Parameters:
columnIndex - The column index
metadataPropertyKey - The metadata property
Returns:
The value to return
Throws:
java.sql.SQLException

getStringValue

java.lang.String getStringValue(int columnIndex,
                                java.lang.Integer metadataPropertyKey)
                                throws java.sql.SQLException
Get metadata value for the column at columnIndex for a given metadata property.

Parameters:
columnIndex - The column index
metadataPropertyKey - The metadata property
Returns:
The value to return
Throws:
java.sql.SQLException

getIntValue

int getIntValue(int columnIndex,
                java.lang.Integer metadataPropertyKey)
                throws java.sql.SQLException
Get metadata value for the column at columnIndex for a given metadata property.

Parameters:
columnIndex - The column index
metadataPropertyKey - The metadata property
Returns:
The value to return
Throws:
java.sql.SQLException

getBooleanValue

boolean getBooleanValue(int columnIndex,
                        java.lang.Integer metadataPropertyKey)
                        throws java.sql.SQLException
Get metadata value for the column at columnIndex for a given metadata property.

Parameters:
columnIndex - The column index
metadataPropertyKey - The metadata property
Returns:
The value to return
Throws:
java.sql.SQLException

getParameterCount

int getParameterCount()
                      throws java.sql.SQLException
Get parameter count from original command

Returns:
count
Throws:
java.sql.SQLException


Copyright © 2009. All Rights Reserved.