Contents Index connect method drop method pdf/preface.pdf

UltraLite User's Guide
  Developing UltraLite Java Applications
    UltraLite API reference
      Class JdbcDatabase

countUploadRows method

Prototype 

long countUploadRows( UlSqlStmt stmt, 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 

stmt    The statement for which the upload rows are to be counted.

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 connect method drop method pdf/preface.pdf