Package | Description |
---|---|
io.odysz.module.xtable | |
io.odysz.semantic | |
io.odysz.semantic.DA | |
io.odysz.semantic.meta | |
io.odysz.semantic.syn | |
io.odysz.semantics.x |
Modifier and Type | Method and Description |
---|---|
<T extends XMLTable.IMapValue> |
XMLTable.map(XMLTable.IParser<T> parser) |
T |
XMLTable.IParser.parse(XMLTable t)
Parameter t is iterated with "while(next()".
|
Modifier and Type | Method and Description |
---|---|
void |
DASemantics.addHandler(DASemantics.smtype semantic,
String tabl,
String recId,
String[] args) |
static io.odysz.transact.sql.Transcxt |
DATranscxt.getBasicTrans(String conn)
Get a basic transact builder (without semantics handling)
|
static <M extends DATranscxt.SemanticsMap,S extends DASemantics> |
DATranscxt.initConfigs(String conn,
XMLTable xcfg,
DATranscxt.SmapFactory<M> smFactory) |
static XMLTable |
DATranscxt.loadSemantics(String connId)
Load semantics configuration, x-table, from file path.
|
void |
DASemantics.onDelete(io.odysz.semantics.ISemantext semantx,
io.odysz.transact.sql.Statement<? extends io.odysz.transact.sql.Statement<?>> stmt,
io.odysz.transact.sql.parts.condition.Condit whereCondt,
io.odysz.semantics.IUser usr) |
protected void |
DASemantics.SemanticHandler.onDelete(io.odysz.semantics.ISemantext stx,
io.odysz.transact.sql.Statement<? extends io.odysz.transact.sql.Statement<?>> stmt,
io.odysz.transact.sql.parts.condition.Condit whereCondt,
io.odysz.semantics.IUser usr)
Handle onDelete event.
|
protected void |
DASemantics.ShExtFile.onDelete(io.odysz.semantics.ISemantext stx,
io.odysz.transact.sql.Statement<? extends io.odysz.transact.sql.Statement<?>> stmt,
io.odysz.transact.sql.parts.condition.Condit condt,
io.odysz.semantics.IUser usr)
Deprecated.
|
protected void |
DASemantics.ShExtFilev2.onDelete(io.odysz.semantics.ISemantext stx,
io.odysz.transact.sql.Statement<? extends io.odysz.transact.sql.Statement<?>> stmt,
io.odysz.transact.sql.parts.condition.Condit condt,
io.odysz.semantics.IUser usr) |
io.odysz.semantics.ISemantext |
DASemantext.onInsert(io.odysz.transact.sql.Insert insert,
String tabl,
List<ArrayList<Object[]>> rows)
When inserting, process data row with configured semantics, like auto-pk, fk-ins, etc..
|
void |
DASemantics.onInsert(io.odysz.semantics.ISemantext semantx,
io.odysz.transact.sql.Insert statemt,
ArrayList<Object[]> row,
Map<String,Integer> cols,
io.odysz.semantics.IUser usr) |
protected void |
DASemantics.SemanticHandler.onInsert(io.odysz.semantics.ISemantext stx,
io.odysz.transact.sql.Insert insrt,
ArrayList<Object[]> row,
Map<String,Integer> cols,
io.odysz.semantics.IUser usr) |
protected void |
DASemantics.ShExtFilev2.onInsert(io.odysz.semantics.ISemantext stx,
io.odysz.transact.sql.Insert insrt,
ArrayList<Object[]> row,
Map<String,Integer> cols,
io.odysz.semantics.IUser usr) |
void |
DASemantics.onPost(io.odysz.semantics.ISemantext sx,
io.odysz.transact.sql.Statement<? extends io.odysz.transact.sql.Statement<?>> stmt,
ArrayList<Object[]> row,
Map<String,Integer> cols,
io.odysz.semantics.IUser usr,
ArrayList<String> sqlBuf) |
protected void |
DASemantics.SemanticHandler.onPost(io.odysz.semantics.ISemantext sm,
io.odysz.transact.sql.Statement<? extends io.odysz.transact.sql.Statement<?>> stmt,
ArrayList<Object[]> row,
Map<String,Integer> cols,
io.odysz.semantics.IUser usr,
ArrayList<String> sqlBuf) |
void |
DASemantics.onUpdate(io.odysz.semantics.ISemantext semantx,
io.odysz.transact.sql.Update satemt,
ArrayList<Object[]> row,
Map<String,Integer> cols,
io.odysz.semantics.IUser usr) |
protected void |
DASemantics.SemanticHandler.onUpdate(io.odysz.semantics.ISemantext stx,
io.odysz.transact.sql.Update updt,
ArrayList<Object[]> row,
Map<String,Integer> cols,
io.odysz.semantics.IUser usr) |
protected void |
DASemantics.ShExtFile.onUpdate(io.odysz.semantics.ISemantext stx,
io.odysz.transact.sql.Update updt,
ArrayList<Object[]> row,
Map<String,Integer> cols,
io.odysz.semantics.IUser usr)
Deprecated.
On updating external files handler.
|
protected void |
DASemantics.ShExtFilev2.onUpdate(io.odysz.semantics.ISemantext stx,
io.odysz.transact.sql.Update updt,
ArrayList<Object[]> row,
Map<String,Integer> cols,
io.odysz.semantics.IUser usr)
On updating external files' handler.
|
io.odysz.semantics.ISemantext |
DASemantext.onUpdate(io.odysz.transact.sql.Update update,
String tabl,
ArrayList<Object[]> nvs) |
static DASemantics.smtype |
DASemantics.smtype.parse(String type)
Convert string key to
DASemantics.smtype . |
DASemantics.SemanticHandler |
DASemantics.parseHandler(io.odysz.transact.sql.Transcxt trb,
String tabl,
DASemantics.smtype semantic,
String recId,
String[] args) |
protected String |
DASemantics.ShExtFilev2.selectUri(io.odysz.semantics.ISemantext stx,
io.odysz.transact.sql.Statement<?> stmt,
io.odysz.transact.sql.parts.condition.Condit pk,
io.odysz.semantics.IUser usr) |
io.odysz.semantics.meta.TableMeta |
DATranscxt.tableMeta(String conn,
String tabl) |
Constructor and Description |
---|
DASemantext(String connId,
DATranscxt.SemanticsMap semanticsMap,
io.odysz.semantics.IUser usr,
String rtPath)
Initialize a context for semantics handling.
|
DATranscxt(String conn)
Create a transact builder with basic DASemantext instance.
|
SemanticHandler(io.odysz.transact.sql.Transcxt trxt,
DASemantics.smtype sm,
String tabl,
String pk,
String[] args) |
ShExtFile(io.odysz.transact.sql.Transcxt trxt,
String tabl,
String pk,
String[] args)
Deprecated.
|
ShExtFilev2(io.odysz.transact.sql.Transcxt trxt,
String tabl,
String pk,
String[] args) |
Modifier and Type | Method and Description |
---|---|
static List<?> |
DatasetCfg.buildForest(AnResultset rs,
DatasetCfg.TreeSemantics treeSemtcs)
Convert the result set to a forest.
|
static List<DatasetCfg.AnTreeNode> |
DatasetHelper.buildForest(AnResultset rs,
DatasetCfg.TreeSemantics treeSemtcs,
DatasetHelper.NodeFormatter... noder)
Convert the result set to a forest.
|
static HashMap<String,io.odysz.semantics.meta.TableMeta> |
Connects.getMeta(String connId) |
static io.odysz.semantics.meta.TableMeta |
Connects.getMeta(String connId,
String tbl) |
String |
DatasetCfg.Dataset.getSql(io.odysz.common.dbtype driver) |
static AbsConnect<?> |
AbsConnect.initDmConnect(String xmlDir,
io.odysz.common.dbtype type,
String jdbcUrl,
String usr,
String pswd,
boolean printSql,
boolean log) |
static HashMap<String,io.odysz.semantics.meta.TableMeta> |
Connects.loadMeta(String conn)
Build database tables' meta.
|
static io.odysz.common.dbtype |
Connects.parseDrvType(String type)
Convert names like "sqlit" to
dbtype . |
static void |
Connects.setMeta(String connId,
io.odysz.semantics.meta.TableMeta m)
Set table meta (providing a chance of extending table's semantics and keep a single copy for DB's meta).
|
static String |
Connects.uri2conn(String uri)
Mapping client function id to data connection according to configuration.
|
Modifier and Type | Method and Description |
---|---|
String[] |
SyntityMeta.entCols()
Generate columns for inserting challenging entities.
|
HashSet<String> |
SyntityMeta.globalIds() |
ArrayList<Object[]> |
SyntityMeta.insertChallengeEnt(String uids,
AnResultset challents)
Generate data for value clause of the Insert statement,
using columns for filter out fields of entity table.
|
ArrayList<Object[]> |
SyntityMeta.updateEntNvs(SynChangeMeta chgm,
String entid,
AnResultset entities,
AnResultset challenges)
Generate set values for the Update statement which is used for updating current entity, e.g.
|
Modifier and Type | Method and Description |
---|---|
void |
ExchangeContext.addAnswer(AnResultset answer) |
void |
ExchangeContext.buffChanges(HashMap<String,Nyquence> myNyquvect,
HashMap<String,Object[]> chcols,
ArrayList<ArrayList<Object>> yourchallenges,
HashMap<String,AnResultset> entities)
Buffering changes while responding to
challenges . |
void |
ExchangeContext.clear() |
ChangeLogs |
ChangeLogs.entities(HashMap<String,AnResultset> entities) |
SyntityMeta |
DBSynsactBuilder.getEntityMeta(String entbl) |
SyntityMeta |
DBSyntableBuilder.getEntityMeta(String entbl) |
void |
ExchangeContext.initChallenge(String target,
ChangeLogs diff) |
protected void |
DBSynmantics.ShSynChange.onDelete(io.odysz.semantics.ISemantext stx,
io.odysz.transact.sql.Statement<? extends io.odysz.transact.sql.Statement<?>> stmt,
io.odysz.transact.sql.parts.condition.Condit condt,
io.odysz.semantics.IUser usr) |
protected void |
DBSynmantics.ShSynChange_del.onDelete(io.odysz.semantics.ISemantext stx,
io.odysz.transact.sql.Statement<? extends io.odysz.transact.sql.Statement<?>> stmt,
io.odysz.transact.sql.parts.condition.Condit condt,
io.odysz.semantics.IUser usr) |
protected void |
DBSynmantics.ShSynChange_del.onInsert(ISyncontext stx,
io.odysz.transact.sql.Insert insrt,
ArrayList<Object[]> row,
Map<String,Integer> cols,
io.odysz.semantics.IUser usr) |
protected void |
DBSynmantics.ShSynChange_del.onUpdate(ISyncontext stx,
io.odysz.transact.sql.Update updt,
ArrayList<Object[]> row,
Map<String,Integer> cols,
io.odysz.semantics.IUser usr) |
DASemantics.SemanticHandler |
DBSynmantics.parseHandler(io.odysz.transact.sql.Transcxt tsx,
String tabl,
DASemantics.smtype smtp,
String pk,
String[] args) |
DBSynsactBuilder |
DBSynsactBuilder.registerEntity(String conn,
SyntityMeta m) |
DBSyntableBuilder |
DBSyntableBuilder.registerEntity(String conn,
SyntityMeta m) |
String |
SyncRobot.touchTempDir(String conn,
String tablPhotos)
Get a temp dir, and have it deleted when logout.
|
Constructor and Description |
---|
DBSyntext(String connId,
DBSynsactBuilder.SynmanticsMap metas,
io.odysz.semantics.IUser usr,
String rtPath) |
Modifier and Type | Class and Description |
---|---|
class |
ExchangeException |
Modifier and Type | Method and Description |
---|---|
SemanticException |
SemanticException.ex(io.odysz.semantics.SemanticObject ex)
Set object for details of exception
|
Copyright © 2024. All rights reserved.