use of org.ballerinalang.model.TableOMDataSource in project ballerina by ballerina-lang.
the class XMLUtils method tableToXML.
/**
* Converts a {@link BTable} to {@link BXML}.
*
* @param table {@link BTable} to convert
* @param isInTransaction Within a transaction or not
* @return converted {@link BXML}
*/
@SuppressWarnings("rawtypes")
public static BXML tableToXML(BTable table, boolean isInTransaction) {
OMSourcedElementImpl omSourcedElement = new OMSourcedElementImpl();
omSourcedElement.init(new TableOMDataSource(table, null, null, isInTransaction));
return new BXMLItem(omSourcedElement);
}
Aggregations