Interface IDataSourceBuilder

All Known Implementing Classes:
ADataSourceBuilder

public interface IDataSourceBuilder
Component in charge of building the appropriate data source for the ActiveMonitor databases.
Author:
ActiveViam
  • Method Details Link icon

    • setUrl Link icon

      Set the JDBC URL to use for connecting through the Driver.
      Parameters:
      url - the url to set
      Returns:
      the builder
    • setUserName Link icon

      IDataSourceBuilder setUserName(String user)
      Set the JDBC username to use for connecting through the Driver.
      Parameters:
      user - the username to set
      Returns:
      the builder
    • setPassword Link icon

      IDataSourceBuilder setPassword(String password)
      Set the JDBC password to use for connecting through the Driver.
      Parameters:
      password - the password to set
      Returns:
      the builder
    • setProperties Link icon

      IDataSourceBuilder setProperties(Properties properties, org.springframework.core.env.Environment env)
      Set the data source properties.
      Parameters:
      properties - the properties to set
      env - the spring environment
      Returns:
      the builder
    • setIdentifier Link icon

      IDataSourceBuilder setIdentifier(String datasourceIdentifier)
      Set the identifier of the data source.
      Parameters:
      datasourceIdentifier - the identifier to set
      Returns:
      the builder
      See Also:
    • setDriverClassName Link icon

      IDataSourceBuilder setDriverClassName(String driverClassName)
      Set the JDBC driver class name.
      Parameters:
      driverClassName - the name to set
      Returns:
      the builder
    • build Link icon

      DataSource build()
      Build the data source.
      Returns:
      the data source