Tuscany DAS for Relational Databases

org.apache.tuscany.das.rdb.graphbuilder.impl
Class ResultMetadata

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

public class ResultMetadata
extends Object


Constructor Summary
ResultMetadata(ResultSet rs, Config model, ResultSetShape shape)
           
 
Method Summary
 Collection getAllTablePropertyNames()
           
 Collection getColumnNames()
           
 Collection getColumnNames(String tableName)
           
 String getColumnPropertyName(int i)
           
 Converter getConverter(int i)
           
 String getDatabaseColumnName(int i)
           
 Type getDataType(int i)
           
 Type getDataType(String columnName)
           
 int getNumberOfTables()
           
 ResultSet getResultSet()
           
 int getResultSetSize()
           
 String getTableName(String columnName)
           
 String getTablePropertyName(int i)
           
 int getTableSize(String tableName)
           
 boolean hasMappingModel()
           
 boolean isPKColumn(int i)
          Return whether the column at the given position is part of a primary key.
 boolean isRecursive()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResultMetadata

public ResultMetadata(ResultSet rs,
                      Config model,
                      ResultSetShape shape)
               throws SQLException
Throws:
SQLException
Method Detail

getColumnNames

public Collection getColumnNames()

getColumnPropertyName

public String getColumnPropertyName(int i)

getDatabaseColumnName

public String getDatabaseColumnName(int i)

getTableName

public String getTableName(String columnName)

getTableSize

public int getTableSize(String tableName)

getDataType

public Type getDataType(String columnName)

getTablePropertyName

public String getTablePropertyName(int i)

getAllTablePropertyNames

public Collection getAllTablePropertyNames()

toString

public String toString()
Overrides:
toString in class Object

getNumberOfTables

public int getNumberOfTables()
Returns:

isPKColumn

public boolean isPKColumn(int i)
Return whether the column at the given position is part of a primary key. If we don't have this information, we assume every column is a primary key. This results in uniqueness checks using all columns in a table.

Parameters:
i -
Returns:

hasMappingModel

public boolean hasMappingModel()

getDataType

public Type getDataType(int i)
Parameters:
i -
Returns:

getColumnNames

public Collection getColumnNames(String tableName)
Parameters:
tableName -
Returns:

getResultSet

public ResultSet getResultSet()

getResultSetSize

public int getResultSetSize()

isRecursive

public boolean isRecursive()

getConverter

public Converter getConverter(int i)

Tuscany DAS for Relational Databases

-