de.interactive_instruments.ShapeChange.Target.SQL
Class OracleStrategy

java.lang.Object
  extended by de.interactive_instruments.ShapeChange.Target.SQL.OracleStrategy
All Implemented Interfaces:
DatabaseStrategy

public class OracleStrategy
extends Object
implements DatabaseStrategy


Constructor Summary
OracleStrategy()
           
 
Method Summary
 String geometryDataType(MapEntry me, int srid)
           
 String geometryIndexColumnPart(String columnname)
           
 String geometryMetadataUpdateStatement(String normalizedClassName, String columnname, int srid)
           
 String limitedLengthCharacterDataType(int size)
           
 String normalizeName(String name)
           
 String primaryKeyDataType()
           
 String unlimitedLengthCharacterDataType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OracleStrategy

public OracleStrategy()
Method Detail

primaryKeyDataType

public String primaryKeyDataType()
Specified by:
primaryKeyDataType in interface DatabaseStrategy
Returns:
the database data type to be used as data type for primary key columns

geometryDataType

public String geometryDataType(MapEntry me,
                               int srid)
Specified by:
geometryDataType in interface DatabaseStrategy
Parameters:
me - map entry in configuration file
srid - defined in configuration file
Returns:
(complex) database data type to be used as data type for the geometry column

unlimitedLengthCharacterDataType

public String unlimitedLengthCharacterDataType()
Specified by:
unlimitedLengthCharacterDataType in interface DatabaseStrategy

limitedLengthCharacterDataType

public String limitedLengthCharacterDataType(int size)
Specified by:
limitedLengthCharacterDataType in interface DatabaseStrategy

geometryIndexColumnPart

public String geometryIndexColumnPart(String columnname)
Specified by:
geometryIndexColumnPart in interface DatabaseStrategy

geometryMetadataUpdateStatement

public String geometryMetadataUpdateStatement(String normalizedClassName,
                                              String columnname,
                                              int srid)
Specified by:
geometryMetadataUpdateStatement in interface DatabaseStrategy
Returns:
update statement, without ; and line ending, this is done in SqlDdl

normalizeName

public String normalizeName(String name)
Specified by:
normalizeName in interface DatabaseStrategy
Returns:
name that is according to the default case of the database system, and that does not exceed the max length for names in the database system


Copyright © 2015. All rights reserved.