org.apache.tuscany.das.rdb.impl
Class ResultSetShape

java.lang.Object
  extended by org.apache.tuscany.das.rdb.impl.ResultSetShape

public class ResultSetShape
extends java.lang.Object

Describes the structure of the result set returned from execution of a SELECT statement. This description is typcially not required since the shape can be retreived from the JDBC ResultSetMetadata. However, some platforms such as Oracle do not support fully suport ResultSetMedata.

There may also be a performance boost when using this interface.


Constructor Summary
protected ResultSetShape(java.util.List resultDescriptor, Config model)
           
  ResultSetShape(java.sql.ResultSetMetaData metadata, Config model)
           
 
Method Summary
 int getColumnCount()
           
 java.lang.String getColumnName(int i)
           
 commonj.sdo.Type getColumnType(int i)
           
 java.lang.String getSchemaName(int i)
           
 java.lang.String getTableName(int i)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResultSetShape

public ResultSetShape(java.sql.ResultSetMetaData metadata,
                      Config model)
               throws java.sql.SQLException
Throws:
java.sql.SQLException

ResultSetShape

protected ResultSetShape(java.util.List resultDescriptor,
                         Config model)
Method Detail

getColumnCount

public int getColumnCount()

getTableName

public java.lang.String getTableName(int i)

getSchemaName

public java.lang.String getSchemaName(int i)

getColumnName

public java.lang.String getColumnName(int i)

getColumnType

public commonj.sdo.Type getColumnType(int i)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2007 Apache Software Foundation. All Rights Reserved.