public abstract class InlineViewBuilder extends Object implements Session.ResultSetReader
ResultSets and builds inline-views according to the content.| Modifier and Type | Field and Description |
|---|---|
protected CellContentConverter |
cellContentConverter |
protected String[] |
columnNames |
static String |
DEFAULT_NAME |
protected String |
name
The name of the Inline-View.
|
protected ResultSetMetaData |
resultSetMetaData |
protected Session |
session |
protected Map<Integer,Integer> |
typeCache |
| Constructor and Description |
|---|
InlineViewBuilder(InlineViewStyle style,
Session session,
String[] columnNames)
Creates an
InlineViewBuilder with DEFAULT_NAME. |
InlineViewBuilder(InlineViewStyle style,
String name,
Session session,
String[] columnNames)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Finalizes reading.
|
protected abstract CellContentConverter |
createCellContentConverter() |
protected abstract void |
process(String inlineView)
Processes the inline-view
|
void |
readCurrentRow(ResultSet resultSet)
Reads current row of a result-set.
|
protected String |
sqlValue(ResultSet resultSet,
int i) |
public static final String DEFAULT_NAME
protected final String name
protected ResultSetMetaData resultSetMetaData
protected final Session session
protected CellContentConverter cellContentConverter
protected final String[] columnNames
public InlineViewBuilder(InlineViewStyle style, String name, Session session, String[] columnNames)
style - the stylename - the namecolumnNames - public InlineViewBuilder(InlineViewStyle style, Session session, String[] columnNames)
InlineViewBuilder with DEFAULT_NAME.style - the stylepublic void readCurrentRow(ResultSet resultSet) throws SQLException
Session.ResultSetReaderreadCurrentRow in interface Session.ResultSetReaderresultSet - the result-setSQLExceptionprotected abstract CellContentConverter createCellContentConverter()
protected String sqlValue(ResultSet resultSet, int i) throws SQLException
SQLExceptionpublic void close()
throws SQLException
Session.ResultSetReaderclose in interface Session.ResultSetReaderSQLExceptionprotected abstract void process(String inlineView) throws SQLException
inlineView - the inline-viewSQLException