@Override FeatureEntry copy() { FeatureEntry e = new FeatureEntry(); e.init(this); return e; } }
FeatureEntry createFeatureEntry(ResultSet rs) throws SQLException, IOException { FeatureEntry e = new FeatureEntry(); initEntry(e, rs); e.setGeometryColumn(rs.getString("column_name")); e.setGeometryType(Geometries.getForName(rs.getString("geometry_type_name"))); e.setZ(rs.getBoolean("z")); e.setM(rs.getBoolean("m")); return e; }
@Override public void postDropTable(String schemaName, SimpleFeatureType featureType, Connection cx) throws SQLException { super.postDropTable(schemaName, featureType, cx); FeatureEntry fe = (FeatureEntry) featureType.getUserData().get(FeatureEntry.class); if (fe == null) { fe = new FeatureEntry(); fe.setIdentifier(featureType.getTypeName()); fe.setDescription(featureType.getTypeName()); fe.setTableName(featureType.getTypeName()); } GeoPackage geopkg = geopkg(); try { geopkg.deleteGeoPackageContentsEntry(fe); geopkg.deleteGeometryColumnsEntry(fe); } catch (IOException e) { throw new SQLException(e); } }
FeatureEntry e = new FeatureEntry(); e.init(entry); e.setTableName(schema.getTypeName());
fe = new FeatureEntry(); fe.setIdentifier(featureType.getTypeName()); fe.setDescription(featureType.getTypeName()); GeometryDescriptor gd1 = (GeometryDescriptor) descr; if (!(gd1.getLocalName()).equals(fe.getGeometryColumn())) { FeatureEntry fe1 = new FeatureEntry(); fe1.init(fe); fe1.setGeometryColumn(gd1.getLocalName());
@Override FeatureEntry copy() { FeatureEntry e = new FeatureEntry(); e.init(this); return e; } }
FeatureEntry e = new FeatureEntry(); e.init(entry);
FeatureEntry createFeatureEntry(ResultSet rs) throws SQLException, IOException { FeatureEntry e = new FeatureEntry(); initEntry(e, rs); e.setGeometryColumn(rs.getString("column_name")); e.setGeometryType(Geometries.getForName(rs.getString("geometry_type_name"))); e.setZ(rs.getBoolean("z")); e.setM(rs.getBoolean("m")); return e; }
@Override public void postDropTable(String schemaName, SimpleFeatureType featureType, Connection cx) throws SQLException { super.postDropTable(schemaName, featureType, cx); FeatureEntry fe = (FeatureEntry) featureType.getUserData().get(FeatureEntry.class); if (fe == null) { fe = new FeatureEntry(); fe.setIdentifier(featureType.getTypeName()); fe.setDescription(featureType.getTypeName()); fe.setTableName(featureType.getTypeName()); } GeoPackage geopkg = geopkg(); try { geopkg.deleteGeoPackageContentsEntry(fe); geopkg.deleteGeometryColumnsEntry(fe); } catch (IOException e) { throw new SQLException(e); } }
FeatureEntry e = new FeatureEntry(); e.init(entry); e.setTableName(schema.getTypeName());
fe = new FeatureEntry(); fe.setIdentifier(featureType.getTypeName()); fe.setDescription(featureType.getTypeName()); GeometryDescriptor gd1 = (GeometryDescriptor) descr; if (!(gd1.getLocalName()).equals(fe.getGeometryColumn())) { FeatureEntry fe1 = new FeatureEntry(); fe1.init(fe); fe1.setGeometryColumn(gd1.getLocalName());
FeatureEntry e = new FeatureEntry(); e.init(entry);