private void updateDynamicRecords(List<DynamicRecord> records) { for (DynamicRecord valueRecord : records) { if (valueRecord.getType() == PropertyType.STRING.intValue()) { stringPropertyStore.updateRecord(valueRecord); } else if (valueRecord.getType() == PropertyType.ARRAY.intValue()) { arrayPropertyStore.updateRecord(valueRecord); } else { throw new InvalidRecordException("Unknown dynamic record" + valueRecord); } } }
private Collection<DynamicRecord> storeArray(Object array) { Collection<DynamicRecord> records = arrayStore.allocateRecords(arrayStore.nextBlockId(), array); for (DynamicRecord record : records) arrayStore.updateRecord(record); return records; }