public abstract class InlineViewBuilder extends java.lang.Object implements Session.ResultSetReader
ResultSet
s 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.ResultSetReader
readCurrentRow
in interface Session.ResultSetReader
resultSet
- the result-setjava.sql.SQLException
protected abstract CellContentConverter createCellContentConverter()
protected java.lang.String sqlValue(java.sql.ResultSet resultSet, int i) throws java.sql.SQLException
java.sql.SQLException
public void close() throws java.sql.SQLException
Session.ResultSetReader
close
in interface Session.ResultSetReader
java.sql.SQLException
protected abstract void process(java.lang.String inlineView) throws java.sql.SQLException
inlineView
- the inline-viewjava.sql.SQLException