01: package myapp;
02:
03: import org.exolab.castor.jdo.TimeStampable;
04:
05: public class Computer extends Product implements TimeStampable {
06:
07: private String _cpu;
08:
09: private long _timeStamp;
10:
11: public String getCpu() {
12: return _cpu;
13: }
14:
15: public void setCpu(String cpu) {
16: _cpu = cpu;
17: }
18:
19: public void jdoSetTimeStamp(long timeStamp) {
20: _timeStamp = timeStamp;
21: }
22:
23: public long jdoGetTimeStamp() {
24: return _timeStamp;
25: }
26:
27: public String toString() {
28: return "<id: " + getId() + " name: " + getName() + " price: "
29: + getPrice() + " cpu: " + _cpu + ">";
30: }
31:
32: }
|