public class TableJSONDataSource extends Object implements BJSON.JSONDataSource
BJSON.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
JsonNode. |
| Constructor and Description |
|---|
TableJSONDataSource(BTable df,
boolean isInTransaction) |
TableJSONDataSource(BTable df,
TableJSONDataSource.JSONObjectGenerator objGen,
boolean isInTransaction) |
| Modifier and Type | Method and Description |
|---|---|
void |
serialize(JsonGenerator gen)
Serializes the current representation of the JSON data source to the given
JsonGenerator. |
public TableJSONDataSource(BTable df, boolean isInTransaction)
public TableJSONDataSource(BTable df, TableJSONDataSource.JSONObjectGenerator objGen, boolean isInTransaction)
public void serialize(JsonGenerator gen) throws IOException
BJSON.JSONDataSourceJsonGenerator.serialize in interface BJSON.JSONDataSourcegen - The JsonGenerator object to write the data toIOException - Error occurs while serializingCopyright © 2018 WSO2. All rights reserved.