Skip to main content

Using Map

Hint

This article is generated by AI translation.

Map mode lets you turn typed EntityDelete, EntityInsert, EntityUpdate, and EntityQuery into Map-based APIs.

Tip

The INSERT, UPDATE, DELETE, and QUERY APIs already support Map data well—prefer them when working with Map structures.

Typed EntityInsert to MapInsert
LambdaTemplate lambda = ...;
MapInsert insert = lambda.insert(User.class).asMap();
...
Typed EntityUpdate to MapUpdate
LambdaTemplate lambda = ...;
MapUpdate update = lambda.update(User.class).asMap();
...
Typed EntityDelete to MapDelete
LambdaTemplate lambda = ...;
MapDelete delete = lambda.delete(User.class).asMap();
...
Typed EntityQuery to MapQuery
LambdaTemplate lambda = ...;
MapQuery query = lambda.query(User.class).asMap();
...