public class TableProvider extends Object
TableProvider creates In Memory database for tables.| Modifier and Type | Method and Description |
|---|---|
TableIterator |
createIterator(String tableName,
BStructType type) |
String |
createTable(BType constrainedType,
BStringArray primaryKeys,
BStringArray indexeColumns) |
String |
createTable(String fromTableName,
String query,
BStructType tableType,
BRefValueArray params) |
String |
createTable(String fromTableName,
String joinTableName,
String query,
BStructType tableType,
BRefValueArray params) |
void |
deleteData(String tableName,
BStruct constrainedType) |
void |
dropTable(String tableName) |
static TableProvider |
getInstance() |
String |
insertData(String tableName,
BStruct constrainedType) |
public static TableProvider getInstance()
public String createTable(BType constrainedType, BStringArray primaryKeys, BStringArray indexeColumns)
public String createTable(String fromTableName, String joinTableName, String query, BStructType tableType, BRefValueArray params)
public String createTable(String fromTableName, String query, BStructType tableType, BRefValueArray params)
public void dropTable(String tableName)
public TableIterator createIterator(String tableName, BStructType type)
Copyright © 2018 WSO2. All rights reserved.