|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcorelib.utilities.jdbc.DataSourceSet
public class DataSourceSet
Load all DataSource definitions stored in a XML file.
The XML file must respect this syntaxe.
<?xml version="1.0" encoding="ISO-8859-1"?>
<DataSources>
<DataSource name="MyDataSource" description="Demo web application data source">
<DriverClassName>com.mysql.jdbc.Driver</DriverClassName>
<ConnectionURL>jdbc:mysql://localhost:3306/Database</ConnectionURL>
<Login>root</Login>
<Password></Password>
</DataSource>
</DataSources>
DataSource| Constructor Summary | |
|---|---|
DataSourceSet(java.io.File dataSourceFile)
Class constructor. |
|
| Method Summary | |
|---|---|
DataSource |
getDataSource(java.lang.String dataSourceName)
Returns the specified DataSource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataSourceSet(java.io.File dataSourceFile)
throws java.io.IOException
dataSourceFile - The file that contains datasource definitions.
java.io.IOException - Thrown if this class cannot read the specified file.| Method Detail |
|---|
public DataSource getDataSource(java.lang.String dataSourceName)
dataSourceName - The name of the desired datasource
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||