public class ResultWriter extends SqliteBase
COMMA, DEFINITION_SUFIX, DESCRIPTION, GAP_THRESHOLD, NAME, TYPE, UNIT, USER_VISIBLE| Constructor and Description |
|---|
ResultWriter(File newFile)
Writer constructor using the file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(String tableName,
String name,
String description,
ColumnInfo.ColumnType columnType,
String unitString,
Double gapThreshold,
boolean userVisible)
Add a new column definition in the table.
|
void |
addTable(String tableName)
Add a new table in the database.
|
void |
addValue(String tableName,
String columnName,
double value)
Add a new value given the column definition.
|
void |
addValue(String tableName,
String columnName,
int value)
Add a new value given the column definition.
|
void |
addValue(String tableName,
String columnName,
String value)
Add a new value given the column definition.
|
void |
initializeTableDateBuffer(String tableName)
initialize the data buffer
|
void |
updateLine(String tableName,
int idx)
update current line of values into the database.
|
void |
writeLine(String tableName)
Write current line of values into the database.
|
close, executeStatement, getPreparedStatement, getStatement, openpublic ResultWriter(File newFile)
newFile - to usepublic void addTable(String tableName) throws SqliteException
tableName - to addSqliteException - in case of errorpublic void initializeTableDateBuffer(String tableName)
tableName - to addpublic void addColumn(String tableName, String name, String description, ColumnInfo.ColumnType columnType, String unitString, Double gapThreshold, boolean userVisible) throws SqliteException
tableName - to usename - column namedescription - column descriptioncolumnType - column type.unitString - string of the unit.gapThreshold - gap threshold value.userVisible - true if the column is user visible.SqliteException - in case of errorpublic void addValue(String tableName, String columnName, double value)
tableName - to usecolumnName - column namevalue - object to writepublic void addValue(String tableName, String columnName, int value)
tableName - to usecolumnName - column namevalue - object to writepublic void addValue(String tableName, String columnName, String value)
tableName - to usecolumnName - column namevalue - object to writepublic void writeLine(String tableName) throws SqliteException
tableName - name of the table in which the line is added.SqliteException - in case of errorpublic void updateLine(String tableName, int idx) throws SqliteException
tableName - name of the table in which the line is added.idx - line indexSqliteException - in case of errorCopyright © 2024. All rights reserved.