1 23 24 package sample; 25 26 import javax.resource.cci.*; 27 import java.io.Serializable ; 28 import java.io.IOException ; 29 import java.io.InputStream ; 30 import java.io.OutputStream ; 31 32 33 public class CustomerRecordImpl extends RecordImpl 34 implements CustomerRecord, Serializable , Streamable { 35 36 private String custName; 37 private String custAddress; 38 private String custId; 39 40 public 41 CustomerRecordImpl() { 42 } 43 44 public void setName(String name) { 46 this.custName = name; 47 } 48 49 public void setId(String custId) { 51 this.custId = custId; 52 } 53 54 public void setAddress(String address) { 56 this.custAddress = address; 57 } 58 59 public String getName() { 61 return custName; 62 } 63 64 public String getId() { 66 return custId; 67 } 68 69 public String getAddress() { 71 return custAddress; 72 } 73 74 public 76 void read(InputStream istream) throws IOException { 77 super.read(istream); 78 } 80 81 82 public 84 void write(OutputStream ostream) throws IOException { 85 super.write(ostream); 86 } 88 } 89 | Popular Tags |