You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Now we will use automatic custom mappingseashores.setAutoPerformCustomMapping(true);Object [] beaches = (Object [])seashores.getArray();// custom mapping was performed automatically// get the beach description using the jseashore instancefor (int i=0; i < beaches.length; i++) {jseashore beach = (jseashore)beaches[i];System.out.println("beach description(map): " +((jseashore)beaches[i]).description );} // Now clean up <strong>Cincom</strong> ORDB workspace used by the collection if(seashores != null) seashores.free(); stmt.close();conn.close(); }}Freeing <strong>Cincom</strong> ORDB workspace storage used byordbCollectionsAn instance of ordbCollection holds a reference to a <strong>Cincom</strong> ORDB collectionthat is maintained in the ORDB client workspace. When your application isfinished using the ordbCollection, you should invoke the free() method on theordbCollection. The free() method will release the workspace storageassociated with the ordbCollection object.All of the samples presented above make use of the free() method.<strong>JDBC</strong> <strong>Developer's</strong> <strong>Guide</strong>, P25-9504-03 Page 75Chapter: 4. <strong>Cincom</strong> ORDB ExtensionsSection: Working with <strong>Cincom</strong> ORDB collections