C
- the connection typepublic interface GeometryAdvisor<C>
Modifier and Type | Method and Description |
---|---|
Class<? extends com.vividsolutions.jts.geom.Geometry> |
configureGeometryColumnType(C connection,
schemacrawler.schema.Column column,
DefaultTypeDefinition type)
Configure the type for a geometry column.
|
Object |
convertGeometry(GeometryProperty<?> geom,
TypeDefinition columnType)
Convert a property to a value that can be stored in the database.
|
boolean |
isFixedType(schemacrawler.schema.ColumnDataType columnType)
Determines if for a column type detected as geometry type and associated
to this advisor is a fixed type, i.e.
|
boolean isFixedType(schemacrawler.schema.ColumnDataType columnType)
columnType
- the column data typeClass<? extends com.vividsolutions.jts.geom.Geometry> configureGeometryColumnType(C connection, schemacrawler.schema.Column column, DefaultTypeDefinition type)
connection
- the JDBC connectioncolumn
- the geometry columntype
- the type definition associated to the column. It may be
adapted by adding custom constraints, but GeometryType
and Binding
will be set by the callerGeometryType
bindingObject convertGeometry(GeometryProperty<?> geom, TypeDefinition columnType) throws Exception
geom
- the geometry property value consisting of geometry and the
associated CRS definitioncolumnType
- the type definition of the associated geometry column
that was previously configured using
configureGeometryColumnType(Object, Column, DefaultTypeDefinition)
Exception
- something went wrongBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a