java.lang.Object
com.evolveum.midpoint.repo.sqale.jsonb.Jsonb

public class Jsonb extends Object
Type representing JSONB columns in PostgreSQL database as a wrapped string.
  • Field Details

    • value

      public final String value
    • MAPPER

      public static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
  • Constructor Details

    • Jsonb

      public Jsonb(String value)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • fromMap

      public static Jsonb fromMap(Map<String,?> map)
      Returns JSONB object from map or null if map is null or empty.
    • fromList

      public static Jsonb fromList(List<Object> list)
      Returns JSONB array from list or null if map is null or empty.
    • toMap

      @NotNull public static @NotNull Map<String,Object> toMap(@NotNull @NotNull Jsonb jsonb)
    • toList

      @NotNull public static @NotNull List<Object> toList(@NotNull @NotNull Jsonb jsonb)