public Timestamp decodeTimestamp(byte[] byte_int){   if (byte_int.length != 8) throw new IllegalArgumentException("Bad parameter to decode");     byte[] date = new byte[4]; byte[] time = new byte[4];  System.arraycopy(byte_int, 0, date, 0, 4); System.arraycopy(byte_int, 4, time, 0, 4);  datetime d = new datetime(date,time); return d.toTimestamp();
public java.sql.Timestamp decodeTimestamp(Timestamp value, Calendar cal) { return decodeTimestamp(value, cal, false);
    public Timestamp decodeTimestamp(byte[] byte_int){                if (byte_int.length != 8)            throw new IllegalArgumentException("Bad parameter to decode");        // we have to extract time and date correctly        // see encodeTimestamp(...) for explanations        byte[] date = new byte[4];        byte[] time = new byte[4];                System.arraycopy(byte_int, 0, date, 0, 4);        System.arraycopy(byte_int, 4, time, 0, 4);        datetime d = new datetime(date,time);        return d.toTimestamp();    }