Class TableChangeEvent
-
- All Implemented Interfaces:
-
java.io.Serializable,pro.fessional.wings.warlock.event.WarlockMetadataEvent
public class TableChangeEvent implements WarlockMetadataEvent
- Since:
2021-03-07
trydofor
-
-
Constructor Summary
Constructors Constructor Description TableChangeEvent()
-
Method Summary
Modifier and Type Method Description List<String>getSource()event source, something like publisher chain voidsetSource(List<String> source)event source, something like publisher chain intgetChange()change type INSERTDELETEUPDATE voidsetChange(int change)change type INSERTDELETEUPDATE StringgetTable()the table name voidsetTable(String table)the table name Map<String, List<out Object>>getField()the filed(column) and its values. voidsetField(Map<String, List<out Object>> field)the filed(column) and its values. booleanisInsert()booleanisUpdate()booleanisDelete()booleanhasChange(int mod)voidaddSource(String src)booleanhasSource(String src)booleanequals(@Nullable() Object o)inthashCode()StringtoString()-
-
Method Detail
-
getChange
int getChange()
-
setChange
void setChange(int change)
-
getField
Map<String, List<out Object>> getField()
the filed(column) and its values. VALUES of INSERT; SET and WHERE of UPDATE; WHERE of DELETE;
-
setField
void setField(Map<String, List<out Object>> field)
the filed(column) and its values. VALUES of INSERT; SET and WHERE of UPDATE; WHERE of DELETE;
-
isInsert
boolean isInsert()
-
isUpdate
boolean isUpdate()
-
isDelete
boolean isDelete()
-
hasChange
boolean hasChange(int mod)
-
hashCode
int hashCode()
-
-
-
-