void init(Entry e) { setDescription(e.getDescription()); setIdentifier(e.getIdentifier()); setDataType(e.getDataType()); setBounds(e.getBounds()); setSrid(e.getSrid()); setTableName(e.getTableName()); }
static void initEntry(Entry e, ResultSet rs) throws SQLException, IOException { e.setIdentifier(rs.getString("identifier")); e.setDescription(rs.getString("description")); e.setTableName(rs.getString("table_name")); try { final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat(DATE_FORMAT_STRING); e.setLastChange(DATE_FORMAT.parse(rs.getString("last_change"))); } catch (ParseException ex) { throw new IOException(ex); e.setSrid(srid); e.setBounds( new ReferencedEnvelope( rs.getDouble("min_x"),
if (e.getSrid() != null) { addCRS(e.getSrid()); if (e.getDescription() != null) { sb.append(", description"); vals.append(",?"); if (e.getLastChange() != null) { sb.append(", last_change"); vals.append(",?"); if (e.getSrid() != null) { sb.append(", srs_id"); vals.append(",?"); SqlUtil.PreparedStatementBuilder psb = prepare(cx, sb.toString()) .set(e.getTableName()) .set(e.getDataType().value()) .set(e.getIdentifier()); if (e.getDescription() != null) { psb.set(e.getDescription()); if (e.getLastChange() != null) { psb.set(DATE_FORMAT.format(e.getLastChange())); if (e.getBounds() != null) { psb.set(e.getBounds().getMinX())
void init(TileEntry e) { super.init(e); setTileMatricies(e.getTileMatricies()); this.tileMatrixSetBounds = e.tileMatrixSetBounds == null ? null : new ReferencedEnvelope(e.tileMatrixSetBounds); }
void deleteGeoPackageContentsEntry(Entry e) throws IOException { String sql = format("DELETE FROM %s WHERE table_name = ?", GEOPACKAGE_CONTENTS); try { Connection cx = connPool.getConnection(); try { PreparedStatement ps = prepare(cx, sql).set(e.getTableName()).log(Level.FINE).statement(); try { ps.execute(); } finally { close(ps); } } finally { close(cx); } } catch (SQLException ex) { throw new IOException(ex); } }
if (e.getSrid() != null) { addCRS(e.getSrid()); if (e.getDescription() != null) { sb.append(", description"); vals.append(",?"); if (e.getLastChange() != null) { sb.append(", last_change"); vals.append(",?"); if (e.getSrid() != null) { sb.append(", srs_id"); vals.append(",?"); SqlUtil.PreparedStatementBuilder psb = prepare(cx, sb.toString()) .set(e.getTableName()) .set(e.getDataType().value()) .set(e.getIdentifier()); if (e.getDescription() != null) { psb.set(e.getDescription()); if (e.getLastChange() != null) { psb.set(DATE_FORMAT.format(e.getLastChange())); if (e.getBounds() != null) { psb.set(e.getBounds().getMinX())
static void initEntry(Entry e, ResultSet rs) throws SQLException, IOException { e.setIdentifier(rs.getString("identifier")); e.setDescription(rs.getString("description")); e.setTableName(rs.getString("table_name")); try { final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat(DATE_FORMAT_STRING); e.setLastChange(DATE_FORMAT.parse(rs.getString("last_change"))); } catch (ParseException ex) { throw new IOException(ex); e.setSrid(srid); e.setBounds( new ReferencedEnvelope( rs.getDouble("min_x"),
void init(FeatureEntry e) { super.init(e); setGeometryColumn(e.getGeometryColumn()); setGeometryType(e.getGeometryType()); setZ(e.isZ()); setM(e.isM()); }
void deleteGeoPackageContentsEntry(Entry e) throws IOException { String sql = format("DELETE FROM %s WHERE table_name = ?", GEOPACKAGE_CONTENTS); try { Connection cx = connPool.getConnection(); try { PreparedStatement ps = prepare(cx, sql).set(e.getTableName()).log(Level.FINE).statement(); try { ps.execute(); } finally { close(ps); } } finally { close(cx); } } catch (SQLException ex) { throw new IOException(ex); } }
void init(Entry e) { setDescription(e.getDescription()); setIdentifier(e.getIdentifier()); setDataType(e.getDataType()); setBounds(e.getBounds()); setSrid(e.getSrid()); setTableName(e.getTableName()); }
void init(TileEntry e) { super.init(e); setTileMatricies(e.getTileMatricies()); this.tileMatrixSetBounds = e.tileMatrixSetBounds == null ? null : new ReferencedEnvelope(e.tileMatrixSetBounds); }
void init(FeatureEntry e) { super.init(e); setGeometryColumn(e.getGeometryColumn()); setGeometryType(e.getGeometryType()); setZ(e.isZ()); setM(e.isM()); }