How to transform Java object to XMLTYPE ?
673660Feb 6 2009 — edited Feb 11 2009hi,
I have a Java object (POJO), that I would like to store to oracle xdb (XMLTYPE table). Is there a way to have something like XmlType.createXML(connection, POJO) or XmlType.createXML(connection, POJO, schema) ?
Currently I transform it as -->
POJO -> DOM-> String -> InputStream -> XMLTYPE.create( connection, Istream )
or
POJO -> DOM-> -> XMLTYPE.create( connection, DOM ) -- which is too slow as xml text size increases above 15kb
2. My JDBC connection is slow. If theres a way to avoid it in XMLType creation, thts even better.
3. Pls suggest other ways of doing this.
Thanks in advance.