public class DatasetHelper extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
DatasetHelper.NodeFormatter
The reference implementation can be similar to
DatasetHelper#formatSemanticNode(TreeSemantics, AnResultset, AnTreeNode, int) . |
Constructor and Description |
---|
DatasetHelper() |
Modifier and Type | Method and Description |
---|---|
static List<DatasetCfg.AnTreeNode> |
buildForest(AnResultset rs,
DatasetCfg.TreeSemantics treeSemtcs,
DatasetHelper.NodeFormatter... noder)
Convert the result set to a forest.
|
static List<?> |
loadStree(String conn,
String sk,
int page,
int size,
String[] sqlArgs,
DatasetHelper.NodeFormatter... optionalNoder) |
static List<?> |
loadStree(String conn,
String sk,
io.odysz.transact.sql.PageInf page,
DatasetHelper.NodeFormatter... noder)
Load semantic tree configured in dataset.xml.
|
public static List<?> loadStree(String conn, String sk, int page, int size, String[] sqlArgs, DatasetHelper.NodeFormatter... optionalNoder) throws SQLException, io.odysz.transact.x.TransException
SQLException
io.odysz.transact.x.TransException
public static List<?> loadStree(String conn, String sk, io.odysz.transact.sql.PageInf page, DatasetHelper.NodeFormatter... noder) throws SQLException, io.odysz.transact.x.TransException
conn
- sk
- page
- cannot be nullSQLException
io.odysz.transact.x.TransException
public static List<DatasetCfg.AnTreeNode> buildForest(AnResultset rs, DatasetCfg.TreeSemantics treeSemtcs, DatasetHelper.NodeFormatter... noder) throws SQLException, SemanticException
rs
- treeSemtcs
- noder
- optional to override default formatter DatasetHelper.NodeFormatter
.SQLException
SemanticException
- data structure can not build tree / forestCopyright © 2024. All rights reserved.