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