01: package liquibase.database.sql;
02:
03: public class ComputedNumericValue extends Number {
04:
05: private String value;
06:
07: public ComputedNumericValue(String value) {
08: this .value = value;
09: }
10:
11: public String getValue() {
12: return value;
13: }
14:
15: public String toString() {
16: return getValue();
17: }
18:
19: public int intValue() {
20: throw new RuntimeException("Value computed by database");
21: }
22:
23: public long longValue() {
24: throw new RuntimeException("Value computed by database");
25: }
26:
27: public float floatValue() {
28: throw new RuntimeException("Value computed by database");
29: }
30:
31: public double doubleValue() {
32: throw new RuntimeException("Value computed by database");
33: }
34: }
|