Package org.relique.io
Class ListDataReader
- java.lang.Object
-
- org.relique.io.DataReader
-
- 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
Constructors Constructor Description ListDataReader(String[] columnNames, String[] columnTypes, List<Object[]> columnValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
String[]
getColumnNames()
int[]
getColumnSizes()
String[]
getColumnTypes()
Map<String,Object>
getEnvironment()
String
getTableAlias()
boolean
next()
-
-
-
Method Detail
-
next
public boolean next() throws SQLException
- Specified by:
next
in classDataReader
- Throws:
SQLException
-
getColumnNames
public String[] getColumnNames() throws SQLException
- Specified by:
getColumnNames
in classDataReader
- Throws:
SQLException
-
close
public void close() throws SQLException
- Specified by:
close
in classDataReader
- Throws:
SQLException
-
getEnvironment
public Map<String,Object> getEnvironment() throws SQLException
- Specified by:
getEnvironment
in classDataReader
- Throws:
SQLException
-
getColumnTypes
public String[] getColumnTypes() throws SQLException
- Specified by:
getColumnTypes
in classDataReader
- Throws:
SQLException
-
getColumnSizes
public int[] getColumnSizes() throws SQLException
- Specified by:
getColumnSizes
in classDataReader
- Throws:
SQLException
-
getTableAlias
public String getTableAlias()
- Specified by:
getTableAlias
in classDataReader
-
-