long reset(boolean executeViaDistributed) throws ODatabaseException {
    long retVal;
    if (executeViaDistributed) {
      try {
        retVal = sendSequenceActionOverCluster(OSequenceAction.RESET, null);
      } catch (InterruptedException | ExecutionException exc) {
        OLogManager.instance().error(this, exc.getMessage(), exc, (Object[]) null);
        throw new ODatabaseException(exc.getMessage());
      }
    } else {
      retVal = resetWork();
    }
    return retVal;
  }
long reset(boolean executeViaDistributed) throws ODatabaseException {
    long retVal;
    if (executeViaDistributed) {
      try {
        retVal = sendSequenceActionOverCluster(OSequenceAction.RESET, null);
      } catch (InterruptedException | ExecutionException exc) {
        OLogManager.instance().error(this, exc.getMessage(), exc, (Object[]) null);
        throw new ODatabaseException(exc.getMessage());
      }
    } else {
      retVal = resetWork();
    }
    return retVal;
  }
long reset ( boolean executeViaDistributed ) throws ODatabaseException { long retVal ; if ( executeViaDistributed ) { try { retVal = sendSequenceActionOverCluster ( OSequenceAction . RESET , null ) ; } catch ( InterruptedException | ExecutionException exc ) { OLogManager . instance ( ) . error ( this , exc . getMessage ( ) , exc , ( Object [ ] ) null ) ; throw new ODatabaseException ( exc . getMessage ( ) ) ; } } else { retVal = resetWork ( ) ; } return retVal ; }
/*
Resets the sequence value to it's initialized value.
/ * Resets the sequence value to it s initialized value .