Package io.odysz.semantic
Class DASemantics.SemanticHandler
java.lang.Object
io.odysz.semantic.DASemantics.SemanticHandler
- All Implemented Interfaces:
XMLTable.IMapValue
- Direct Known Subclasses:
DASemantics.ShExtFilev2
,DBSynmantics.ShSynChange
- Enclosing class:
- DASemantics
public abstract static class DASemantics.SemanticHandler
extends Object
implements XMLTable.IMapValue
-
Field Summary
Modifier and TypeFieldDescriptionprotected String[]
protected boolean
protected boolean
protected String
protected boolean
protected DASemantics.smtype
protected String
protected io.odysz.transact.sql.Transcxt
protected boolean
protected boolean
-
Constructor Summary
ModifierConstructorDescriptionprotected
SemanticHandler
(io.odysz.transact.sql.Transcxt trxt, DASemantics.smtype sm, String tabl, String pk, String[] args) -
Method Summary
Modifier and TypeMethodDescriptionboolean
is
(DASemantics.smtype sm) void
logi()
mapKey()
protected void
onDelete
(io.odysz.semantics.ISemantext stx, io.odysz.transact.sql.Delete del, io.odysz.transact.sql.parts.condition.Condit whereCondt, io.odysz.semantics.IUser usr) Handle onDelete event.protected void
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
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) protected void
onUpdate
(io.odysz.semantics.ISemantext stx, io.odysz.transact.sql.Update updt, ArrayList<Object[]> row, Map<String, Integer> cols, io.odysz.semantics.IUser usr)
-
Field Details
-
insert
protected boolean insert -
update
protected boolean update -
delete
protected boolean delete -
post
protected boolean post -
target
-
pkField
-
args
-
trxt
protected io.odysz.transact.sql.Transcxt trxt -
sm
-
verbose
protected boolean verbose
-
-
Constructor Details
-
SemanticHandler
protected SemanticHandler(io.odysz.transact.sql.Transcxt trxt, DASemantics.smtype sm, String tabl, String pk, String[] args) throws SemanticException - Throws:
SemanticException
-
-
Method Details
-
mapKey
- Specified by:
mapKey
in interfaceXMLTable.IMapValue
-
logi
public void logi() -
onInsert
protected void onInsert(io.odysz.semantics.ISemantext stx, io.odysz.transact.sql.Insert insrt, ArrayList<Object[]> row, Map<String, Integer> cols, io.odysz.semantics.IUser usr) throws io.odysz.transact.x.TransException- Throws:
io.odysz.transact.x.TransException
-
onUpdate
protected void onUpdate(io.odysz.semantics.ISemantext stx, io.odysz.transact.sql.Update updt, ArrayList<Object[]> row, Map<String, Integer> cols, io.odysz.semantics.IUser usr) throws io.odysz.transact.x.TransException- Throws:
io.odysz.transact.x.TransException
-
onDelete
protected void onDelete(io.odysz.semantics.ISemantext stx, io.odysz.transact.sql.Delete del, io.odysz.transact.sql.parts.condition.Condit whereCondt, io.odysz.semantics.IUser usr) throws io.odysz.transact.x.TransException Handle onDelete event.- Parameters:
stx
-del
-whereCondt
- delete statement's condition.usr
-- Throws:
io.odysz.transact.x.TransException
SQLException
-
onPost
protected void 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) throws SemanticException- Throws:
SemanticException
-
is
-