Timestamp tstamp = new Timestamp(((java.util.Date) obj).getTime());
Timestamp tstamp = null;    if ( obj instanceof Timestamp ) { tstamp = (Timestamp) obj; } else if (obj instanceof java.util.Date) { tstamp = new Timestamp(((java.util.Date) obj).getTime()); } else { throw new AssertionError ("Not a Date: " + ( obj == null ? "null" : obj.getClass().getName())); }
    public void bind(PreparedStatement ps, int index, Object obj, int type)        throws SQLException {        Timestamp tstamp = new Timestamp(((java.util.Date) obj).getTime());        ps.setTimestamp(index, tstamp);    }