Package org.gdbms.engine.data

Examples of org.gdbms.engine.data.DataSourceCreationException


    this.file = new File(fileName);
  }
 
  public DataSource createDataSource(String tableName, String tableAlias, String driverName) throws DataSourceCreationException {
    if (!file.exists()) {
      throw new DataSourceCreationException(file + " does not exists");
    }
        Driver d = getDataSourceFactory().getDriverManager().getDriver(driverName);
        ((GDBMSDriver)d).setDataSourceFactory(getDataSourceFactory());
       
        AlphanumericFileDataSourceAdapter ds = new AlphanumericFileDataSourceAdapter(tableName, tableAlias,
View Full Code Here


        ((GDBMSDriver)d).setDataSourceFactory(getDataSourceFactory());

        try {
      return getDataSourceByQuery(getDataSourceFactory(), tableName, tableAlias);
    } catch (SQLException e) {
      throw new DataSourceCreationException(e);
    } catch (DriverException e) {
            throw new DataSourceCreationException(e);
        }
  }
View Full Code Here

TOP

Related Classes of org.gdbms.engine.data.DataSourceCreationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.