1 8 9 package collections.ship.marshal; 10 11 import com.sleepycat.bind.tuple.TupleInput; 12 import com.sleepycat.bind.tuple.TupleOutput; 13 14 23 public class SupplierKey implements MarshalledKey { 24 25 private String number; 26 27 public SupplierKey(String number) { 28 29 this.number = number; 30 } 31 32 public final String getNumber() { 33 34 return number; 35 } 36 37 public String toString() { 38 39 return "[SupplierKey: number=" + number + ']'; 40 } 41 42 44 SupplierKey() { 45 46 } 49 50 public void unmarshalKey(TupleInput keyInput) { 51 52 this.number = keyInput.readString(); 53 } 54 55 public void marshalKey(TupleOutput keyOutput) { 56 57 keyOutput.writeString(this.number); 58 } 59 } 60 | Popular Tags |