Class JournalDiff
-
- All Implemented Interfaces:
public class JournalDiffPerform a diff on the CUD of the table. There are 3 states, `value1` is the old value and `value2` is the new value * insert - value1 == empty, value2 != empty * update - value1 != empty, value2 != empty * delete - value1 != empty, value2 == empty In addition, `column.size` x `count` == `value#.size`, which can represent multiple records. Strong type when generated, but type is lost after JSON serialization, when JSON deserialized, value only has String and Number type- Since:
2022-10-23
trydofor
-
-
Constructor Summary
Constructors Constructor Description JournalDiff()
-
Method Summary
Modifier and Type Method Description intgetCount()voidsetCount(int count)StringgetTable()voidsetTable(@NotNull() String table)List<String>getColumn()voidsetColumn(@NotNull() List<String> column)List<Object>getValue1()voidsetValue1(@NotNull() List<Object> value1)List<Object>getValue2()voidsetValue2(@NotNull() List<Object> value2)booleanisTyped()Whether value is typed. booleanhasRecord()Whether it has record booleanisValid()Whether valid (Insert,Update, or Delete) booleanisInsert()Whether an insert booleanisDelete()Whether a delete booleanisUpdate()Whether an update booleanequals(Object o)inthashCode()StringtoString()voidsetTyped(boolean typed)-
-
Method Detail
-
getCount
int getCount()
-
setCount
void setCount(int count)
-
isTyped
boolean isTyped()
Whether value is typed. jooq-generated code has type
-
hasRecord
boolean hasRecord()
Whether it has record
-
isValid
boolean isValid()
Whether valid (Insert,Update, or Delete)
-
isInsert
boolean isInsert()
Whether an insert
-
isDelete
boolean isDelete()
Whether a delete
-
isUpdate
boolean isUpdate()
Whether an update
-
hashCode
int hashCode()
-
setTyped
void setTyped(boolean typed)
-
-
-
-