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.

public void readSQL(SQLInput stream, String type) throws SQLException{}sql_type = type;off_season = stream.readString();rooms = (ordbCollection)stream.readArray();number_of_restaurants = stream.readInt();number_of_pools = stream.readInt();allows_children = stream.readString();checkout_time = stream.readTime();country = stream.readString();cost = stream.readString();name = stream.readString();photo = (ordbObject)stream.readRef();/*** This method maps the Java programming language class* jaccommodations back to the database class accommodations.* @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*/public void writeSQL(SQLOutput stream) throws SQLException {stream.writeString(off_season);stream.writeArray(rooms);stream.writeInt(number_of_restaurants);stream.writeInt(number_of_pools);stream.writeString(allows_children);stream.writeTime(checkout_time);stream.writeString(country);stream.writeString(cost);stream.writeString(name);stream.writeRef((Ref)photo);}/**<strong>JDBC</strong> <strong>Developer's</strong> <strong>Guide</strong>, P25-9504-03 Page 46Chapter: 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!