Class JournalDiffHelper
-
- All Implemented Interfaces:
public class JournalDiffHelper- Since:
2022-10-24
trydofor
-
-
Constructor Summary
Constructors Constructor Description JournalDiffHelper()
-
Method Summary
Modifier and Type Method Description static voidputDefaultIgnore(Array<String> field)static voidputDefaultIgnore(Map<String, Set<String>> map)static JournalDiffdiffInsert(Table<out Object> table, ResultQuery<out Object> query, Runnable exec)static JournalDiffdiffUpdate(Table<out Object> table, ResultQuery<out Object> query, Runnable exec)static JournalDiffdiffDelete(Table<out Object> table, ResultQuery<out Object> query, Runnable exec)static voidtidy(@NotNull() JournalDiff diff, Array<Field<out Object>> ignore)Refine the diff results by removing duplicate data and removing ignored fields static voidtidy(boolean withDefault, @NotNull() JournalDiff diff, Array<Field<out Object>> ignore)Refine the diff results by removing duplicate data and removing ignored fields static voidhelp(@NotNull() JournalDiff diff, Result<out Record> before, Result<out Record> after)Generate information about record count, field name, and data before and after the update. static voidhelpInsert(@NotNull() JournalDiff diff, @NotNull() Result<out Record> after)static voidhelpDelete(@NotNull() JournalDiff diff, @NotNull() Result<out Record> before)static voidhelpUpdate(@NotNull() JournalDiff diff, @NotNull() Result<out Record> before, @NotNull() Result<out Record> after)static ArrayList<String>fieldName(Array<Field<out Object>> fields)static ArrayList<Object>flatResult(Result<out Record> result)static <T> ArrayList<T>arrayList(List<T> os)static Map<String, Set<String>>getDefaultIgnore()-
-
Method Detail
-
putDefaultIgnore
static void putDefaultIgnore(Array<String> field)
-
putDefaultIgnore
static void putDefaultIgnore(Map<String, Set<String>> map)
-
diffInsert
static JournalDiff diffInsert(Table<out Object> table, ResultQuery<out Object> query, Runnable exec)
-
diffUpdate
static JournalDiff diffUpdate(Table<out Object> table, ResultQuery<out Object> query, Runnable exec)
-
diffDelete
static JournalDiff diffDelete(Table<out Object> table, ResultQuery<out Object> query, Runnable exec)
-
tidy
static void tidy(@NotNull() JournalDiff diff, Array<Field<out Object>> ignore)
Refine the diff results by removing duplicate data and removing ignored fields
-
tidy
static void tidy(boolean withDefault, @NotNull() JournalDiff diff, Array<Field<out Object>> ignore)
Refine the diff results by removing duplicate data and removing ignored fields
-
help
static void help(@NotNull() JournalDiff diff, Result<out Record> before, Result<out Record> after)
Generate information about record count, field name, and data before and after the update.
-
helpInsert
static void helpInsert(@NotNull() JournalDiff diff, @NotNull() Result<out Record> after)
-
helpDelete
static void helpDelete(@NotNull() JournalDiff diff, @NotNull() Result<out Record> before)
-
helpUpdate
static void helpUpdate(@NotNull() JournalDiff diff, @NotNull() Result<out Record> before, @NotNull() Result<out Record> after)
-
flatResult
static ArrayList<Object> flatResult(Result<out Record> result)
-
getDefaultIgnore
static Map<String, Set<String>> getDefaultIgnore()
-
-
-
-