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

org.deegree.tools.datastore
Class PostGISDDLGenerator

java.lang.Object
  extended by org.deegree.tools.datastore.DDLGenerator
      extended by org.deegree.tools.datastore.PostGISDDLGenerator

public class PostGISDDLGenerator
extends DDLGenerator

Generator for PostGIS DDL (CREATE) operations to create PostGIS database schemas from annotated GML schema files.

Version:
$Revision: 7766 $, $Date: 2007-07-16 14:18:10 +0200 (Mo, 16 Jul 2007) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Nested Class Summary
 
Nested classes/interfaces inherited from class org.deegree.tools.datastore.DDLGenerator
DDLGenerator.ColumnDefinition, DDLGenerator.TableDefinition
 
Field Summary
 
Fields inherited from class org.deegree.tools.datastore.DDLGenerator
FEATURE_TYPE_TABLE, FT_PREFIX, JOIN_TABLE, MULTI_PROPERTY_TABLE, schema, tables
 
Constructor Summary
PostGISDDLGenerator(URL schemaURL)
          Generates a new instance of PostGISDDLGenerator, ready to generate DDL for the given schema.
 
Method Summary
protected  StringBuffer generateCreateStatements(DDLGenerator.TableDefinition table)
          Generates the DDL statements necessary for the creation of the given table definition.
protected  StringBuffer generateDropStatements(DDLGenerator.TableDefinition table)
          Generates the DDL statements necessary for the removal of the given table definition.
 
Methods inherited from class org.deegree.tools.datastore.DDLGenerator
generateCreateScript, generateDropScript, getTables, main, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PostGISDDLGenerator

public PostGISDDLGenerator(URL schemaURL)
                    throws MalformedURLException,
                           IOException,
                           SAXException,
                           XMLParsingException,
                           XMLSchemaException,
                           UnknownCRSException
Generates a new instance of PostGISDDLGenerator, ready to generate DDL for the given schema.

Parameters:
schemaURL -
Throws:
MalformedURLException
IOException
SAXException
XMLParsingException
XMLSchemaException
UnknownCRSException
Method Detail

generateCreateStatements

protected StringBuffer generateCreateStatements(DDLGenerator.TableDefinition table)
Generates the DDL statements necessary for the creation of the given table definition. This is the PostGIS specific implementation.

Specified by:
generateCreateStatements in class DDLGenerator
Parameters:
table -
Returns:
the DDL statements necessary for the creation of the given table definition

generateDropStatements

protected StringBuffer generateDropStatements(DDLGenerator.TableDefinition table)
Generates the DDL statements necessary for the removal of the given table definition. This is the PostGIS specific implementation.

Specified by:
generateDropStatements in class DDLGenerator
Parameters:
table -
Returns:
the DDL statements necessary for the removal of the given table definition

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