Class PlanitEntityFeatureTypeContext<T>

    • Field Detail

      • DEFAULT_GEOMETRY_ATTRIBUTE_KEY

        public static final String DEFAULT_GEOMETRY_ATTRIBUTE_KEY
        geotools attribute key for default geometry attribute as used here across entities
        See Also:
        Constant Field Values
    • Constructor Detail

      • PlanitEntityFeatureTypeContext

        protected PlanitEntityFeatureTypeContext​(Class<T> clazz,
                                                 Collection<Triple<String,​String,​Function<T,​? extends Object>>> geoFeatureDescription)
        Constructor
        Parameters:
        clazz - to use
        geoFeatureDescription - to use
    • Method Detail

      • appendToFeatureTypeDescription

        protected void appendToFeatureTypeDescription​(Triple<String,​String,​Function<T,​? extends Object>>... featureDescriptionEntries)
        append one or more additional entries to the description
        Parameters:
        featureDescriptionEntries - to append
      • getPlanitEntityClass

        public Class<T> getPlanitEntityClass()
      • getDefaultGeometryAttributeKey

        public String getDefaultGeometryAttributeKey()
        Access to default geometry attribute key as used
        Returns:
        attribute key used
      • getGisTypeFromJtsGeometryClass

        public static <T extends org.locationtech.jts.geom.Geometry> String getGisTypeFromJtsGeometryClass​(Class<T> geometryClazz)
        Given a type of JTS geometry in class form, provide the crresponding string representation for GIS based persistence
        Type Parameters:
        T - type of geometry
        Parameters:
        geometryClazz - to get string representation for
        Returns:
        string representation if supported, otherwise throw exception