1 2 12 package com.versant.core.common; 13 14 import com.versant.core.util.OIDObjectOutput; 15 import com.versant.core.util.OIDObjectInput; 16 17 import java.io.IOException ; 18 19 23 public class MapDiff extends CollectionDiff { 24 25 public MapDiff() { 26 } 27 28 public MapDiff(VersantFieldMetaData fmd) { 29 super(fmd); 30 } 31 32 35 public Object [] deletedKeys; 36 37 42 public Object [] insertedKeys; 43 44 public void writeExternal(OIDObjectOutput out) throws IOException { 45 super.writeExternal(out); 46 write(out, fmd.getKeyTypeCode(), fmd.isKeyTypePC(), deletedKeys); 47 write(out, fmd.getKeyTypeCode(), fmd.isKeyTypePC(), insertedKeys); 48 } 49 50 public void readExternal(OIDObjectInput in) throws IOException , 51 ClassNotFoundException { 52 super.readExternal(in); 53 deletedKeys = read(in, fmd.getKeyTypeCode(), fmd.isKeyTypePC()); 54 insertedKeys = read(in, fmd.getKeyTypeCode(), fmd.isKeyTypePC()); 55 } 56 57 } 58 | Popular Tags |