*/
protected void update() {
// update the instances
for (int i = 0; i < NUMBER_OF_INSTANCES; ++i) {
if (0 == i % 4) {
BinaryPK instance = createInstance(i);
instance.setName(getValue(NUMBER_OF_INSTANCES - i));
session.updatePersistent(instance);
verifyStorage("update ", instance, i, true);
}
}
// verify the updated instances
for (int i = 0; i < NUMBER_OF_INSTANCES; ++i) {
if (0 == i % 4) {
byte[] key = getStoragePK(i);
BinaryPK instance = session.find(BinaryPK.class, key);
verifyResult("update verify", instance, i, true);
}
}
}