org.deegree.feature.persistence.sql.ddl
Class DDLCreator
java.lang.Object
org.deegree.feature.persistence.sql.ddl.DDLCreator
- Direct Known Subclasses:
- MSSQLDDLCreator, OracleDDLCreator, PostGISDDLCreator
public abstract class DDLCreator
- extends Object
Creates DDL (DataDefinitionLanguage) scripts from MappedAppSchema
instances.
- Version:
- $Revision: 31572 $, $Date: 2011-08-18 11:11:21 +0200 (Thu, 18 Aug 2011) $
- Author:
- Markus Schneider, last edited by: $Author: mschneider $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
schema
protected final MappedAppSchema schema
currentFtTable
protected QTableName currentFtTable
DDLCreator
protected DDLCreator(MappedAppSchema schema,
SQLDialect dialect)
- Creates a new
DDLCreator
instance for the given MappedAppSchema
.
- Parameters:
schema
- mapped application schema, must not be null
dialect
- SQL dialect, must not be null
getDDL
public String[] getDDL()
- Returns the DDL statements for creating the relational schema required by the
MappedAppSchema
.
- Returns:
- the DDL statements, never
null
getBLOBCreates
protected abstract List<String> getBLOBCreates()
primitiveMappingSnippet
protected abstract void primitiveMappingSnippet(StringBuffer sql,
PrimitiveMapping mapping)
geometryMappingSnippet
protected abstract void geometryMappingSnippet(StringBuffer sql,
GeometryMapping mapping,
List<StringBuffer> ddls,
QTableName table)
featureMappingSnippet
protected abstract void featureMappingSnippet(StringBuffer sql,
FeatureMapping mapping)
createJoinedTable
protected abstract StringBuffer createJoinedTable(QTableName fromTable,
TableJoin jc,
List<StringBuffer> ddls)
getDBType
protected abstract String getDBType(BaseType type)
newInstance
public static DDLCreator newInstance(MappedAppSchema appSchema,
SQLDialect dialect)
Copyright © 2011. All Rights Reserved.