21.08.2013 Views

OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki

OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki

OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Database Access 206<br />

supports all SQL data types<br />

getBytes()<br />

supports the SQL data types for binary values<br />

getDate()<br />

supports the SQL data types for numbers, strings, date and time stamp<br />

getTime()<br />

supports the SQL data types for numbers, strings, date and time stamp<br />

getTimestamp()<br />

supports the SQL data types for numbers, strings, date and time stamp<br />

getCharacterStream()<br />

supports the SQL data types for numbers, strings and binary values<br />

getUnicodeStream()<br />

supports the SQL data types for numbers, strings and binary values<br />

getBinaryStream()<br />

binary values<br />

getObject()<br />

supports all SQL data types<br />

In all instances, the number of columns should be listed as a parameter whose values<br />

should be queried.<br />

The ResultSet Variants<br />

Accessing databases is often a matter of critical speed. <strong>OpenOffice</strong>.<strong>org</strong> provides several<br />

ways of optimizing ResultSets and thereby controlling the speed of access. The more<br />

functions a ResultSet provides, the more complex its implementation usually is and<br />

therefore the slower the functions are.<br />

A simple ResultSet, provides the minimum scope of functions available. It only allows<br />

iteration to be applied forward, and for values to be interrogated. More extensive<br />

navigation options, such as the possibility of modifying values, are therefore not included.<br />

The Statement object used to create the ResultSet provides some properties which allow<br />

the functions of the ResultSet to be influenced:<br />

ResultSetConcurrency (const)<br />

specifications as to whether the data can be modified (specifications in accordance<br />

with<br />

com.sun.star.sdbc.ResultSetConcurrency<br />

).<br />

ResultSetType (const)<br />

specifications regarding type of ResultSets ( specifications in accordance with<br />

com.sun.star.sdbc.ResultSetType<br />

).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!