Class ParentDatasetRepository
- java.lang.Object
-
- de.narimo.georepo.server.repository.ParentDatasetRepository
-
- Direct Known Subclasses:
DatasetRepository,DiffDatasetRepository
public class ParentDatasetRepository extends Object
-
-
Constructor Summary
Constructors Constructor Description ParentDatasetRepository()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancheckHistoryTableExists(int layerId)static org.geotools.feature.FeatureCollectioncreateSimpleFeatures(String dataTableName, Map<String,Class> propertyTypes, Map<String,String> columnsAndTypes, String query, Map<Integer,List<String>> tags, boolean addUserInformation)static GeometryTypedetectGeometryType(String dataTableName)Intends to detect the geometry type from the the_geom colum of the first entry of the data table.static StringgetCreator(String creatorMail)Returns the first part of an email before the @ sign.
-
-
-
Method Detail
-
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)
-
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
-
getCreator
public static String getCreator(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
-
-