APISonar


com.avaje.ebean.config.dbplatform.DbType.JSON

> com > avaje > ebean > config > dbplatform > DbType > JSON
com APIs avaje APIs ebean APIs config APIs dbplatform APIs DbType APIs JSON APIs

Example 1
public static ScalarType<?> typeFor(boolean postgres, int dbType, DocPropertyType docType) {
    if (postgres) {
      switch (dbType) {
        case DbType.JSONB: return new ScalarTypeJsonList.JsonB(docType);
        case DbType.JSON: return new ScalarTypeJsonList.Json(docType);
      }
    }
    return new ScalarTypeJsonList.Varchar(docType);
  }