de.interactive_instruments.ShapeChange.Target.SQL
Class NullDatabaseStrategy
java.lang.Object
de.interactive_instruments.ShapeChange.Target.SQL.NullDatabaseStrategy
- All Implemented Interfaces:
- DatabaseStrategy
public class NullDatabaseStrategy
- extends Object
- implements DatabaseStrategy
Purpose of this class: to avoid NullPointerException when the type of database system entered in the configuration does not match
one of the present database strategies.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullDatabaseStrategy
public NullDatabaseStrategy()
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 filesrid
- 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.