Package io.odysz.semantic.syn
Class DBSynTransBuilder
java.lang.Object
io.odysz.transact.sql.Transcxt
io.odysz.semantic.DATranscxt
io.odysz.semantic.syn.DBSynTransBuilder
-
Nested Class Summary
Nested classes/interfaces inherited from class io.odysz.semantic.DATranscxt
DATranscxt.SemanticsMap, DATranscxt.SmapFactory<M extends DATranscxt.SemanticsMap>
-
Field Summary
Modifier and TypeFieldDescriptionprotected final SynChangeMeta
protected final SynchangeBuffMeta
final String
protected final PeersMeta
protected final SynSubsMeta
final SynodeMeta
protected static HashMap<String,
DATranscxt.SemanticsMap> Fields inherited from class io.odysz.semantic.DATranscxt
cfgroot, dummy, runtimepath, smtMaps
Fields inherited from class io.odysz.transact.sql.Transcxt
basictx
-
Constructor Summary
ConstructorDescriptionA helper version ofDBSynTransBuilder(SyndomContext, DBSyntableBuilder)
, ignoring loadingDBSynTransBuilder.SynmanticsMap
.DBSynTransBuilder
(SyndomContext x, DBSyntableBuilder logger) -
Method Summary
Modifier and TypeMethodDescriptionstatic SyntityMeta
getEntityMeta
(String synconn, String tbl) io.odysz.semantics.ISemantext
io.odysz.semantics.ISemantext
instancontxt
(String connId, io.odysz.semantics.IUser usr) Create a new semantext instance with the static resources.synode()
static <M extends DATranscxt.SemanticsMap,
S extends DASemantics>
MsynSemantics
(DATranscxt trb, String conn, String synode, Syntities syntities) Registering syntities, adding semantics handler,DBSynmantics.ShSynChange
, to the Semantics map.Methods inherited from class io.odysz.semantic.DATranscxt
configRoot, delete, dummyUser, exists, findResulved, getBasicTrans, getHandler, hasSemantics, initConfigs, insert, key, key, loadSemanticsXml, now, quotation, select, tableMeta, update
Methods inherited from class io.odysz.transact.sql.Transcxt
basictx, delete, insert, insertExp, select, selectPage, selectPage, tableMeta, update, with, with
-
Field Details
-
perdomain
-
synm
-
pnvm
-
subm
-
chgm
-
exbm
-
synmanticMaps
-
-
Constructor Details
-
DBSynTransBuilder
public DBSynTransBuilder(SyndomContext x, DBSyntableBuilder logger) throws SemanticException, SQLException, SAXException, IOException, Exception -
DBSynTransBuilder
public DBSynTransBuilder(SyndomContext domx) throws SemanticException, SQLException, SAXException, IOException, Exception A helper version ofDBSynTransBuilder(SyndomContext, DBSyntableBuilder)
, ignoring loadingDBSynTransBuilder.SynmanticsMap
.- Parameters:
domx
-- Throws:
Exception
IOException
SAXException
SQLException
SemanticException
-
-
Method Details
-
synode
-
synSemantics
public static <M extends DATranscxt.SemanticsMap,S extends DASemantics> M synSemantics(DATranscxt trb, String conn, String synode, Syntities syntities) throws Exception Registering syntities, adding semantics handler,DBSynmantics.ShSynChange
, to the Semantics map. Equivalent toDATranscxt.initConfigs(String, XMLTable, SmapFactory)
.- Type Parameters:
M
-S
-- Parameters:
trb
-synode
-syntities
-- Returns:
- semantics map of connection
conn
- Throws:
Exception
-
instancontxt
public io.odysz.semantics.ISemantext instancontxt(String connId, io.odysz.semantics.IUser usr) throws io.odysz.transact.x.TransException Description copied from class:DATranscxt
Create a new semantext instance with the static resources.
DATranscxt
use a basic context (without semantics handler) for basic sql building.
Every context used forDASemantics
handling must use this to create a new context instance.- Overrides:
instancontxt
in classDATranscxt
- Parameters:
connId
- connection id usually mapped with client function uri, like: Connects.uri2conn(req.uri())- Returns:
- semantext
- Throws:
io.odysz.transact.x.TransException
- See Also:
-
ISemantext
-
getEntityMeta
public static SyntityMeta getEntityMeta(String synconn, String tbl) throws io.odysz.transact.x.TransException, SQLException - Throws:
io.odysz.transact.x.TransException
SQLException
-
instancontxt
public io.odysz.semantics.ISemantext instancontxt() throws io.odysz.transact.x.TransException- Throws:
io.odysz.transact.x.TransException
-