com.metamatrix.jdbc
Class StaticMetadataProvider

java.lang.Object
  extended by com.metamatrix.jdbc.AbstractMetadataProvider
      extended by com.metamatrix.jdbc.StaticMetadataProvider
All Implemented Interfaces:
ResultsMetadataProvider

public class StaticMetadataProvider
extends AbstractMetadataProvider


Method Summary
static StaticMetadataProvider createWithData(java.util.Map[] columnMetadata, int paramCount)
           
 int getColumnCount()
          Get number of columns in the result set metadata
 int getParameterCount()
          Get parameter count from original command
 java.lang.Object getValue(int columnIndex, java.lang.Integer metadataPropertyKey)
          Get metadata value for the column at columnIndex for a given metadata property.
 void setParameterCount(int paramCount)
           
 
Methods inherited from class com.metamatrix.jdbc.AbstractMetadataProvider
getBooleanValue, getIntValue, getStringValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createWithData

public static StaticMetadataProvider createWithData(java.util.Map[] columnMetadata,
                                                    int paramCount)

getValue

public java.lang.Object getValue(int columnIndex,
                                 java.lang.Integer metadataPropertyKey)
                          throws java.sql.SQLException
Description copied from interface: ResultsMetadataProvider
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

getColumnCount

public int getColumnCount()
                   throws java.sql.SQLException
Description copied from interface: ResultsMetadataProvider
Get number of columns in the result set metadata

Returns:
Column count
Throws:
java.sql.SQLException

getParameterCount

public int getParameterCount()
Description copied from interface: ResultsMetadataProvider
Get parameter count from original command

Returns:
count

setParameterCount

public void setParameterCount(int paramCount)


Copyright © 2009. All Rights Reserved.