You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -264,10 +280,11 @@ Note that each operation can also optionally take a policy if it is desired to c
264
280
If it is desired to change one part of a policy but keep the rest as the defaults set up with these policies, the appropriate policy can be read with `getReadPolicy`, `getWritePolicy`, `getBatchPolicy`, `getScanPolicy` and `getQueryPolicy` methods on the AeroMapper. For example, if we need a policy which was previously set up on a Customer class but need to change the `durableDelete` property, we could do
WritePolicy writePolicy = new WritePolicy(mapper.getWritePolicy(Customer.class));
268
284
writePolicy.durableDelete = true;
269
285
mapper.delete(writePolicy, myCustomer);
270
286
```
287
+
Note that the `getXxxPolicy` methods return the actual underlying policy rather than a copy of it, so it is best to instantiate a new instance of this object before changing it.
271
288
272
289
In summary, the policy which will be used for a call are: (lower number is a higher priority)
273
290
@@ -1917,6 +1934,7 @@ classes:
1917
1934
elementType: LIST
1918
1935
name: data
1919
1936
```
1937
+
(Note: DataClass and ContainerClasss were defined as static inner classes inside AeroMapperConfigurationYamlTest, hence the need for the long classname. In real production applications this isn't likely to be needed)
1920
1938
1921
1939
### File Structure
1922
1940
The structure of the file is:
@@ -2088,7 +2106,7 @@ name: "container"
2088
2106
```
2089
2107
2090
2108
Note however that the list in the object in memory still contains only 4 items. *Virtual lists affect only the database representation of the data and not the Java POJO.*
2091
-
Virtual Lists tend to use the (Operate)[https://www.aerospike.com/docs/client/java/usage/kvs/multiops.html] command which allows multiple operations to be performed on the same key at the same time. As a consequence, multiple commands can be done on a list with a single Aerospike operation. For example:
2109
+
Virtual Lists tend to use the [Operate](https://www.aerospike.com/docs/client/java/usage/kvs/multiops.html) command which allows multiple operations to be performed on the same key at the same time. As a consequence, multiple commands can be done on a list with a single Aerospike operation. For example:
Then the result would be the result of the `removeByKey`, which by default is null. (Write operations pass a ReturnType of NONE to CDT operations by default)
2126
2144
2127
-
However, if we wanted a particular operation in the list to return it's result, we can flag it with `asResult()`.For example:
2145
+
However, if we wanted a particular operation in the list to return its result, we can flag it with `asResult()`. For example:
0 commit comments