Class Gson2Config

java.lang.Object
org.jdbi.v3.gson2.Gson2Config
All Implemented Interfaces:
org.jdbi.v3.core.config.JdbiConfig<Gson2Config>

public class Gson2Config extends Object implements org.jdbi.v3.core.config.JdbiConfig<Gson2Config>
Configuration class for Gson 2 integration.
  • Constructor Details

    • Gson2Config

      public Gson2Config()
  • Method Details

    • setGson

      public Gson2Config setGson(com.google.gson.Gson gson)
      Set the Gson to use for json conversion.
      Parameters:
      gson - the mapper to use
      Returns:
      this
    • getGson

      public com.google.gson.Gson getGson()
      Returns the Gson object used for json conversion.
      Returns:
      the Gson object used for json conversion.
    • createCopy

      public Gson2Config createCopy()
      Specified by:
      createCopy in interface org.jdbi.v3.core.config.JdbiConfig<Gson2Config>