public class JdbcConfig extends Object
| Constructor and Description |
|---|
JdbcConfig() |
| Modifier and Type | Method and Description |
|---|---|
List<DataSourceConfig> |
getDataSources()
Gets all the DataSourceConfig objects specified by the user in the
jdbc.xml configuration file.
|
static JdbcConfig |
load(InputStream is)
Loads a JdbcConfig from an input stream.
|
static JdbcConfig |
load(VFile xmlFile)
Loads a HttpServerConfig from a file.
|
static void |
save(OutputStream os,
JdbcConfig object)
Save a SipServerConfig to an output stream.
|
void |
setDataSources(List<DataSourceConfig> dataSources)
Sets all the DataSourceConfig objects that can be user by the
JdbcService.
|
public List<DataSourceConfig> getDataSources()
public void setDataSources(List<DataSourceConfig> dataSources)
dataSources - A list of DataSorucesConfig objects to be use by the
JdbcService.public static JdbcConfig load(VFile xmlFile) throws JAXBException, IOException
xmlFile - The file to load the object from.JAXBException - If any JAXB Exception occurs.IOException - If any IO Exception occurs.public static JdbcConfig load(InputStream is) throws JAXBException
is - The input stream to load the object from.JAXBException - If any JAXB Exception occurs.public static void save(OutputStream os, JdbcConfig object) throws JAXBException
os - The output stream to write the object to.object - The object to write.JAXBException - If any JAXB Exception occurs.Copyright © 2015–2017 Bridje Framework. All rights reserved.