Class AbstractFeatureTypeMapper
Object
AbstractFeatureTypeMapper
- All Implemented Interfaces:
FeatureTypeMapper
- Direct Known Subclasses:
OracleFeatureTypeMapper,PostgisFeatureTypeMapper,SQLServerTypeMapper
An abstract class which groups common attributes and methods to remap original FeatureType onto the new one
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CoordinateReferenceSystemthe coordinateReferenceSystem for the geometryprotected List<Definition>The list ofDefinitionobject defining the mappingprotected Map<Name,Definition> The mapping between an attributeName and its definitionprotected SimpleFeatureTypeThe oracle specific featureTypeprotected StringThe mapped typeName (UPPERCASE and less than 30 chars)protected intprotected NameThe original typeNameprotected SimpleFeatureSourceTheSimpleFeatureSourceavailable for that typeprotected SimpleFeatureTypeThe original feature type -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractFeatureTypeMapper(SimpleFeatureType featureType, int maxLength) -
Method Summary
Modifier and TypeMethodDescriptionGet the coordinate Reference SystemGet the definitions listGet the remapped FeatureTypeGet the remapped namegetName()Get the original nameGet the original FeatureTypedefine the mapping ruleprotected Stringprotected voidRemap the original featureType on top of the available definitions to create the database specific featureTypeprotected voidremapGeometryAttribute(SimpleFeatureTypeBuilder tb, Definition definition, AttributeDescriptor descriptor, AttributeType type) Remap the original GeomtryType on top of the available definitions to create the database specific featureTypevoidsetSimpleFeatureSource(SimpleFeatureSource simpleFeatureSource)
-
Field Details
-
originalName
The original typeName -
mappedName
The mapped typeName (UPPERCASE and less than 30 chars) -
coordinateReferenceSystem
the coordinateReferenceSystem for the geometry -
definitions
The list ofDefinitionobject defining the mapping -
wrappedFeatureType
The original feature type -
mappedFeatureType
The oracle specific featureType -
definitionsMapping
The mapping between an attributeName and its definition -
simpleFeatureSource
TheSimpleFeatureSourceavailable for that type -
maxLength
protected int maxLength
-
-
Constructor Details
-
AbstractFeatureTypeMapper
protected AbstractFeatureTypeMapper(SimpleFeatureType featureType, int maxLength) throws CQLException - Throws:
CQLException
-
-
Method Details
-
getName
Description copied from interface:FeatureTypeMapperGet the original name- Specified by:
getNamein interfaceFeatureTypeMapper
-
getMappedName
Description copied from interface:FeatureTypeMapperGet the remapped name- Specified by:
getMappedNamein interfaceFeatureTypeMapper
-
getDefinitions
Description copied from interface:FeatureTypeMapperGet the definitions list- Specified by:
getDefinitionsin interfaceFeatureTypeMapper
-
getCoordinateReferenceSystem
Description copied from interface:FeatureTypeMapperGet the coordinate Reference System- Specified by:
getCoordinateReferenceSystemin interfaceFeatureTypeMapper
-
getMappedFeatureType
Description copied from interface:FeatureTypeMapperGet the remapped FeatureType- Specified by:
getMappedFeatureTypein interfaceFeatureTypeMapper
-
getWrappedFeatureType
Description copied from interface:FeatureTypeMapperGet the original FeatureType- Specified by:
getWrappedFeatureTypein interfaceFeatureTypeMapper
-
getSimpleFeatureSource
- Specified by:
getSimpleFeatureSourcein interfaceFeatureTypeMapper
-
remap
Description copied from interface:FeatureTypeMapperdefine the mapping rule- Specified by:
remapin interfaceFeatureTypeMapper
-
remap
-
setSimpleFeatureSource
-
remapFeatureType
protected void remapFeatureType()Remap the original featureType on top of the available definitions to create the database specific featureType -
remapGeometryAttribute
protected void remapGeometryAttribute(SimpleFeatureTypeBuilder tb, Definition definition, AttributeDescriptor descriptor, AttributeType type) Remap the original GeomtryType on top of the available definitions to create the database specific featureType
-