deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.tools.datastore
Class OracleDDLGenerator

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

public class OracleDDLGenerator
extends DDLGenerator

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

Version:
$Revision: 8252 $, $Date: 2007-10-05 11:54:33 +0200 (Fr, 05 Okt 2007) $
Author:
Markus Schneider, last edited by: $Author: aschmitz $

Nested Class Summary
 
Nested classes/interfaces inherited from class org.deegree.tools.datastore.DDLGenerator
DDLGenerator.ColumnDefinition, DDLGenerator.TableDefinition
 
Field Summary
(package private)  int currentId
           
(package private)  java.util.Map<java.lang.String,java.lang.String> idToTruncatedId
           
 
Fields inherited from class org.deegree.tools.datastore.DDLGenerator
FEATURE_TYPE_TABLE, FT_PREFIX, JOIN_TABLE, MULTI_PROPERTY_TABLE, schema, sequences, tables
 
Constructor Summary
OracleDDLGenerator(java.net.URL schemaURL)
          Generates a new instance of OracleDDLGenerator, ready to generate DDL for the given schema.
 
Method Summary
protected  java.lang.StringBuffer generateCreateIndexStmts(DDLGenerator.TableDefinition table)
          Generates the DDL statements necessary for the creation of standard indexes for the given table definition.
protected  java.lang.StringBuffer generateCreateTableStmt(DDLGenerator.TableDefinition table)
          Generates the DDL statements necessary for the creation of the given table definition.
protected  java.lang.StringBuffer generateDropIndexStmts(DDLGenerator.TableDefinition table)
          Generates the DDL statements necessary for the dropping of standard indexes for the given table definition.
protected  java.lang.StringBuffer generateDropTableStmt(DDLGenerator.TableDefinition table)
          Generates the DDL statements necessary for the removal of the given table definition.
protected  java.lang.StringBuffer generateSetSchemaStmt(java.lang.String dbSchema)
          Generates the SQL statements necessary for setting the schema search path.
 
Methods inherited from class org.deegree.tools.datastore.DDLGenerator
generateCreateSchemaStmts, generateCreateScript, generateCreateScript, generateCreateSequenceStmt, generateDropSchemaStmt, generateDropScript, generateDropSequenceStmt, getTables, main, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

idToTruncatedId

java.util.Map<java.lang.String,java.lang.String> idToTruncatedId

currentId

int currentId
Constructor Detail

OracleDDLGenerator

public OracleDDLGenerator(java.net.URL schemaURL)
                   throws java.net.MalformedURLException,
                          java.io.IOException,
                          org.xml.sax.SAXException,
                          XMLParsingException,
                          XMLSchemaException,
                          UnknownCRSException
Generates a new instance of OracleDDLGenerator, ready to generate DDL for the given schema.

Parameters:
schemaURL -
Throws:
java.net.MalformedURLException
java.io.IOException
org.xml.sax.SAXException
XMLParsingException
XMLSchemaException
UnknownCRSException
Method Detail

generateSetSchemaStmt

protected java.lang.StringBuffer generateSetSchemaStmt(java.lang.String dbSchema)
Description copied from class: DDLGenerator
Generates the SQL statements necessary for setting the schema search path. Must be overwritten by the concrete implementation.

Specified by:
generateSetSchemaStmt in class DDLGenerator
Returns:
the SQL statements necessary for setting the schema search path accordingly

generateDropTableStmt

protected java.lang.StringBuffer generateDropTableStmt(DDLGenerator.TableDefinition table)
Description copied from class: DDLGenerator
Generates the DDL statements necessary for the removal of the given table definition. May be overwritten by a concrete implementation.

Overrides:
generateDropTableStmt in class DDLGenerator
Returns:
the DDL statements necessary for the removal of the given table definition

generateCreateTableStmt

protected java.lang.StringBuffer generateCreateTableStmt(DDLGenerator.TableDefinition table)
Description copied from class: DDLGenerator
Generates the DDL statements necessary for the creation of the given table definition. Must be overwritten by the concrete implementation.

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

generateCreateIndexStmts

protected java.lang.StringBuffer generateCreateIndexStmts(DDLGenerator.TableDefinition table)
Description copied from class: DDLGenerator
Generates the DDL statements necessary for the creation of standard indexes for the given table definition. Must be overwritten by the concrete implementation.

Specified by:
generateCreateIndexStmts in class DDLGenerator
Returns:
the DDL statements necessary for the creation of standard indexes for the given table definition

generateDropIndexStmts

protected java.lang.StringBuffer generateDropIndexStmts(DDLGenerator.TableDefinition table)
Description copied from class: DDLGenerator
Generates the DDL statements necessary for the dropping of standard indexes for the given table definition. May be overwritten by a concrete implementation.

Overrides:
generateDropIndexStmts in class DDLGenerator
Returns:
the DDL statements necessary for the dropping of standard indexes for the given table definition

deegree 2.5 (2011/06/29 09:44 build-8-official)

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