Package org.gdbms.engine.data.driver

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


            while ((aux = reader.readLine()) != null) {
                String[] campos = aux.split(";");
                lineas.add(campos);
            }
        } catch (IOException e) {
            throw new DriverException(e);
        }
    }
View Full Code Here


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

                out.println(row);
            }

            out.close();
        } catch (FileNotFoundException e) {
            throw new DriverException(e);
        }
    }
View Full Code Here

            }
            out.println(header);
           
            out.close();
        } catch (IOException e) {
            throw new DriverException(e);
        }
    }
View Full Code Here

  public int getFieldCount() throws DriverException {
    return 1;
  }

  public String getFieldName(int fieldId) throws DriverException {
    if (fieldId != 1) throw new DriverException("El campo no existe");
    return "Geometr�a";
  }
View Full Code Here

  public long getRowCount() throws DriverException {
    return 1;
  }

  public int getFieldType(int i) throws DriverException {
    if (i != 1) throw new DriverException("El campo no existe");
    return PTTypes.GEOMETRY;
  }
View Full Code Here

            try {
                con = getConnection();
                ((SpatialDBDriver)getDriver()).open(con, def.getTableName(),
                        geometryFieldName);
            } catch (SQLException e) {
                throw new DriverException(e);
            }
           
            return true;
        } else {
            return false;
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 {
//            ((SpatialDataSource) dataSource).insertFilledRowAt(index, deletedRow);
            dataSource.undoDeletion(index, deletedRow);
        } 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

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.