public class PostgreSQLStrategy extends Object implements DatabaseStrategy
Constructor and Description |
---|
PostgreSQLStrategy() |
Modifier and Type | Method and Description |
---|---|
Expression |
expressionForCheckConstraintToRestrictTimeOfDate(PropertyInfo pi,
Column columnForPi)
TBD - not implemented yet
|
String |
geometryDataType(ProcessMapEntry me,
int srid) |
Statement |
geometryIndexColumnPart(String indexName,
Table table,
Column column,
Map<String,String> geometryCharacteristics) |
Statement |
geometryMetadataUpdateStatement(Table tableWithColumn,
Column columForGeometryTypedProperty,
int srid) |
ColumnDataType |
limitedLengthCharacterDataType(int size) |
ColumnDataType |
primaryKeyDataType() |
ColumnDataType |
unlimitedLengthCharacterDataType() |
boolean |
validate(Map<String,ProcessMapEntry> mapEntryByType,
MapEntryParamInfos mepp)
Database specific validation of the parameters (including their
characteristics) defined by the map entries declared for the SQL DDL
target.
|
public ColumnDataType primaryKeyDataType()
primaryKeyDataType
in interface DatabaseStrategy
public String geometryDataType(ProcessMapEntry me, int srid)
geometryDataType
in interface DatabaseStrategy
me
- map entry in configuration filesrid
- defined in configuration filepublic ColumnDataType unlimitedLengthCharacterDataType()
unlimitedLengthCharacterDataType
in interface DatabaseStrategy
public ColumnDataType limitedLengthCharacterDataType(int size)
limitedLengthCharacterDataType
in interface DatabaseStrategy
public Statement geometryIndexColumnPart(String indexName, Table table, Column column, Map<String,String> geometryCharacteristics)
geometryIndexColumnPart
in interface DatabaseStrategy
geometryCharacteristics
- additional geometry specific characteristics - can be
null
public Statement geometryMetadataUpdateStatement(Table tableWithColumn, Column columForGeometryTypedProperty, int srid)
geometryMetadataUpdateStatement
in interface DatabaseStrategy
null
if this operation is
not applicable to the actual database strategypublic boolean validate(Map<String,ProcessMapEntry> mapEntryByType, MapEntryParamInfos mepp)
DatabaseStrategy
validate
in interface DatabaseStrategy
true
if the parameters are valid, else
false
public Expression expressionForCheckConstraintToRestrictTimeOfDate(PropertyInfo pi, Column columnForPi)
expressionForCheckConstraintToRestrictTimeOfDate
in interface DatabaseStrategy
null
if
this is not necessary (or not implemented; check the actual
database strategies for details)DatabaseStrategy.expressionForCheckConstraintToRestrictTimeOfDate(de.interactive_instruments.ShapeChange.Model.PropertyInfo,
de.interactive_instruments.ShapeChange.Target.SQL.structure.Column)
Copyright © 2018. All rights reserved.