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