com.sybase.persistence
Interface ObjectState


public interface ObjectState

This interface holds object state flags. A set of flags that can be used to specify state of mobile object.

This demonstrates how to retrieve new and locally updated MBOs from database.

Query query = new Query(); query.setStateCriteria(ObjectState.NEW | ObjectState.UPDATED); List customers = Customer.find(query);


Field Summary
static int ALL
          The flag for all row states.
static int DELETED
          The flag for rows that are deleted rows and pending upload.
static int DOWNLOADED
          The flag for rows that are downloaded rows.
static int INSERTED
          The flag for rows that are inserted rows and pending upload.
static int NEW
          The flag for rows that are new rows and pending upload.
static int NONE
          The flag for no rows.
static int UPDATED
          The flag for rows that are updated rows and pending upload.
 

Field Detail

NONE

static final int NONE
The flag for no rows.

See Also:
Constant Field Values

DOWNLOADED

static final int DOWNLOADED
The flag for rows that are downloaded rows.

See Also:
Constant Field Values

INSERTED

static final int INSERTED
The flag for rows that are inserted rows and pending upload.

See Also:
Constant Field Values

UPDATED

static final int UPDATED
The flag for rows that are updated rows and pending upload.

See Also:
Constant Field Values

DELETED

static final int DELETED
The flag for rows that are deleted rows and pending upload.

See Also:
Constant Field Values

ALL

static final int ALL
The flag for all row states. This is the bitwise OR of all the other flags in this interface.

See Also:
Constant Field Values

NEW

static final int NEW
The flag for rows that are new rows and pending upload.

See Also:
Constant Field Values