Tuscany DAS for Relational Databases

org.apache.tuscany.das.rdb
Class ResultSetShape

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

public class ResultSetShape
extends 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
ResultSetShape(ResultSetMetaData metadata)
           
ResultSetShape(String[] t, String[] c, Type[] dataTypes)
           
 
Method Summary
 int getColumnCount()
           
 String getColumnName(int i)
           
 Type getColumnType(int i)
           
 String getTableName(int i)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResultSetShape

public ResultSetShape(String[] t,
                      String[] c,
                      Type[] dataTypes)

ResultSetShape

public ResultSetShape(ResultSetMetaData metadata)
               throws SQLException
Throws:
SQLException
Method Detail

getColumnCount

public int getColumnCount()

getTableName

public String getTableName(int i)

getColumnName

public String getColumnName(int i)

getColumnType

public Type getColumnType(int i)

toString

public String toString()
Overrides:
toString in class Object

Tuscany DAS for Relational Databases

-