* @throws DriverException
*/
private DBTableDataSourceAdapter getDataSourceByQuery(DataSourceFactory dsf,
String tableName, String tableAlias)
throws SQLException, DriverException {
AlphanumericDBDriver driver = (AlphanumericDBDriver) dsf.getDriverManager().getDriver(driverName);
((GDBMSDriver) driver).setDataSourceFactory(dsf);
//Create the adapter
DBTableDataSourceAdapter adapter = new DBTableDataSourceAdapter(tableName, tableAlias, def, driver);