//Result
package myudo;
import jet.JRStopEngineException;
import jet.connect.Record;
import jet.connect.DbValue;
import jet.util.*;
import jet.datastream.*;
import java.io.*;
public class MySumFldRst extends MyDbFldRst {
double value;
public MySumFldRst() {
}
// make the text will be displayed.
String getText() {
return "" + value;
}
/**
* Read the data from DataInput.
* UDO can override this method to restore its own data.
* @throws JRStopEngineException
* */
protected void readProperties(DataInput in, DSDataStreamable ds)
throws IOException, JRStopEngineException {
super.readProperties(in, ds);
value = in.readDouble();
}
/**
* Write the data to DataInput.
* UDO can override this method to save its own data.
* */
protected void writeProperties(DataOutput out) throws IOException {
super.writeProperties(out);
out.writeDouble(value);
}
}
|