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.

The above constructor can be used by the application developer to// create a new database template instance of the class./** This constructor is internally used by subclasses of jresort*/protected jresort(Connection con, String ddl_name) throws SQLException{super(con, ddl_name);}/*** This method does the mapping from database class resort* to Java programming language class jresort.* It is internally called by the <strong>JDBC</strong> driver.* @see java.sql.SQLData#readSQL* @see java.sql.SQLInput*/public void readSQL(SQLInput stream, String type) throws SQLException{super.readSQL(stream, type);// Invoke the superclass method to get the values from attributes// defined by the superclass.cabins = (ordbCollection)stream.readArray();beach = (ordbObject)stream.readRef();has_daycare = stream.readString();activities = (ordbCollection)stream.readArray();sounds_of_the_caribbean = (ordbGlo)stream.readRef();}/*** This method maps the Java programming language class* jresort back to the database class resort.* @param stream an output stream that is an instance of interface* SQLOutput, to which data will be written.* @see java.sql.SQLData#writeSQL* @see java.sql.SQLOutput*/<strong>JDBC</strong> <strong>Developer's</strong> <strong>Guide</strong>, P25-9504-03 Page 42Chapter: 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!