deegree 2.1 (2007/11/08 09:57 build-328-official)

org.deegree.io.quadtree
Class DBQuadtreeManagerWithNumberId

java.lang.Object
  extended by org.deegree.io.quadtree.DBQuadtreeManager
      extended by org.deegree.io.quadtree.DBQuadtreeManagerWithNumberId

public class DBQuadtreeManagerWithNumberId
extends DBQuadtreeManager

Same as

Version:
$Revision: 6259 $, $Date: 2007-03-20 10:15:15 +0100 (Di, 20 Mär 2007) $
Author:
Andreas Poth, last edited by: $Author: bezema $
See Also:
but uses Integer values as IDs instead of UUIDs.

Field Summary
 
Fields inherited from class org.deegree.io.quadtree.DBQuadtreeManager
backend, column, envelope, indexName, jdbc, maxDepth, owner, qt, table
 
Constructor Summary
DBQuadtreeManagerWithNumberId(JDBCConnection jdbc, String table, String column, String owner)
          initializes a QuadtreeManager to access an alread existing Quadtree
DBQuadtreeManagerWithNumberId(JDBCConnection jdbc, String indexName, String table, String column, String owner, int maxDepth)
           
DBQuadtreeManagerWithNumberId(String driver, String logon, String user, String password, String encoding, String table, String column, String owner)
          initializes a QuadtreeManager to access an alread existing Quadtree
DBQuadtreeManagerWithNumberId(String driver, String logon, String user, String password, String encoding, String indexName, String table, String column, String owner, int maxDepth)
           
 
Method Summary
 void appendShape(String fileName)
          appends the features of a shape to an existing datatable and inserts references into the assigned quadtree table.
protected  void createDataTable(String fileName)
          creates table the shape data shall be stored
protected  void createIndexTable(String indexTable)
          creates a table that will store the nodes assigned to a specific quadtree index.
 void importShape(String fileName)
          imports a shape into the database and builds a quadtree on it
 
Methods inherited from class org.deegree.io.quadtree.DBQuadtreeManager
checkForBackend, getDatabaseType, getQuadtree, initQuadtree, initRootNode, insertIndexMetadata, loadQuadtree, setRootEnvelope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBQuadtreeManagerWithNumberId

public DBQuadtreeManagerWithNumberId(JDBCConnection jdbc,
                                     String indexName,
                                     String table,
                                     String column,
                                     String owner,
                                     int maxDepth)
Parameters:
jdbc - database connection info
indexName - this name will be used to create the table that stores the nodes of a specific quadtree
table - name of table the index shall be created for
column - name of column the index shall be created for
owner - owner of the table (optional, database user will be used if set to null )
maxDepth - max depth of the generated quadtree (default = 6 if a value < 2 will be passed)

DBQuadtreeManagerWithNumberId

public DBQuadtreeManagerWithNumberId(String driver,
                                     String logon,
                                     String user,
                                     String password,
                                     String encoding,
                                     String indexName,
                                     String table,
                                     String column,
                                     String owner,
                                     int maxDepth)
Parameters:
driver - database connection driver
logon - database connection logon
user - database user
password - database user's password
encoding - character encoding to be used (if possible)
indexName - this name will be used to create the table that stores the nodes of a specific quadtree
table - name of table the index shall be created for
column - name of column the index shall be created for
owner - owner of the table (optional, database user will be used if set to null )
maxDepth - max depth of the generated quadtree (default = 6 if a value < 2 will be passed)

DBQuadtreeManagerWithNumberId

public DBQuadtreeManagerWithNumberId(JDBCConnection jdbc,
                                     String table,
                                     String column,
                                     String owner)
initializes a QuadtreeManager to access an alread existing Quadtree

Parameters:
jdbc - database connection info
table - name of table the index shall be created for
column - name of column the index shall be created for
owner - owner of the table (optional, database user will be used if set to null )

DBQuadtreeManagerWithNumberId

public DBQuadtreeManagerWithNumberId(String driver,
                                     String logon,
                                     String user,
                                     String password,
                                     String encoding,
                                     String table,
                                     String column,
                                     String owner)
initializes a QuadtreeManager to access an alread existing Quadtree

Parameters:
driver - database connection driver
logon - database connection logon
user - database user
password - database user's password
encoding - character encoding to be used (if possible)
table - name of table the index shall be created for
column - name of column the index shall be created for
owner - owner of the table (optional, database user will be used if set to null )
Method Detail

createDataTable

protected void createDataTable(String fileName)
                        throws IndexException,
                               IOException
creates table the shape data shall be stored

Overrides:
createDataTable in class DBQuadtreeManager
Parameters:
fileName -
Throws:
IndexException
IOException

importShape

public void importShape(String fileName)
                 throws Exception,
                        IOException
imports a shape into the database and builds a quadtree on it

Overrides:
importShape in class DBQuadtreeManager
Parameters:
fileName -
Throws:
Exception
IOException

appendShape

public void appendShape(String fileName)
                 throws Exception,
                        IOException
appends the features of a shape to an existing datatable and inserts references into the assigned quadtree table.

you have to consider that the quadtree is just valid for a defined area. if the features to append exceeds this area the quadtree has to be rebuilded.

Overrides:
appendShape in class DBQuadtreeManager
Parameters:
fileName -
Throws:
Exception
IOException

createIndexTable

protected void createIndexTable(String indexTable)
creates a table that will store the nodes assigned to a specific quadtree index.

Overrides:
createIndexTable in class DBQuadtreeManager
Parameters:
indexTable -

deegree 2.1 (2007/11/08 09:57 build-328-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net