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 public 33 class RecordImpl implements Record, Serializable , Streamable { 34 35 String name; 36 String desc; 37 38 public RecordImpl() { 39 } 40 41 public 43 String getRecordName() { 44 return name; 45 } 46 47 public 49 void setRecordName(String name) { 50 this.name = name; 51 } 52 53 public 55 void setRecordShortDescription(String description) { 56 this.desc = description; 57 } 58 59 60 public 62 String getRecordShortDescription() { 63 return desc; 64 } 65 66 67 public 69 boolean equals(Object other) { 70 return true; 72 } 73 74 public 76 void read(InputStream istream) throws IOException { 77 } 79 80 81 public 83 void write(OutputStream ostream) throws IOException { 84 } 86 87 public Object clone() throws CloneNotSupportedException { 88 return this; 89 } 90 } 91 | Popular Tags |