public Timestamp asTimestamp()

	{
		try {
			if (isNull()) {
				return null;
			} else if (isTimestamp()) {
				return (Timestamp) value;
			}

			if (isTime()) {
				Calendar cal = Calendar.getInstance();
				cal.setTime((Time) value);

				return new Timestamp(cal.getTime().getTime());
			} else if (isUtilDate()) {
				return new Timestamp(((java.util.Date) value).getTime());
			} else if (isString()) {
				return Timestamp.valueOf((String) value);
			} else {
				return Timestamp.valueOf(asString());
			}
		} catch (IllegalArgumentException a) {
			throw new SwingObjectRunException( a, ErrorSeverity.SEVERE, FrameFactory.class);
		} catch (Exception b) {
			throw new SwingObjectRunException( b, ErrorSeverity.SEVERE, FrameFactory.class);
		}
	}