GigaSpaces XAP 9.0 API

com.gigaspaces.datasource
Interface BulkItem


public interface BulkItem

BulkItem defines a single item in a bulk.

Since:
6.0
Author:
anna
See Also:
BulkDataPersister

Field Summary
static short PARTIAL_UPDATE
          Partial update operation
static short REMOVE
          Remove operation
static short UPDATE
          Update operation
static short WRITE
          Write operation
 
Method Summary
 String getIdPropertyName()
           
 Object getIdPropertyValue()
           
 Object getItem()
          Return the data item
 Map<String,Object> getItemValues()
           
 short getOperation()
          Return the operation to execute
 String getTypeName()
           
 

Field Detail

REMOVE

static final short REMOVE
Remove operation

See Also:
Constant Field Values

UPDATE

static final short UPDATE
Update operation

See Also:
Constant Field Values

WRITE

static final short WRITE
Write operation

See Also:
Constant Field Values

PARTIAL_UPDATE

static final short PARTIAL_UPDATE
Partial update operation

See Also:
Constant Field Values
Method Detail

getItem

Object getItem()
Return the data item

Returns:
data item

getOperation

short getOperation()
Return the operation to execute

Returns:
operation type REMOVE/UPDATE/WRITE/PARTIAL_UPDATE

getTypeName

String getTypeName()
Returns:
the name of the type/class

getIdPropertyName

String getIdPropertyName()
Returns:
the name of the id property

getIdPropertyValue

Object getIdPropertyValue()
Returns:
the value of the id property

getItemValues

Map<String,Object> getItemValues()
Returns:
a map of the object properties. The keys are the names of the properties and their values is the object values. In case of a partial update - only the updated values are returned.s

GigaSpaces XAP 9.0 API

Copyright © GigaSpaces.