Class JournalDiffHelper

  • All Implemented Interfaces:

    
    public class JournalDiffHelper
    
                        
    Since:

    2022-10-24

    Author:

    trydofor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static String Default
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static void putDefaultIgnore(Array<String> field)
      static void putDefaultIgnore(Map<String, Set<String>> map)
      static JournalDiff diffInsert(Table<out Object> table, ResultQuery<out Object> query, Runnable exec)
      static JournalDiff diffUpdate(Table<out Object> table, ResultQuery<out Object> query, Runnable exec)
      static JournalDiff diffDelete(Table<out Object> table, ResultQuery<out Object> query, Runnable exec)
      static void tidy(@NotNull() JournalDiff diff, Array<Field<out Object>> ignore) Refine the diff results by removing duplicate data and removing ignored fields
      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
      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.
      static void helpInsert(@NotNull() JournalDiff diff, @NotNull() Result<out Record> after)
      static void helpDelete(@NotNull() JournalDiff diff, @NotNull() Result<out Record> before)
      static void helpUpdate(@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()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait