org.relique.io
Class ListDataReader

java.lang.Object
  extended by org.relique.io.DataReader
      extended by org.relique.io.ListDataReader

public class ListDataReader
extends DataReader

A reader from a list, enabling database metadata functions to return JDBC ResultSet objects containing lists of tables, schemas and other metadata.


Field Summary
 
Fields inherited from class org.relique.io.DataReader
DEFAULT_COLUMN_SIZE
 
Constructor Summary
ListDataReader(String[] columnNames, String[] columnTypes, List<Object[]> columnValues)
           
 
Method Summary
 void close()
           
 String[] getColumnNames()
           
 int[] getColumnSizes()
           
 String[] getColumnTypes()
           
 Map<String,Object> getEnvironment()
           
 String getTableAlias()
           
 boolean next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListDataReader

public ListDataReader(String[] columnNames,
                      String[] columnTypes,
                      List<Object[]> columnValues)
Method Detail

next

public boolean next()
             throws SQLException
Specified by:
next in class DataReader
Throws:
SQLException

getColumnNames

public String[] getColumnNames()
                        throws SQLException
Specified by:
getColumnNames in class DataReader
Throws:
SQLException

close

public void close()
           throws SQLException
Specified by:
close in class DataReader
Throws:
SQLException

getEnvironment

public Map<String,Object> getEnvironment()
                                  throws SQLException
Specified by:
getEnvironment in class DataReader
Throws:
SQLException

getColumnTypes

public String[] getColumnTypes()
                        throws SQLException
Specified by:
getColumnTypes in class DataReader
Throws:
SQLException

getColumnSizes

public int[] getColumnSizes()
                     throws SQLException
Specified by:
getColumnSizes in class DataReader
Throws:
SQLException

getTableAlias

public String getTableAlias()
Specified by:
getTableAlias in class DataReader


Copyright © 2016. All rights reserved.