Class DatasetRepository
- java.lang.Object
-
- de.narimo.georepo.server.repository.ParentDatasetRepository
-
- de.narimo.georepo.server.repository.DatasetRepository
-
public class DatasetRepository extends ParentDatasetRepository
-
-
Constructor Summary
Constructors Constructor Description DatasetRepository()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancheckTagTableExists(int layerId)static voidcreateTagTable(int layerId)static booleandoesFeatureExist(int layerId, int gfid)Checks, whether a feature with gfid exists for the given layer.static List<String>getCategories(int layerId, String optCategoryColumn)static org.geotools.feature.FeatureCollectiongetDatasets(int layerId, long userId)static intgetLayerId(String workspace, String featureType)static List<String>getTags(int layerId)static Map<Integer,List<String>>getTagsByGfid(int layerId)-
Methods inherited from class de.narimo.georepo.server.repository.ParentDatasetRepository
createSimpleFeatures, detectGeometryType
-
-
-
-
Method Detail
-
getDatasets
public static org.geotools.feature.FeatureCollection getDatasets(int layerId, long userId) throws SQLException- Throws:
SQLException
-
doesFeatureExist
public static boolean doesFeatureExist(int layerId, int gfid) throws SQLExceptionChecks, whether a feature with gfid exists for the given layer.- Parameters:
layerId-gfid-- Returns:
- Throws:
SQLExceptionIOException
-
getCategories
public static List<String> getCategories(int layerId, String optCategoryColumn) throws SQLException
- Throws:
SQLException
-
getTags
public static List<String> getTags(int layerId) throws SQLException
- Throws:
SQLException
-
getTagsByGfid
public static Map<Integer,List<String>> getTagsByGfid(int layerId) throws SQLException
- Throws:
SQLException
-
checkTagTableExists
public static boolean checkTagTableExists(int layerId) throws SQLException- Throws:
SQLException
-
createTagTable
public static void createTagTable(int layerId) throws SQLException- Throws:
SQLException
-
-