01: /*
02: * Created on May 15, 2005
03: *
04: * TODO To change the template for this generated file go to
05: * Window - Preferences - Java - Code Style - Code Templates
06: */
07: package org.postgresql.core.types;
08:
09: /**
10: * @author davec
11: *
12: * TODO To change the template for this generated type comment go to
13: * Window - Preferences - Java - Code Style - Code Templates
14: */
15: public class PGUnknown implements PGType {
16:
17: /* (non-Javadoc)
18: * @see org.postgresql.types.PGType#castToServerType(int)
19: */
20: Object val;
21:
22: public PGUnknown(Object x) {
23: val = x;
24: }
25:
26: public static PGType castToServerType(Object val, int targetType) {
27: return new PGUnknown(val);
28: }
29:
30: public String toString() {
31: return val.toString();
32: }
33:
34: }
|