/** * @param s definition of the line in PostgreSQL's syntax. * @throws SQLException on conversion failure */ public PGline(String s) throws SQLException { this(); setValue(s); }
/** * required by the driver. */ public PGline() { setType("line"); }
return new PGline(rawValue.asString()); } catch (final SQLException e) { LOGGER.error("Failed to parse point {}, {}", rawValue.asString(), e);
@Override protected Line toObject(PGline value) { Line obj=new Line(); obj.setValue(value.getValue()); return obj; }
@Override protected PGline newInstance() { return new PGline(); }
/** * @param s definition of the line in PostgreSQL's syntax. * @exception SQLException on conversion failure */ public PGline(String s) throws SQLException { this(); setValue(s); }
/** * reuired by the driver */ public PGline() { setType("line"); }
@Override protected Line toObjectFromString(String value) { String val=(String)value; try { PGline pgObject=new PGline(val); return toObject(pgObject); } catch(SQLException e) { throw new RuntimeException(e); } }
/** * @param s definition of the line in PostgreSQL's syntax. * @exception SQLException on conversion failure */ public PGline(String s) throws SQLException { this(); setValue(s); }
/** * reuired by the driver */ public PGline() { setType("line"); }
@Override protected PGline toDbType(Line obj) { return new PGline(obj.getPoints()[0].getX() , obj.getPoints()[0].getY() , obj.getPoints()[1].getX() , obj.getPoints()[1].getY() ); }
/** * @param s definition of the line in PostgreSQL's syntax. * @exception SQLException on conversion failure */ public PGline(String s) throws SQLException { this(); setValue(s); }
/** * reuired by the driver */ public PGline() { setType("line"); }
return new PGline(rawValue.asString()); } catch (final SQLException e) { LOGGER.error("Failed to parse point {}, {}", rawValue.asString(), e);
@Override protected void setValue(PGline obj, String value) throws SQLException { obj.setValue(value); }