Class StoredConnections.DriverConfigBuilder

java.lang.Object
com.invirgance.convirgance.jdbc.StoredConnections.DriverConfigBuilder
Enclosing class:
StoredConnections

public static class StoredConnections.DriverConfigBuilder extends Object
Builds a DriverConfig for a StoredConnectionBuilder.
  • Method Details

    • build

      public StoredConnection build()
      Builds the StoredConnection with the DriverConfig.
      Returns:
      The StoredConnection.
    • done

      Returns the StoredConnectionBuilder for further building. The connection is not built with this, allowing for further configuration such as building a DataSourceConfig.
      Returns:
      The builder.
    • password

      public StoredConnections.DriverConfigBuilder password(String password)
      Sets the password for the DriverConfig used by the StoredConnection.
      Parameters:
      password - The password.
      Returns:
      This builder.
    • username

      public StoredConnections.DriverConfigBuilder username(String username)
      Sets the username to use for the DriverConfig of the StoredConnection.
      Parameters:
      username - The username.
      Returns:
      This builder.
    • url

      Sets the database URL the DriverConfig will use for the StoredConnection.
      Parameters:
      url - The database URL.
      Returns:
      This builder.