public class TableDataBuffer extends Object
Constructor and Description |
---|
TableDataBuffer()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addColumn(ColumnInfo columnInfo)
Adds a column to the buffer.
|
void |
addValue(String columnName,
double value)
Add a value to the buffer.
|
void |
addValue(String columnName,
int value)
Add a value to the buffer.
|
void |
addValue(String columnName,
String value)
Add a value to the buffer.
|
void |
clearValues()
Clear all the values in the buffer.
|
ColumnInfo |
getColumnInfo(String columnName)
Get the information associated with a column.
|
List<String> |
getColumnNameList()
Get the list of columns in the buffer.
|
Object |
getValue(String columnName)
Get the value associated with a column.
|
public void addColumn(ColumnInfo columnInfo) throws SqliteException
columnInfo
- information of the column to add.SqliteException
- in case the column already exists.public void addValue(String columnName, double value)
columnName
- name of the column where the value will be added.value
- value to add.public void addValue(String columnName, int value)
columnName
- name of the column where the value will be added.value
- value to add.public void addValue(String columnName, String value)
columnName
- name of the column where the value will be added.value
- value to add.public List<String> getColumnNameList()
public ColumnInfo getColumnInfo(String columnName)
columnName
- name of the column.public Object getValue(String columnName)
columnName
- name of the column.public void clearValues()
Copyright © 2024. All rights reserved.