@Override
    public void setValue(PreparedStatement st, int startIndex, String value)
            throws SQLException {
        SQLXML xml = st.getConnection().createSQLXML();
        xml.setString(value);
        st.setSQLXML(startIndex, xml);

    }
{@code XMLAsStringType} maps String to SQLXML on the JDBC level

@author tiwe
querydsl-sql/src/main/java/com/querydsl/sql/types/XMLAsStringType.java