/** * Adds an OCC version mapping for the record field {@code name}. The record field will contain * the current version number of the record. * * <p>Using this mapping enables optimistic concurrency (OCC), where the underlying {@link * RandomAccessDataset} will only persist changes to a record if it has not changed by another * process. * * <p>The record field must be an int or a long. * * <p>Optimistic concurrency (OCC) cannot be used in combination with counters. * * @param name The name of a record field to use for an OCC version * @return This Builder for method chaining */ public Builder occ(String name) { addField(FieldMapping.occ(name)); return this; }