Class InlineViewBuilder
java.lang.Object
net.sf.jailer.database.InlineViewBuilder
- All Implemented Interfaces:
Session.ResultSetReader
Reads
ResultSets and builds inline-views according to the content.- Author:
- Ralf Wisser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CellContentConverterprotected final String[]static final Stringprotected final StringThe name of the Inline-View.protected ResultSetMetaDataprotected final Sessionprotected final StatementBuilder -
Constructor Summary
ConstructorsConstructorDescriptionInlineViewBuilder(InlineViewStyle style, String name, Session session, String[] columnNames) Constructor.InlineViewBuilder(InlineViewStyle style, Session session, String[] columnNames) Creates anInlineViewBuilderwithDEFAULT_NAME. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Finalizes reading and processes any remaining inline-view content.protected abstract CellContentConverterprotected abstract voidProcesses the inline-viewvoidreadCurrentRow(ResultSet resultSet) Reads the current row and appends it to the inline-view being built.protected String
-
Field Details
-
DEFAULT_NAME
- See Also:
-
name
The name of the Inline-View. -
statementBuilder
-
resultSetMetaData
-
typeCache
-
session
-
cellContentConverter
-
columnNames
-
-
Constructor Details
-
InlineViewBuilder
Constructor.- Parameters:
style- the inline-view stylename- the name of the inline viewsession- the database sessioncolumnNames- the column names of the inline view
-
InlineViewBuilder
Creates anInlineViewBuilderwithDEFAULT_NAME.- Parameters:
style- the inline-view stylesession- the database sessioncolumnNames- the column names of the inline view
-
-
Method Details
-
readCurrentRow
Reads the current row and appends it to the inline-view being built.- Specified by:
readCurrentRowin interfaceSession.ResultSetReader- Parameters:
resultSet- the current result set row- Throws:
SQLException
-
createCellContentConverter
-
sqlValue
- Throws:
SQLException
-
close
Finalizes reading and processes any remaining inline-view content.- Specified by:
closein interfaceSession.ResultSetReader- Throws:
SQLException
-
process
Processes the inline-view- Parameters:
inlineView- the inline-view- Throws:
SQLException
-