org.deegree.feature.persistence.sql.ddl
Class PostGISDDLCreator

java.lang.Object
  extended by org.deegree.feature.persistence.sql.ddl.DDLCreator
      extended by org.deegree.feature.persistence.sql.ddl.PostGISDDLCreator

public class PostGISDDLCreator
extends DDLCreator

Creates PostGIS-DDL (DataDefinitionLanguage) scripts from MappedAppSchema instances.

Version:
$Revision: 31176 $, $Date: 2011-07-01 11:31:06 +0200 (Fr, 01. Jul 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Field Summary
 
Fields inherited from class org.deegree.feature.persistence.sql.ddl.DDLCreator
currentFtTable, schema
 
Constructor Summary
PostGISDDLCreator(MappedAppSchema schema, SQLDialect dialect)
          Creates a new PostGISDDLCreator instance for the given MappedAppSchema.
 
Method Summary
protected  StringBuffer createJoinedTable(QTableName fromTable, TableJoin jc, List<StringBuffer> ddls)
           
protected  void featureMappingSnippet(StringBuffer sql, FeatureMapping mapping)
           
protected  void geometryMappingSnippet(StringBuffer sql, GeometryMapping mapping, List<StringBuffer> ddls, QTableName table)
           
protected  List<String> getBLOBCreates()
           
protected  String getDBType(BaseType type)
           
protected  void primitiveMappingSnippet(StringBuffer sql, PrimitiveMapping mapping)
           
 
Methods inherited from class org.deegree.feature.persistence.sql.ddl.DDLCreator
getDDL, newInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostGISDDLCreator

public PostGISDDLCreator(MappedAppSchema schema,
                         SQLDialect dialect)
Creates a new PostGISDDLCreator instance for the given MappedAppSchema.

Parameters:
schema - mapped application schema, must not be null
dialect - SQL dialect, must not be null
Method Detail

getBLOBCreates

protected List<String> getBLOBCreates()
Specified by:
getBLOBCreates in class DDLCreator

primitiveMappingSnippet

protected void primitiveMappingSnippet(StringBuffer sql,
                                       PrimitiveMapping mapping)
Specified by:
primitiveMappingSnippet in class DDLCreator

geometryMappingSnippet

protected void geometryMappingSnippet(StringBuffer sql,
                                      GeometryMapping mapping,
                                      List<StringBuffer> ddls,
                                      QTableName table)
Specified by:
geometryMappingSnippet in class DDLCreator

featureMappingSnippet

protected void featureMappingSnippet(StringBuffer sql,
                                     FeatureMapping mapping)
Specified by:
featureMappingSnippet in class DDLCreator

createJoinedTable

protected StringBuffer createJoinedTable(QTableName fromTable,
                                         TableJoin jc,
                                         List<StringBuffer> ddls)
Specified by:
createJoinedTable in class DDLCreator

getDBType

protected String getDBType(BaseType type)
Specified by:
getDBType in class DDLCreator


Copyright © 2011. All Rights Reserved.