public abstract static class DASemantics.SemanticHandler extends Object implements XMLTable.IMapValue
Modifier and Type | Field and Description |
---|---|
protected String[] |
args |
protected boolean |
delete |
protected boolean |
insert |
protected String |
pkField |
protected boolean |
post |
protected DASemantics.smtype |
sm |
protected String |
target |
protected io.odysz.transact.sql.Transcxt |
trxt |
protected boolean |
update |
protected boolean |
verbose |
Modifier | Constructor and Description |
---|---|
protected |
SemanticHandler(io.odysz.transact.sql.Transcxt trxt,
DASemantics.smtype sm,
String tabl,
String pk,
String[] args) |
Modifier and Type | Method and Description |
---|---|
boolean |
is(DASemantics.smtype sm) |
String |
key() |
void |
logi() |
protected void |
onDelete(io.odysz.semantics.ISemantext stx,
io.odysz.transact.sql.Statement<? extends io.odysz.transact.sql.Statement<?>> stmt,
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) |
protected boolean insert
protected boolean update
protected boolean delete
protected boolean post
protected String target
protected String pkField
protected String[] args
protected io.odysz.transact.sql.Transcxt trxt
protected DASemantics.smtype sm
protected boolean verbose
protected SemanticHandler(io.odysz.transact.sql.Transcxt trxt, DASemantics.smtype sm, String tabl, String pk, String[] args) throws SemanticException
SemanticException
public String key()
key
in interface XMLTable.IMapValue
public void logi()
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 SemanticException
SemanticException
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 SemanticException
SemanticException
protected void onDelete(io.odysz.semantics.ISemantext stx, io.odysz.transact.sql.Statement<? extends io.odysz.transact.sql.Statement<?>> stmt, io.odysz.transact.sql.parts.condition.Condit whereCondt, io.odysz.semantics.IUser usr) throws SemanticException
stx
- stmt
- whereCondt
- delete statement's condition.usr
- SemanticException
SQLException
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
SemanticException
public boolean is(DASemantics.smtype sm)
Copyright © 2024. All rights reserved.