String build()

in service/src/main/java/org/apache/fineract/cn/provisioner/internal/util/JdbcUrlBuilder.java [66:76]


  String build() {
    switch (this.type) {
      case POSTGRESQL:
        return this.type.prefix()
            + this.host + ":"
            + this.port
            + (this.instanceName != null ? "/" + this.instanceName : "");
      default:
        throw new IllegalArgumentException("Unknown database type '" + this.type.name() + "'");
    }
  }