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
FieldsModifier and TypeFieldDescriptionprotected String[]protected booleanprotected booleanprotected Stringprotected booleanprotected DASemantics.smtypeprotected Stringprotected io.odysz.transact.sql.Transcxtprotected booleanprotected boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSemanticHandler(io.odysz.transact.sql.Transcxt trxt, DASemantics.smtype sm, String tabl, String pk, String[] args) -
Method Summary
Modifier and TypeMethodDescriptionbooleanis(DASemantics.smtype sm) voidlogi()mapKey()protected voidonDelete(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 voidonInsert(io.odysz.semantics.ISemantext stx, io.odysz.transact.sql.Insert insrt, ArrayList<Object[]> row, Map<String, Integer> cols, io.odysz.semantics.IUser usr) protected voidonPost(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 voidonUpdate(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:
mapKeyin 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.TransExceptionSQLException
-
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
-