public ReplDBMSHeader lastCommitSeqno() throws ReplicatorException {
  try {
    ReplDBMSHeaderData header=null;
    ResultSet res=null;
    try {
      lastSeqnoQuery.setInt(1,taskId);
      res=lastSeqnoQuery.executeQuery();
      if (res.next()) {
        header=headerFromResult(res);
      }
    }
  finally {
      connectionManager.close(res);
    }
    return header;
  }
 catch (  SQLException e) {
    throw new ReplicatorException("Unable to retrieve last commit seqno: " + e.getMessage(),e);
  }
}

public ReplDBMSHeader lastCommitSeqno ( ) throws ReplicatorException { try { ReplDBMSHeaderData header = null ; ResultSet res = null ; try { lastSeqnoQuery . setInt ( 1 , taskId ) ; res = lastSeqnoQuery . executeQuery ( ) ; if ( res . next ( ) ) { header = headerFromResult ( res ) ; } } finally { connectionManager . close ( res ) ; } return header ; } catch ( SQLException e ) { throw new ReplicatorException ( "Unable to retrieve last commit seqno: " + e . getMessage ( ) , e ) ; } }
fetches header data for last committed transaction for a particular channel . this is a client call to get the restart position .
