Package com.persequor.extension.db
Interface ISqlDbConfig
- All Superinterfaces:
io.ran.DbType
- All Known Implementing Classes:
SqlDbPropertiesConfig
public interface ISqlDbConfig
extends io.ran.DbType
Represents configuration for connecting to custom data-source.
Whenever null is returned by any of the getters, the corresponding SAGA sql connection value is used instead.
For reading configuration from the property file, please refer to SqlDbPropertiesConfig
-
Method Details
-
getUsername
- Returns:
- return username for the SQL database
-
getPassword
- Returns:
- return password for the provided username
-
getAddress
- Returns:
- comma separated server address list in form of (host):(port). Example: "myserver:3306,myserver2:3306"
-
getDatabaseName
String getDatabaseName()This must be different from that of SAGA and other SAGA Modules.- Returns:
- the unique database/tablespace used by this connection
-
getDatabaseParams
- Returns:
- ampersand (&) separated path parameters of JDBC URL Example: "myParam=true&mySecondParam=aValue"
-
getName
- Specified by:
getName
in interfaceio.ran.DbType
-