/** * 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. */ @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()); } }
/** * 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()); } }