public class SQLToCellValueConverter extends Object implements ToCellValueConverter
| Modifier and Type | Class and Description |
|---|---|
static interface |
SQLToCellValueConverter.IntervalConverter
JDBC does not provide a way to identify SQL Intervals.
|
| Modifier and Type | Method and Description |
|---|---|
static SQLToCellValueConverter |
create(SQLToCellValueConverter.IntervalConverter intervalConverter,
String currency,
Charset charset)
Create a new converter
|
CellValue |
from(CellType type,
Object o)
Converts a value to a CellValue
|
CellValue |
from(Object o)
Converts a value to a CellValue
|
public static SQLToCellValueConverter create(SQLToCellValueConverter.IntervalConverter intervalConverter, String currency, Charset charset)
intervalConverter - a custom converter for SQL intervals. May be nullcurrency - the currencycharset - the charset for SQL byte object conversionpublic CellValue from(Object o)
ToCellValueConverterfrom in interface ToCellValueConvertero - the valuepublic CellValue from(CellType type, Object o) throws FastOdsException
ToCellValueConverterfrom in interface ToCellValueConvertertype - a hinto - the valueFastOdsException - if the cast was not possibleCopyright © 2016–2021. All rights reserved.