Thanks for your assistance. No I am in need for some further help. :-)
I used the mentioned OracleXmlTypeDataTypeComponent as a template along
with the factory and registered it in DB2Plugin#initialize()
CellComponentFactory.registerDataTypeFactory(
new DB2XmlTypeDataTypeComponentFactory() , Types.OTHER, "XML");
Type and type name are from DB2 manual and are displayed that way in the
ResulSetMetaData when running a query in Squirrel.
Now, when executing a query I still receive "<Other>" in the value field.
Debugging showed me, that ColumnDefintions are correctly created, my custom
data type is registered (e.g. component factory's construct is called). But
when loading data, my DB2XmlTypeDataTypeComponent#readResultSet method
never gets called.
Further debugging showed me, that SQLExecutorTask#processResultSet() leads
to ResultSetDataSet#setResultSet(ResultSet, String, int[], boolean,
boolean, DialectType), where the ResultSet is read by a ResultSetReader
(ResultSetDataSet line 170) ignoring the column defitinions (method param "
useColumnDefs" is false in this call hierarchy).
Am I missing something here?
______________________________________________________
Cedros Gesellschaft fuer Datenverarbeitung mbH
Siegburger Strasse 35 . D-53757 Sankt Augustin
Telefon +49 (0)22 41-88 34-0 . Telefax +49 (0)22 41-88 34 11
Geschaeftsfuehrung: Armin Dreiling, Markus Michels USt-ID DE123113291;
Registergericht: Amtsgericht Siegburg, HR B 3526
______________________________________________________
Diese E-Mail kann vertrauliche und/oder rechtlich geschuetzte
Informationen enthalten und ist nur fuer die Person bestimmt, an die
adressiert wurde. Sollten Sie diese Nachricht irrtuemlich erhalten
haben, untersagen wir, diese zu verteilen, zu veroeffentlichen,
auszudrucken oder zu speichern. Bitte benachrichtigen Sie den
Absender ueber den irrtuemlichen Erhalt und loeschen Sie diese E-Mail
von jedem Computer.
This e-mail may contain confidential and/or legally protected
information and is only intended for the person it is addressed to.
If you have received this message in error, it is prohibited to copy,
disclose, publish, print or save it. You should notify the sender and
delete this message from all computers.
|