public class TableJSONDataSource extends Object implements JSONDataSource
JSONDataSource
implementation for table.Modifier and Type | Class and Description |
---|---|
static interface |
TableJSONDataSource.JSONObjectGenerator
This represents the logic that will transform the current entry of a
data table to a JSON.
|
Constructor and Description |
---|
TableJSONDataSource(BTable df,
boolean isInTransaction) |
Modifier and Type | Method and Description |
---|---|
void |
serialize(JsonGenerator gen)
Serializes the current representation of the JSON data source to the given
JSONDataSource . |
public TableJSONDataSource(BTable df, boolean isInTransaction)
public void serialize(JsonGenerator gen) throws IOException
JSONDataSource
JSONDataSource
.serialize
in interface JSONDataSource
gen
- The JsonGenerator
object to write the data toIOException
- Error occurs while serializingCopyright © 2018 WSO2. All rights reserved.