Package io.odysz.semantic.syn
Class DBSynmantics
java.lang.Object
io.odysz.semantic.DASemantics
io.odysz.semantic.syn.DBSynmantics
See the topic of
Extending default handler plugin.
- Author:
- odys-z@github.com
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Semantics handler of syn-change logs.Nested classes/interfaces inherited from class io.odysz.semantic.DASemantics
DASemantics.SemanticHandler, DASemantics.ShExtFilev2, DASemantics.smtype
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDBSynmantics
(io.odysz.transact.sql.Transcxt basicTx, String synode, String tabl, String pk, boolean... verbose) -
Method Summary
Modifier and TypeMethodDescriptioncreateSMap
(String conn) static io.odysz.transact.sql.Delete
logChange
(SyndomContext x, DBSyntableBuilder b, io.odysz.transact.sql.Delete delt, SyntityMeta entm, AnResultset hittings) static io.odysz.transact.sql.Insert
logChange
(SyndomContext x, DBSyntableBuilder b, io.odysz.transact.sql.Insert inst, SyntityMeta entm, String synode, Object... entitypk) static io.odysz.transact.sql.Update
logChange
(SyndomContext x, DBSyntableBuilder b, io.odysz.transact.sql.Update updt, SyntityMeta entm, String synoder, AnResultset hittings, Iterable<String> updcols) parseHandler
(io.odysz.transact.sql.Transcxt tsx, String tabl, DASemantics.smtype smtp, String pk, String[] args) Methods inherited from class io.odysz.semantic.DASemantics
addHandler, addHandler, clone, handler, has, onDelete, onInsert, onPost, onUpdate, replaceMeta, requiredNv
-
Constructor Details
-
DBSynmantics
-
-
Method Details
-
parseHandler
public DASemantics.SemanticHandler parseHandler(io.odysz.transact.sql.Transcxt tsx, String tabl, DASemantics.smtype smtp, String pk, String[] args) throws Exception - Overrides:
parseHandler
in classDASemantics
- Throws:
Exception
-
createSMap
- Overrides:
createSMap
in classDASemantics
-
logChange
public static io.odysz.transact.sql.Insert logChange(SyndomContext x, DBSyntableBuilder b, io.odysz.transact.sql.Insert inst, SyntityMeta entm, String synode, Object... entitypk) throws io.odysz.transact.x.TransException - Parameters:
b
-inst
-entm
-synode
-entitypk
- , required if the entity's id is a notsmptyp.autoInc
. This is resolved withResulving
, and overriden by aResulving
argument.- Returns:
- inst
- Throws:
io.odysz.transact.x.TransException
-
logChange
public static io.odysz.transact.sql.Update logChange(SyndomContext x, DBSyntableBuilder b, io.odysz.transact.sql.Update updt, SyntityMeta entm, String synoder, AnResultset hittings, Iterable<String> updcols) throws io.odysz.transact.x.TransException, SQLException - Throws:
io.odysz.transact.x.TransException
SQLException
-
logChange
public static io.odysz.transact.sql.Delete logChange(SyndomContext x, DBSyntableBuilder b, io.odysz.transact.sql.Delete delt, SyntityMeta entm, AnResultset hittings) throws io.odysz.transact.x.TransException, SQLException - Throws:
io.odysz.transact.x.TransException
SQLException
-