Class ParentDatasetRepository

    • Constructor Detail

      • ParentDatasetRepository

        public ParentDatasetRepository()
    • Method Detail

      • tableExists

        public static boolean tableExists​(de.narimo.commons.jdbc.JDBCConnectionJNDI jdbc,
                                          String schemaName,
                                          String tableName)
                                   throws SQLException
        Returns:
        Throws:
        SQLException
      • getColumnTypes

        public static Map<String,​String> getColumnTypes​(String tableName,
                                                              String schemaName)
        Deprecated.
        use getColumnFeatureTypes instead
        Parameters:
        tableName -
        schemaName -
        Returns:
      • createSimpleFeatures

        public static org.geotools.feature.FeatureCollection createSimpleFeatures​(String dataTableName,
                                                                                  Map<String,​Class> propertyTypes,
                                                                                  Map<String,​String> columnsAndTypes,
                                                                                  String query,
                                                                                  Map<Integer,​List<String>> tags,
                                                                                  boolean addUserInformation,
                                                                                  boolean asWorkspaceAdmin)
      • detectGeometryType

        public static GeometryType detectGeometryType​(String dataTableName)
        Intends to detect the geometry type from the the_geom colum of the first entry of the data table.
        Parameters:
        dataTableName -
        Returns:
        Throws:
        Exception
      • getCreatorName

        public static String getCreatorName​(String creatorMail)
        Returns the first part of an email before the @ sign.
        Parameters:
        creatorMail -
        Returns:
      • checkHistoryTableExists

        public static boolean checkHistoryTableExists​(int layerId)
                                               throws SQLException
        Throws:
        SQLException