Package | Description |
---|---|
io.odysz.module.xtable | |
io.odysz.semantic | |
io.odysz.semantic.DA |
Modifier and Type | Field and Description |
---|---|
protected LinkedHashMap<String,XMLTable> |
XMLFlatReader.tables
[key = tableID, value = XMLTable[qName, chars]]
|
Modifier and Type | Method and Description |
---|---|
XMLTable |
XMLTable.beforeFirst() |
static XMLTable |
XMLDataFactory.buildTable(String sourceID,
ILogger androidLogger,
String newTableID,
String fromStructureOfTableID,
ArrayList<String[]> fromList,
String targetFullpath,
IXMLStruct xmlStruct)
Construct a new table.
Copy data structure from 'fromTableID', copy data from 'fromList' |
XMLTable |
XMLTable.endTablePush() |
XMLTable |
XMLTable.findRecordsTable(HashMap<String,String> pkVals) |
static XMLTable |
XMLDataFactory.getTable(ILogger androidLogger,
String tableID,
InputStream istream,
IXMLStruct xmlStruct) |
static XMLTable |
XMLDataFactory.getTable(ILogger logger,
String tableID,
String fromFullpath,
IXMLStruct xmlStruct)
Usage ex.:
InputStream istr = res.getAssets().open(configName + ".xml"); IXMLStruct xmlStruct = new IXMLStruct() { @Override public String rootTag() { return "xtables"; } @Override public String tableTag() { return "table"; } @Override public String recordTag() { return "record"; } }; ILogger logger = new Logger(); skintable = XMLDataFactory.getTable(logger, configTablename, istr, xmlStruct); |
XMLTable |
IXMLData.getTable(String tableID) |
XMLTable |
XMLFlatData.getTable(String tableID) |
XMLTable |
XMLFlatReader.getTable(String tableID) |
static XMLTable |
XMLDataFactory.getTable(String sourceID,
ILogger androidLogger,
String tableID,
InputStream istream,
IXMLStruct xmlStruct) |
static XMLTable |
XMLDataFactory.getTable(String sourceID,
ILogger androidLogger,
String tableID,
InputStream istream,
IXMLStruct xmlStruct,
boolean reload) |
static XMLTable |
XMLDataFactory.getTable(String sourceID,
ILogger androidLogger,
String tableID,
String fromFullpath,
IXMLStruct xmlStruct) |
static XMLTable |
XMLDataFactory.getTable(String sourceID,
ILogger androidLogger,
String tableID,
String fromFullpath,
IXMLStruct xmlStruct,
boolean reload) |
static XMLTable |
XMLDataFactory.getTableReusing(String sourceID,
ILogger androidLogger,
String tableID,
IXMLStruct xmlStruct)
Get a table, don't reload.
|
Modifier and Type | Method and Description |
---|---|
LinkedHashMap<String,XMLTable> |
IXMLData.getTables() |
LinkedHashMap<String,XMLTable> |
XMLFlatData.getTables() |
LinkedHashMap<String,XMLTable> |
XMLFlatReader.getTables() |
static LinkedHashMap<String,XMLTable> |
XMLDataFactoryEx.getXtables(ILogger logger,
String targetFullpath,
IXMLStruct xmlStruct)
Construct a new table.
Not xml table data are buffered - for release memory. |
Modifier and Type | Method and Description |
---|---|
static Object |
XUtil.getClassInstance(XMLTable classRecs,
String classField,
Object[] constructorParas)
Construct instance of class specified in classRecs,
return object instantiated with constructorParas.
For ex.: Object[] p = new Object[2]; p[0] = res; p[1] = skinid; skin = (IMetronomeSkin) XUtil.getClassInstance(st, "class", p); |
void |
XMLTable.mergeWith(XMLTable withTable,
int duplicateMode)
Merge withTable to this object.
Table name and colomns order can be different, but both table must have exactly the same columns and pk fields. Note: This method is not suitable for large record's number. |
T |
XMLTable.IParser.parse(XMLTable t)
Parameter t is iterated with "while(next()".
|
static void |
XMLDataFactory.writeTables(IXMLStruct xmlStrct,
String fullpath,
XMLTable[] tables) |
static void |
XMLDataFactoryEx.writeTables(IXMLStruct xmlStrct,
String fullpath,
XMLTable[] tables)
Write xtables (mapping info) into mapping file (fullpath).
|
Modifier and Type | Method and Description |
---|---|
static XMLTable |
DATranscxt.loadSemantics(String connId)
Load semantics configuration, x-table, from file path.
|
Modifier and Type | Method and Description |
---|---|
static <M extends DATranscxt.SemanticsMap,S extends DASemantics> |
DATranscxt.initConfigs(String conn,
XMLTable xcfg,
DATranscxt.SmapFactory<M> smFactory) |
Modifier and Type | Method and Description |
---|---|
static void |
DatasetCfg.parseConfigs(HashMap<String,DatasetCfg.Dataset> cfgs,
XMLTable xSmtcs) |
Copyright © 2024. All rights reserved.