*
* @throws org.xml.sax.SAXException if there is a parsing error.
*/
protected void doneParsing() throws SAXException
{
final DriverXQConnectionProvider provider = new DriverXQConnectionProvider();
if (xqdatasourceReadHandler != null)
{
provider.setXqdatasource(xqdatasourceReadHandler.getResult());
}
if (driverReadHandler != null)
{
provider.setDriver(driverReadHandler.getResult());
}
if (urlReadHandler != null)
{
provider.setUrl(urlReadHandler.getResult());
}
if (propertiesReadHandler != null)
{
final Properties p = (Properties) propertiesReadHandler.getObject();
final Iterator it = p.entrySet().iterator();
while (it.hasNext())
{
final Map.Entry entry = (Map.Entry) it.next();
provider.setProperty((String) entry.getKey(), (String) entry.getValue());
}
}
driverConnectionProvider = provider;
}