Search in sources :

Example 1 with STRUCT

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);
    }
}
Also used : SQLException(java.sql.SQLException) JGeometry(oracle.spatial.geometry.JGeometry) STRUCT(oracle.sql.STRUCT) SQLException(java.sql.SQLException)

Aggregations

SQLException (java.sql.SQLException)1 JGeometry (oracle.spatial.geometry.JGeometry)1 STRUCT (oracle.sql.STRUCT)1