Contents Index Class JdbcConnection getDefragIterator method

UltraLite Static Java User's Guide
  UltraLite Static Java API Reference
    UltraLite API reference
      Class JdbcConnection

countUploadRows method

Prototype 

long countUploadRows( int mask, long threshold )

Description 

Returns the number of rows that need to be uploaded when the next synchronization takes place.

You can use this function to determine if a synchronization is needed.

Parameters 

mask    A set of publications to check. A value of 0 corresponds to the entire database. The set is supplied as a mask. For example, the following mask corresponds to publications PUB1 and PUB2.:

UL_PUB_PUB1 | UL_PUB_PUB2

For more information on publication masks, see publication synchronization parameter.

threshold    A value that determines the maximum number of rows to count, and so limits the amount of time taken by the call. A value of 0 corresponds to no limit. A value of 1 determines if any rows need to be synchronized.

Returns 

The number of rows to be uploaded.

Throws 

java.sql.SQLException


Contents Index Class JdbcConnection getDefragIterator method