10.07.2015 Views

JDBC Developer's Guide - Supra - Cincom

JDBC Developer's Guide - Supra - Cincom

JDBC Developer's Guide - Supra - Cincom

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

13 activities// 14 sounds_of_the_carribeanboolean customMapSwitch = ordbObject.getAutoPerformCustomMapping();jseashore seashore = null;if (!customMapSwitch) {// if custom mapping is off, the beach reference// contained in resortAttrs[11] is an instance of// ordbObject that has not been instantiated as a java// object. We can use the getObject method of// ordbObject to explicitly perform the custom mapping.ordbObject beachRef = (ordbObject)resortAttrs[11];seashore = (jseashore) beachRef.getObject();} else {// Custom mapping is on, resortAttrs[11] contains// a jseashore instance.seashore = (jseashore)resortAttrs[11];}System.out.println("beach description of resort " + resortAttrs[8] +": "+ seashore.description);// Toggle the auto perform custom mapping switchordbObject.setAutoPerformCustomMapping(!customMapSwitch);}rset.close();}}<strong>JDBC</strong> <strong>Developer's</strong> <strong>Guide</strong>, P25-9504-03 Page 54Chapter: 4. <strong>Cincom</strong> ORDB ExtensionsSection: Creating custom Java classes for <strong>Cincom</strong> ORDB objects

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!