Class ParentDatasetRepository
- java.lang.Object
-
- de.narimo.georepo.server.repository.ParentDatasetRepository
-
- Direct Known Subclasses:
DatasetRepository,DiffDatasetRepository,TagRepository
public class ParentDatasetRepository extends Object
-
-
Constructor Summary
Constructors Constructor Description ParentDatasetRepository()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated 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, boolean asWorkspaceAdmin)static GeometryTypedetectGeometryType(String dataTableName)Intends to detect the geometry type from the the_geom colum of the first entry of the data table.static List<ColumnProperties>getColumnFeatureTypes(String tableName, String schemaName)static Map<String,String>getColumnTypes(String tableName, String schemaName)Deprecated.use getColumnFeatureTypes insteadstatic StringgetCreatorName(String creatorMail)Returns the first part of an email before the @ sign.static booleantableExists(de.narimo.commons.jdbc.JDBCConnectionJNDI jdbc, String schemaName, String tableName)
-
-
-
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:
-
getColumnFeatureTypes
public static List<ColumnProperties> getColumnFeatureTypes(String tableName, String schemaName)
-
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
-
-