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.

class jaccommodations.javaThe following is a class jaccommodations.java example:package sample.demodb;import java.sql.*;import java.math.*;import ordbjava.jdbc.*;/*** jaccommodations.java is a tool generated Java programming* language class for custom mapping of the* persistent class accommodations*/public class jaccommodations extends ordbObject implements SQLData {// All custom mapped classes must be a subclass of ordbObject.// ordbObject will hold the object identifier and also implements many// methods that are used by custom mapping.public String off_season;public ordbCollection rooms;public int number_of_restaurants;public int number_of_pools;public String allows_children;public Time checkout_time;public String country;public String cost;public String name;public ordbObject photo;protected String sql_type;private static String ddl_class_name = "accommodations";/** This default constructor is only used* by the custom mapping*/<strong>JDBC</strong> <strong>Developer's</strong> <strong>Guide</strong>, P25-9504-03 Page 44Chapter: 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!