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 ClassesNested classes/interfaces inherited from class io.odysz.semantic.DATranscxt
DATranscxt.SemanticsMap, DATranscxt.SmapFactory<M extends DATranscxt.SemanticsMap> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SynChangeMetaprotected final SynchangeBuffMetafinal Stringprotected final PeersMetaprotected final SynSubsMetafinal SynodeMetaprotected static HashMap<String,DATranscxt.SemanticsMap> Fields inherited from class io.odysz.semantic.DATranscxt
cfgroot, dummy, runtimepath, smtMapsFields inherited from class io.odysz.transact.sql.Transcxt
basictx -
Constructor Summary
ConstructorsConstructorDescriptionA helper version ofDBSynTransBuilder(SyndomContext, DBSyntableBuilder), ignoring loadingDBSynTransBuilder.SynmanticsMap.DBSynTransBuilder(SyndomContext x, DBSyntableBuilder logger) -
Method Summary
Modifier and TypeMethodDescriptionstatic SyntityMetagetEntityMeta(String synconn, String tbl) io.odysz.semantics.ISemantextio.odysz.semantics.ISemantextinstancontxt(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, updateMethods 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:
ExceptionIOExceptionSAXExceptionSQLExceptionSemanticException
-
-
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:DATranscxtCreate a new semantext instance with the static resources.
DATranscxtuse a basic context (without semantics handler) for basic sql building.
Every context used forDASemanticshandling must use this to create a new context instance.- Overrides:
instancontxtin 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.TransExceptionSQLException
-
instancontxt
public io.odysz.semantics.ISemantext instancontxt() throws io.odysz.transact.x.TransException- Throws:
io.odysz.transact.x.TransException
-