Package org.gdbms.engine.data.driver

Examples of org.gdbms.engine.data.driver.DriverException


    public void redo() throws DriverException {
        try {
            ((AlphanumericDataSource) dataSource).insertFilledRowAt(index, insertedRow);
        } catch (DriverException e) {
            throw new DriverException(e);
        }
    }
View Full Code Here


    public void undo() throws DriverException {
        try {
//            ((AlphanumericDataSource) dataSource).deleteRow(index);
            dataSource.undoInsert(index);
        } catch (DriverException e) {
            throw new DriverException(e);
        }
    }
View Full Code Here

    public void redo() throws DriverException {
        try {
            dataSource.insertFilledRow(insertedRow);
        } catch (DriverException e) {
            throw new DriverException(e);
        }
    }
View Full Code Here

    public void undo() throws DriverException {
        try {
//            ((AlphanumericDataSource) dataSource).deleteRow(dataSource.getRowCount() - 1);
            dataSource.undoInsert(dataSource.getRowCount() - 1);
        } catch (DriverException e) {
            throw new DriverException(e);
        }
    }
View Full Code Here

    public void redo() throws DriverException {
        try {
            deletedRow = dataSource.getRow(index);
            ((SpatialDataSource) dataSource).deleteRow(index);
        } catch (DriverException e) {
            throw new DriverException(e);
        }
    }
View Full Code Here

    public void undo() throws DriverException {
        try {
            dataSource.undoDeletion(index, deletedRow);
        } catch (DriverException e) {
            throw new DriverException(e);
        }
    }
View Full Code Here

            jdbcSupport = JDBCSupport
                    .newJDBCSupport(con, tableName, orderFieldName);

            metadata = jdbcSupport.getDriverMetadata(con, tableName.toUpperCase());
        } catch (SQLException e) {
            throw new DriverException(e);
        }
    }
View Full Code Here

     */
    public void close() throws DriverException {
        try {
            jdbcSupport.close();
        } catch (SQLException e) {
            throw new DriverException(e);
        }
    }
View Full Code Here

                    source.getPort(), source.getDbName(), source.getUser(),
                    source.getPassword());
            JDBCSupport.createSource(c, source.getTableName(), driverMetadata);
            c.close();
        } catch (SQLException e) {
            throw new DriverException(e);
        }
    }
View Full Code Here

        try {
            layerDef.setFieldID(getPKNames(con, tableName));
            layerDef.setFieldNames(getFieldNames(con, "select * from "
                    + tableName + " where false"));
        } catch (SQLException e) {
            throw new DriverException(e);
        }
        layerDef.setTableName(tableName);
        layerDef.setWhereClause("");
        layerDef.setWorkingArea(null);
        driver.setData(con, layerDef);
        adapter.setDriver(driver);
        adapter.start();
        setDriver(driver);
        super.open(adapter);
       
        try {
            metadata = con.createStatement().executeQuery("select * from " + tableName + " where false").getMetaData();
        } catch (SQLException e) {
            throw new DriverException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.gdbms.engine.data.driver.DriverException

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.