[Java programming language only]

Interacting with data in a transaction for Java applications

Use sessions to interact with data, including insert and update operations.

About this task

The ObjectMap interface has the typical Map operations such as put, get, and remove. However, use the more specific operation names such as: get, getForUpdate, insert, update, and remove. These method names convey the intent more precisely than the traditional Map APIs.
[Java programming language only]Deprecated feature[Version 8.6 and later] Note: The upsert and upsertAll methods replace the ObjectMap put and putAll methods. Use the upsert method to tell the BackingMap and loader that an entry in the data grid needs to place the key and value into the grid. The BackingMap and loader does either an insert or an update to place the value into the grid and loader . If you run the upsert API within your applications, then the loader gets an UPSERT LogElement type, which allows loaders to do database merge or upsert calls instead of using insert or update.

You can also use the indexing support, which is flexible.

Procedure