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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Annotated examples of custom mapped classesThe class jresort.java and class jaccommodations.java were originallygenerated by the ddltojava utility and then comments in bold(// ... comment) were added to describe various items in the classes.The java classes that map to the demodb schema may be found in the%ORDB%\demo\jdbc\samples directory. All of the custom mapped classes arelocated in the demo.jdbc.samples package.class jresort.javaThe following is a class jresort.java example:package sample.demodb;// The option "–p sample.demodb –pre j" was used when ddltojava utilitywas invokedimport java.sql.*;import java.math.*;import ordbjava.jdbc.*;/*** jresort.java is a tool generated Java programming* language class for custom mapping of the* persistent class resort*/// The tool generates comments in the java class.public class jresort extends jaccommodations {// Single inheritance is supported by the tool. If the database class has// multiple inheritance, or attribute ordering is changed, the tool will// flatten the mapping into one java class.<strong>JDBC</strong> <strong>Developer's</strong> <strong>Guide</strong>, P25-9504-03 Page 40Chapter: 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!