1 23 24 26 27 package sample; 28 29 import javax.resource.cci.*; 30 import java.io.Serializable ; 31 import java.io.IOException ; 32 import java.io.InputStream ; 33 import java.io.OutputStream ; 34 35 36 public class EmployeeRecordImpl extends RecordImpl 37 implements EmployeeRecord, Serializable , Streamable { 38 39 private String name; 40 private String id; 41 42 public 43 EmployeeRecordImpl() { 44 } 45 46 public void setName(String name) { 48 this.name = name; 49 } 50 51 public void setId(String id) { 53 this.id = id; 54 } 55 56 public String getName() { 58 return name; 59 } 60 61 public String getId() { 63 return id; 64 } 65 66 public 68 void read(InputStream istream) throws IOException { 69 super.read(istream); 70 } 72 73 74 public 76 void write(OutputStream ostream) throws IOException { 77 super.write(ostream); 78 } 80 } 81 | Popular Tags |