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.

See the jaccommodations class below for more comments.public ordbCollection cabins;public ordbObject beach;public String has_daycare;public ordbCollection activities;public ordbGlo sounds_of_the_caribbean;// The database attributes are marked public, the datatypes are set based// on the default data type mapping between the types and the jdbc types.// Note that the beach attribute is of type ordbObject, the// sounds_of_the_Caribbean attribute is of type ordbGlo (subclass of// ordbObject). Also note that the attributes cabins and activities are// of type ordbCollection.private static String ddl_class_name = "resort";/** This default constructor is only used* by the custom mapping*/public jresort(){ }// The jdbc driver will use the above constructor and then invoke the// readSQL method to get the attribute values from the database./** Constructor for creating new resort* in the database.* @param con the connection obtained fromDriverManager.getConnection()*/public jresort(Connection con) throws SQLException {super(con, ddl_class_name);}<strong>JDBC</strong> <strong>Developer's</strong> <strong>Guide</strong>, P25-9504-03 Page 41Chapter: 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!