public class SourceVars extends Object
Constructor and Description |
---|
SourceVars(File source)
Convert an input configuration file into a map
containing connection properties and query specifications
|
SourceVars(String fileName)
Initializes the constructor with a file consisting database connection details
|
Modifier and Type | Method and Description |
---|---|
String |
getConnection()
Gets the type of database connection
|
String |
getQuery(String dataName)
Gets the data retrieval query specified in the source file based on the corresponding variable name
|
String |
getVar(String key)
Gets the database connection details based on the key provided
|
public SourceVars(String fileName)
fileName
- public SourceVars(File source)
source
- this is the input file that contains the configuration per the spec in the usage documentationpublic String getConnection()
public String getVar(String key)
key
- Variable used to define the connection details like driver, URL, username, passwordCopyright © 2023. All rights reserved.