Examples of DBTableDataSourceAdapter


Examples of org.gdbms.engine.data.db.DBTableDataSourceAdapter

  public DataSource createDataSource(String tableName, String tableAlias, String driverName) throws DataSourceCreationException {

    ((GDBMSDriver) driver).setDataSourceFactory(getDataSourceFactory());

        DBSource dbs = new DBSource(null, 0, null, null, null, null, null);
    DBTableDataSourceAdapter adapter = new DBTableDataSourceAdapter(
        tableName, tableAlias, dbs, (AlphanumericDBDriver) driver);
    adapter.setDataSourceFactory(getDataSourceFactory());

    getDataSourceFactory().getDelegatingStrategy().registerView(tableName,
        dbs.getTableName());

    return adapter;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.