public abstract class SQLDataProvider extends HashMap<String,Object>
ResultSet. The implementation of this class
ResultSet to Map which can be used instead of IContext.FieldsMetadata with simple and list field from the ResultSet.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
SQLDataProvider(ResultSet rs,
FieldsMetadata metadata)
SQL Data provider constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getColumnCount(ResultSet rs)
Returns the column count.
|
protected String |
getColumnLabel(ResultSet rs,
int column)
Returns the column label name of the given column of the given ResultSet.
|
protected abstract String |
getListName(String tableName,
String columnName)
Returns true if the given column of the given table is a field list and false otherwise.
|
protected String |
getTableName(ResultSet rs,
int column)
Returns the table name of the given column of the given ResultSet.
|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCode, toStringpublic SQLDataProvider(ResultSet rs, FieldsMetadata metadata) throws SQLException
rs - the SQL ResultSetmetadata - the FieldsMetadata.SQLExceptionprotected int getColumnCount(ResultSet rs) throws SQLException
rs - SQLExceptionprotected String getTableName(ResultSet rs, int column) throws SQLException
rs - column - SQLExceptionprotected String getColumnLabel(ResultSet rs, int column) throws SQLException
rs - column - SQLExceptionCopyright © 2015. All Rights Reserved.