/** * Access do not support millisecond well, truncate the millisecond from the timestamp */ public java.sql.Timestamp getTimestampFromServer(AbstractSession session, String sessionName) { if (getTimestampQuery() == null) { java.sql.Timestamp currentTime = new java.sql.Timestamp(System.currentTimeMillis()); currentTime.setNanos(0); return currentTime; } else { getTimestampQuery().setSessionName(sessionName); return (java.sql.Timestamp)session.executeQuery(getTimestampQuery()); } }
/** * Answer the timestamp from the server. */ public java.sql.Timestamp getTimestampFromServer(AbstractSession session, String sessionName) { if (getTimestampQuery() == null) { return new java.sql.Timestamp(System.currentTimeMillis()); } else { getTimestampQuery().setSessionName(sessionName); return (java.sql.Timestamp)session.executeQuery(getTimestampQuery()); } }
/** * Answer the timestamp from the server. */ public java.sql.Timestamp getTimestampFromServer(AbstractSession session, String sessionName) { if (getTimestampQuery() == null) { return new java.sql.Timestamp(System.currentTimeMillis()); } else { getTimestampQuery().setSessionName(sessionName); return (java.sql.Timestamp)session.executeQuery(getTimestampQuery()); } }
/** * Access do not support millisecond well, truncate the millisecond from the timestamp */ public java.sql.Timestamp getTimestampFromServer(AbstractSession session, String sessionName) { if (getTimestampQuery() == null) { java.sql.Timestamp currentTime = new java.sql.Timestamp(System.currentTimeMillis()); currentTime.setNanos(0); return currentTime; } else { getTimestampQuery().setSessionName(sessionName); return (java.sql.Timestamp)session.executeQuery(getTimestampQuery()); } }
/** * Access do not support millisecond well, truncate the millisecond from the timestamp */ public java.sql.Timestamp getTimestampFromServer(AbstractSession session, String sessionName) { if (getTimestampQuery() == null) { java.sql.Timestamp currentTime = new java.sql.Timestamp(System.currentTimeMillis()); currentTime.setNanos(0); return currentTime; } else { getTimestampQuery().setSessionName(sessionName); return (java.sql.Timestamp)session.executeQuery(getTimestampQuery()); } }
/** * Answer the timestamp from the server. */ @Override public java.sql.Timestamp getTimestampFromServer(AbstractSession session, String sessionName) { if (getTimestampQuery() == null) { return new java.sql.Timestamp(System.currentTimeMillis()); } else { getTimestampQuery().setSessionName(sessionName); return (java.sql.Timestamp)session.executeQuery(getTimestampQuery()); } }
/** * INTERNAL: * Answer the timestamp from the server. Convert TIMESTAMPTZ to Timestamp */ @Override public java.sql.Timestamp getTimestampFromServer(AbstractSession session, String sessionName) { if (getTimestampQuery() != null) { getTimestampQuery().setSessionName(sessionName); Object ob = session.executeQuery(getTimestampQuery()); return ((TIMESTAMPTZWrapper)ob).getTimestamp(); } return super.getTimestampFromServer(session, sessionName); }
/** * INTERNAL: * Answer the timestamp from the server. Convert TIMESTAMPTZ to Timestamp */ @Override public java.sql.Timestamp getTimestampFromServer(AbstractSession session, String sessionName) { if (getTimestampQuery() != null) { getTimestampQuery().setSessionName(sessionName); Object ob = session.executeQuery(getTimestampQuery()); return ((TIMESTAMPTZWrapper)ob).getTimestamp(); } return super.getTimestampFromServer(session, sessionName); }