migratool.datasources
Class AbstractOriginDataSource

java.lang.Object
  extended by migratool.datasources.AbstractOriginDataSource
Direct Known Subclasses:
GeometricOriginDataSource, GeomTextFileOriginDataSource, OriginDataSource

public abstract class AbstractOriginDataSource
extends java.lang.Object

MIGRATOOL Program to migrate spatial databsets. Copyright (C) 2007 Fábio Luiz Leite Júnior Universidade Federal de Campina Grande contact: fabioleite@gmail.com This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Author:
fabio

Field Summary
protected  Connector dbAccess
           
protected  java.sql.Connection dbConnection
           
protected  BDdescription originDescription
           
 
Constructor Summary
AbstractOriginDataSource(BDdescription fromDescrition)
           
 
Method Summary
 void closeConnection()
          Fecha a conec��o com o banco de dados.
abstract  LogicTable getData()
          Retorna um Tabela l�gica contendo na os metadados e os dados
abstract  java.util.Collection getDataTable()
          Retorna uma cole��o de registros semelhante ao iGIS
protected static java.util.Vector getProximaLinha(java.sql.ResultSet rs, java.util.Vector rsmd)
           
 java.sql.ResultSetMetaData getTableMetaData()
           
 boolean testDataBase()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbAccess

protected Connector dbAccess

dbConnection

protected java.sql.Connection dbConnection

originDescription

protected BDdescription originDescription
Constructor Detail

AbstractOriginDataSource

public AbstractOriginDataSource(BDdescription fromDescrition)
Parameters:
fromDescrition -
Method Detail

testDataBase

public boolean testDataBase()

getData

public abstract LogicTable getData()
Retorna um Tabela l�gica contendo na os metadados e os dados

Returns:
logicTable contendo os resultados como atributos.

getDataTable

public abstract java.util.Collection getDataTable()
                                           throws DataSourceException,
                                                  igis.datasources.DataSourceException
Retorna uma cole��o de registros semelhante ao iGIS

Returns:
Collection contendo os resultados como atributos.
Throws:
DataSourceException

getProximaLinha

protected static java.util.Vector getProximaLinha(java.sql.ResultSet rs,
                                                  java.util.Vector rsmd)
                                           throws java.sql.SQLException
Throws:
java.sql.SQLException

closeConnection

public void closeConnection()
                     throws java.sql.SQLException
Fecha a conec��o com o banco de dados.

Throws:
java.sql.SQLException

getTableMetaData

public java.sql.ResultSetMetaData getTableMetaData()


Copyright © 2005-2007 InteliGIS. All Rights Reserved.