use of oracle.sql.STRUCT in project querydsl by querydsl.
the class JGeometryType method setValue.
@Override
public void setValue(PreparedStatement st, int startIndex, Geometry value) throws SQLException {
try {
JGeometry geo = JGeometryConverter.convert(value);
STRUCT struct = JGeometry.store(st.getConnection(), geo);
st.setObject(startIndex, struct);
} catch (Exception e) {
throw new SQLException(e);
}
}
Aggregations