Class AbstractFeatureTypeMapper
- Object
-
- AbstractFeatureTypeMapper
-
- All Implemented Interfaces:
FeatureTypeMapper
- Direct Known Subclasses:
OracleFeatureTypeMapper
,PostgisFeatureTypeMapper
,SQLServerTypeMapper
public abstract class AbstractFeatureTypeMapper extends Object implements FeatureTypeMapper
An abstract class which groups common attributes and methods to remap original FeatureType onto the new one
-
-
Field Summary
Fields Modifier and Type Field Description protected CoordinateReferenceSystem
coordinateReferenceSystem
the coordinateReferenceSystem for the geometryprotected List<Definition>
definitions
The list ofDefinition
object defining the mappingprotected Map<Name,Definition>
definitionsMapping
The mapping between an attributeName and its definitionprotected SimpleFeatureType
mappedFeatureType
The oracle specific featureTypeprotected String
mappedName
The mapped typeName (UPPERCASE and less than 30 chars)protected int
maxLength
protected Name
originalName
The original typeNameprotected SimpleFeatureSource
simpleFeatureSource
TheSimpleFeatureSource
available for that typeprotected SimpleFeatureType
wrappedFeatureType
The original feature type
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractFeatureTypeMapper(SimpleFeatureType featureType, int maxLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoordinateReferenceSystem
getCoordinateReferenceSystem()
Get the coordinate Reference SystemList<Definition>
getDefinitions()
Get the definitions listSimpleFeatureType
getMappedFeatureType()
Get the remapped FeatureTypeString
getMappedName()
Get the remapped nameName
getName()
Get the original nameSimpleFeatureSource
getSimpleFeatureSource()
SimpleFeatureType
getWrappedFeatureType()
Get the original FeatureTypeString
remap(String name)
define the mapping ruleprotected String
remap(String name, int maxLength)
protected void
remapFeatureType()
Remap the original featureType on top of the available definitions to create the database specific featureTypeprotected 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 featureTypevoid
setSimpleFeatureSource(SimpleFeatureSource simpleFeatureSource)
-
-
-
Field Detail
-
originalName
protected Name originalName
The original typeName
-
mappedName
protected String mappedName
The mapped typeName (UPPERCASE and less than 30 chars)
-
coordinateReferenceSystem
protected CoordinateReferenceSystem coordinateReferenceSystem
the coordinateReferenceSystem for the geometry
-
definitions
protected List<Definition> definitions
The list ofDefinition
object defining the mapping
-
wrappedFeatureType
protected SimpleFeatureType wrappedFeatureType
The original feature type
-
mappedFeatureType
protected SimpleFeatureType mappedFeatureType
The oracle specific featureType
-
definitionsMapping
protected Map<Name,Definition> definitionsMapping
The mapping between an attributeName and its definition
-
simpleFeatureSource
protected SimpleFeatureSource simpleFeatureSource
TheSimpleFeatureSource
available for that type
-
maxLength
protected int maxLength
-
-
Constructor Detail
-
AbstractFeatureTypeMapper
protected AbstractFeatureTypeMapper(SimpleFeatureType featureType, int maxLength) throws CQLException
- Throws:
CQLException
-
-
Method Detail
-
getName
public Name getName()
Description copied from interface:FeatureTypeMapper
Get the original name- Specified by:
getName
in interfaceFeatureTypeMapper
-
getMappedName
public String getMappedName()
Description copied from interface:FeatureTypeMapper
Get the remapped name- Specified by:
getMappedName
in interfaceFeatureTypeMapper
-
getDefinitions
public List<Definition> getDefinitions()
Description copied from interface:FeatureTypeMapper
Get the definitions list- Specified by:
getDefinitions
in interfaceFeatureTypeMapper
-
getCoordinateReferenceSystem
public CoordinateReferenceSystem getCoordinateReferenceSystem()
Description copied from interface:FeatureTypeMapper
Get the coordinate Reference System- Specified by:
getCoordinateReferenceSystem
in interfaceFeatureTypeMapper
-
getMappedFeatureType
public SimpleFeatureType getMappedFeatureType()
Description copied from interface:FeatureTypeMapper
Get the remapped FeatureType- Specified by:
getMappedFeatureType
in interfaceFeatureTypeMapper
-
getWrappedFeatureType
public SimpleFeatureType getWrappedFeatureType()
Description copied from interface:FeatureTypeMapper
Get the original FeatureType- Specified by:
getWrappedFeatureType
in interfaceFeatureTypeMapper
-
getSimpleFeatureSource
public SimpleFeatureSource getSimpleFeatureSource()
- Specified by:
getSimpleFeatureSource
in interfaceFeatureTypeMapper
-
remap
public String remap(String name)
Description copied from interface:FeatureTypeMapper
define the mapping rule- Specified by:
remap
in interfaceFeatureTypeMapper
-
setSimpleFeatureSource
public void setSimpleFeatureSource(SimpleFeatureSource simpleFeatureSource)
-
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
-
-