public abstract class SQLDataProvider
extends java.util.HashMap<java.lang.String,java.lang.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.| Constructor and Description |
|---|
SQLDataProvider(java.sql.ResultSet rs,
FieldsMetadata metadata)
SQL Data provider constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getColumnCount(java.sql.ResultSet rs)
Returns the column count.
|
protected java.lang.String |
getColumnLabel(java.sql.ResultSet rs,
int column)
Returns the column label name of the given column of the given ResultSet.
|
protected abstract java.lang.String |
getListName(java.lang.String tableName,
java.lang.String columnName)
Returns true if the given column of the given table is a field list and false otherwise.
|
protected java.lang.String |
getTableName(java.sql.ResultSet rs,
int column)
Returns the table name of the given column of the given ResultSet.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic SQLDataProvider(java.sql.ResultSet rs,
FieldsMetadata metadata)
throws java.sql.SQLException
rs - the SQL ResultSetmetadata - the FieldsMetadata.java.sql.SQLExceptionprotected int getColumnCount(java.sql.ResultSet rs)
throws java.sql.SQLException
rs - java.sql.SQLExceptionprotected java.lang.String getTableName(java.sql.ResultSet rs,
int column)
throws java.sql.SQLException
rs - column - java.sql.SQLExceptionprotected java.lang.String getColumnLabel(java.sql.ResultSet rs,
int column)
throws java.sql.SQLException
rs - column - java.sql.SQLExceptionprotected abstract java.lang.String getListName(java.lang.String tableName,
java.lang.String columnName)
tableName - columnName - Copyright © 2024. All Rights Reserved.