<html> <head> <title>Service ContentResultSet</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" type="text/css" href="../../../../idl.css"> </head> <body> <div id="adc-idlref"> <a name="_top_"> </a><table class="navimain" border="0" cellpadding="3"> <tr> <td class="navimain"><a href="../module-ix.html" class="navimain">Overview</a></td> <td class="navimain"><a href="module-ix.html" class="navimain">Module</a></td> <td class="navimain"><a href="ContentResultSet-xref.html" class="navimain">Use</a></td> <td class="navimainnone">Devguide</td> <td class="navimain"><a href="../../../../index-files/index-1.html" class="navimain">Index</a></td> </tr> </table> <table class="navisub" border="0" cellpadding="0"> <tr> <td class="navisub"><a href="#IncludedServices" class="navisub">Included Services</a></td> <td class="navisub"><a href="#ExportedInterfaces" class="navisub">Exported Interfaces</a></td> <td class="navisub"><a href="#PropertiesSummary" class="navisub">Properties' Summary</a></td> <td class="navisub"><a href="#PropertiesDetails" class="navisub">Properties' Details</a></td> </tr> </table> <hr> <table border="0" width="100%" cellpadding="5" cellspacing="3" class="title-table" style="margin-bottom:6pt;"> <tr> <td><p class="namechain"><a href="../../../../module-ix.html" class="namechain">::</a> <a href="../../../module-ix.html" class="namechain">com</a> :: <a href="../../module-ix.html" class="namechain">sun</a> :: <a href="../module-ix.html" class="namechain">star</a> :: <a href="module-ix.html" class="namechain">ucb</a> :: </p> </td> </tr> <tr> <td class="title">service ContentResultSet</td> </tr> <tr> <td><dl> <dt><b>Description</b></dt> <dd>provides access to the children of a folder content. </dd> <dd><p>It can be understand as a table containing a row for each child. The table columns may contain values of properties of the children. </dd> </dl> </td> </tr> </table> <hr> <a name="IncludedServices"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle" colspan="2">Included Services</td> </tr> <tr> <td class="imsum_left">::com::sun::star::<a href="../sdbc/module-ix.html">sdbc</a>::<a href="../sdbc/ResultSet.html">ResultSet</a></td> <td class="imsum_right"><dl> <dt><b>Description</b></dt> <dd>can be implemented to provide a complete JDBC conform result set interface for the implementation of this service. </dd> <dd><p>The implememtation of this service is optional. </dd> </dl> </td> </tr> </table> <a name="ExportedInterfaces"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle" colspan="2">Exported Interfaces</td> </tr> <tr> <td class="imsum_left">::com::sun::star::<a href="../lang/module-ix.html">lang</a>::<a href="../lang/XComponent.html">XComponent</a></td> <td class="imsum_right"><dl> <dt><b>Description</b></dt> <dd>must be implemented to make it possible to resolve cyclic object references ( i.e. between an implementation of ::com::sun::star::<a href="../beans/module-ix.html">beans</a>::<a href="../beans/XPropertySet.html">XPropertySet</a> - which may hold property change listeners - and ::com::sun::star::<a href="../beans/module-ix.html">beans</a>::<a href="../beans/XPropertyChangeListener.html">XPropertyChangeListener</a> - which may hold the property set ). </dd> <dd><p>This interface is required. </dd> </dl> </td> </tr> <tr> <td class="imsum_left">::com::sun::star::<a href="../sdbc/module-ix.html">sdbc</a>::<a href="../sdbc/XResultSetMetaDataSupplier.html">XResultSetMetaDataSupplier</a></td> <td class="imsum_right"><dl> <dt><b>Description</b></dt> <dd>provides access to the result set meta data. Meta data are for example the number of columns of the result set, information on the data types of columns, column names, and more. </dd> <dd><p>This interface is required. </dd> </dl> </td> </tr> <tr> <td class="imsum_left">::com::sun::star::<a href="../sdbc/module-ix.html">sdbc</a>::<a href="../sdbc/XResultSet.html">XResultSet</a></td> <td class="imsum_right"><dl> <dt><b>Description</b></dt> <dd>enables travelling through the result set members ( the contents ). This interface mainly provides a cursor for the result set. </dd> <dd><p>Note that every method of this interface implementation additionally may throw a <a href="ResultSetException.html">ResultSetException</a> ( which is derived from ::com::sun::star::<a href="../sdbc/module-ix.html">sdbc</a>::<a href="../sdbc/SQLException.html">SQLException</a> to be compatible to that interface ). The new exception transports another exception, which indicates the reason for the failure of the method call. <p>This interface is required. </dd> </dl> </td> </tr> <tr> <td class="imsum_left">::com::sun::star::<a href="../sdbc/module-ix.html">sdbc</a>::<a href="../sdbc/XRow.html">XRow</a></td> <td class="imsum_right"><dl> <dt><b>Description</b></dt> <dd>provides access to data of the content the cursor is pointing to. </dd> <dd><p>Note that every method of this interface implementation additionally may throw a <a href="ResultSetException.html">ResultSetException</a> ( which is derived from ::com::sun::star::<a href="../sdbc/module-ix.html">sdbc</a>::<a href="../sdbc/SQLException.html">SQLException</a> to be compatible to that interface ). The new exception transports another exception, which indicates the reason for the failure of the method call. <p>This interface is required. </dd> </dl> </td> </tr> <tr> <td class="imsum_left">::com::sun::star::<a href="../sdbc/module-ix.html">sdbc</a>::<a href="../sdbc/XCloseable.html">XCloseable</a></td> <td class="imsum_right"><dl> <dt><b>Description</b></dt> <dd>makes it possible to abort running activities ( i.e. to cancel retrieving data from a server ). </dd> <dd><p>Note that every method of this interface implementation additionally may throw a <a href="ResultSetException.html">ResultSetException</a> ( which is derived from ::com::sun::star::<a href="../sdbc/module-ix.html">sdbc</a>::<a href="../sdbc/SQLException.html">SQLException</a> to be compatible to that interface ). The new exception transports another exception, which indicates the reason for the failure of the method call. <p>This interface is required. </dd> </dl> </td> </tr> <tr> <td class="imsum_left">::com::sun::star::<a href="../beans/module-ix.html">beans</a>::<a href="../beans/XPropertySet.html">XPropertySet</a></td> <td class="imsum_right"><dl> <dt><b>Description</b></dt> <dd>holds properties of the resultset. </dd> <dd><p>This interface is required. </dd> </dl> </td> </tr> <tr> <td class="imsum_left"><a href="XContentAccess.html">XContentAccess</a></td> <td class="imsum_right"><dl> <dt><b>Description</b></dt> <dd>provides access to the content identifier and the content object itself. </dd> <dd><p>This interface is required. </dd> </dl> </td> </tr> </table> <a name="PropertiesSummary"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle" colspan="2">Properties' Summary</td> </tr> <tr> <td class="imsum_left">long<br> <a href="#CursorTravelMode">CursorTravelMode</a></td> <td class="imsum_right"><b>[ OPTIONAL ]<br> </b>controls the travel mode of the resultset cursor. </td> </tr> <tr> <td class="imsum_left">[ readonly ] long<br> <a href="#RowCount">RowCount</a></td> <td class="imsum_right">contains the number of rows obtained (so far) from the data source. </td> </tr> <tr> <td class="imsum_left">[ readonly ] boolean<br> <a href="#IsRowCountFinal">IsRowCountFinal</a></td> <td class="imsum_right">indicates that all rows of te resultset have been obtained. </td> </tr> </table> <a name="PropertiesDetails"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle">Properties' Details</td> </tr> <tr> <td class="imdetail"><a name="CursorTravelMode" class="membertitle">CursorTravelMode</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>long <b>CursorTravelMode</b>;<hr> <dl> <dt><b>Usage Restrictions</b></dt> <dd><i>optional</i></dd> <dt><b>Description</b></dt> <dd>controls the travel mode of the resultset cursor. </dd> <dd><p>There are two possible travel modes: <p><table border=1> <tr><td><a href="#BLOCKING">BLOCKING</a></td> <td>Each travel method of the resultset will not return until the data for the new position were retrieved.</td></tr> <tr><td><a href="#NONBLOCKING">NONBLOCKING</a></td> <td>The implementation will throw a <code>CursorWouldBlockException</code>, if the data for the new position are not retrieved yet.</td></tr> </table> <p>The following pseudo-code illustrates the usage of a non-blocking cursor: <p><pre> bProcessedAllRows = false while ( !bProcessedAllRows ) { cursor.setPropertyValue( "CursorTravelMode", BLOCKING ) cursor.travelSomeWhere() collectRowData() cursor.setPropertyValue( "CursorTravelMode", NONBLOCKING ) bGoOn = true; while ( bGoOn ) { try { cursor.travelSomeWhere() collectRowData() } catch ( CursorWouldBlockException ) { // No more data at the moment. bGoOn = false } } doSomethingWithCollectedRowData() bProcessedAllRows = ... } </pre> <p> If this property is not supported, the implementation needs to provide a blocking cursor. </p> <p> The implementation initially needs to set the value of this property to <a href="#BLOCKING">BLOCKING</a>. </p> </dd> <dt><b>See also</b></dt> <dd><a href="#CursorTravelMode">CursorTravelMode</a></dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="RowCount" class="membertitle">RowCount</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>[ readonly ] long <b>RowCount</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>contains the number of rows obtained (so far) from the data source. </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="IsRowCountFinal" class="membertitle">IsRowCountFinal</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>[ readonly ] boolean <b>IsRowCountFinal</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>indicates that all rows of te resultset have been obtained. </dd> </dl> </td> </tr> </table> </td> </tr> </table> <br> <a href="#_top_">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright © 2008 Sun Microsystems, Inc.</p> </div> <!-- id="adc-idlref" --> </body> </html>