Reset the sequence.

@param initialValue first value produced by sequence
963270
public void reset(int initialValue) throws FetchException, PersistException {
        synchronized (mStoredSequence) {
            Transaction txn = mRepository.enterTopTransaction(null);
            txn.setForUpdate(true);
            try {
                boolean doUpdate = mStoredSequence.tryLoad();
                mStoredSequence.setInitialValue(initialValue);
                // Start as small as possible to allow signed long comparisons to work.
                mStoredSequence.setNextValue(Long.MIN_VALUE);
                if (doUpdate) {
                    mStoredSequence.update();
                } else {
                    mStoredSequence.insert();
                }
                txn.commit();
                mHasReservedValues = false;
            } finally {
                txn.exit();
            }
        }
    }
1073761
public void reset() {
        iZone = iDefaultZone;
        iOffset = null;
        iPivotYear = iDefaultPivotYear;
        iSavedFieldsCount = 0;
        iSavedFieldsShared = false;
        iSavedState = null;
    }
114529
private synchronized void initCounterState(Long currentValue) {
      if (weakCounter == null) {
         weakCounter = currentValue == null ?
               newCounterValue(configuration) :
               newCounterValue(currentValue, configuration);
      }
   }
1132902
protected final void setDefaultValue() {

        m_start = null;
        m_end = null;
        m_patterntype = PatternType.NONE;
        m_dayOfMonth = 0;
        m_exceptions.clear();
        m_individualDates.clear();
        m_interval = 0;
        m_isEveryWorkingDay = false;
        m_isWholeDay = false;
        m_month = Month.JANUARY;
        m_seriesEndDate = null;
        m_seriesOccurrences = 0;
        m_weekDays.clear();
        m_weeksOfMonth.clear();
        m_endType = EndType.SINGLE;
        m_parentSeriesId = null;
    }
540176
public void reset() {
		Double[] init = null;
		if(resetIndex>-1) init = Arrays.copyOfRange(insertSeq.toArray(new Double[resetIndex+1]), 0, resetIndex);
		insertSeq.clear();
		insertStat.clear();
		observationCount = 0.0;
		average = 0.0;
		minimum = Double.MAX_VALUE;
		maximum = Double.MIN_VALUE;
		expectation = null;
		moments.clear();
		if(init != null)
			for(Double value: init) {
				addValue(value);
			}
	}
768604
public M sequence(String sequenceKey, Long initialValue, Boolean increment) {
        SequenceConfig cfg = defaultSequenceConfig();
        if (null != initialValue) {
            cfg.setInitialValue(initialValue);
        }
        if (null != increment) {
            cfg.setDecrement(!increment);
        }
        getSequence(sequenceKey, cfg);
        return THIS();
    }
1244521
public static void reset()
        throws StartupException
    {
        try {
            final InitialContext initCtx = new InitialContext();
            final javax.naming.Context envCtx = (javax.naming.Context) initCtx.lookup("java:comp/env");
            Context.DBTYPE = (AbstractDatabase<?>) envCtx.lookup(INamingBinds.RESOURCE_DBTYPE);
            Context.DATASOURCE = (DataSource) envCtx.lookup(INamingBinds.RESOURCE_DATASOURCE);
            Context.TRANSMANAG = (TransactionManager) envCtx.lookup(INamingBinds.RESOURCE_TRANSMANAG);
            try {
                Context.TRANSMANAGTIMEOUT = 0;
                final Map<?, ?> props = (Map<?, ?>) envCtx.lookup(INamingBinds.RESOURCE_CONFIGPROPERTIES);
                if (props != null) {
                    final String transactionTimeoutString = (String) props.get(IeFapsProperties.TRANSACTIONTIMEOUT);
                    if (transactionTimeoutString != null) {
                        Context.TRANSMANAGTIMEOUT = Integer.parseInt(transactionTimeoutString);
                    }
                }
            } catch (final NamingException e) {
                // this is actual no error, so nothing is presented
                Context.TRANSMANAGTIMEOUT = 0;
            }
        } catch (final NamingException e) {
            throw new StartupException("eFaps context could not be initialized", e);
        }
    }
124799
public function Reset()
	{
		parent::Reset();
		$this->accept = false;
		$this->sequentialPosition = null;
		$this->first = false;
	}
808468
public void reset() {
		this.errorType = ErrorType.NONE;
		this.message = null;
		this.columnName = null;
		this.columnValue = null;
		this.columnType = null;
		this.line = null;
		this.lineNumber = 0;
		this.linePos = 0;
	}
71378
public void reset() {
        firstPointer = null;
        nextLoadPointer = null;
        nextUnloadPointer = null;
        firstCutpointPointer = null;
        mode = MODE_NORMAL;
    }
816794
public function setInitialValue($initialValue)
    {
        if (!is_int($initialValue) || ($initialValue <= 0)) {
            throw SchemaException::invalidSequenceInitialValue($this->getName());
        }

        $this->initialValue = $initialValue;
    }
28349
protected void initNewTune() {
		m_brknRthmDotsCorrection = 0;
		m_slursDefinitionStack.clear();
		m_lastParsedNote = null;
		m_notesStartingTies.clear();
		m_defaultNoteLength = Note.EIGHTH;
		m_timeSignature = null;
		m_graceNotes.clear();
		m_graceNotesType = GracingType.APPOGGIATURA;
		m_tune = new AbcTune();
		m_music = m_tune.getMusic();
	}
259129
void resetDefaultsFlag() {

        hasDefaultValues = false;

        for (int i = 0; i < colDefaults.length; i++) {
            hasDefaultValues = hasDefaultValues || colDefaults[i] != null;
        }
    }
632174
private T setInitialValue() {
        T value = initialValue();
        Thread t = Thread.currentThread();
        ThreadLocalMap map = getMap(t);
        if (map != null)
            map.set(this, value);
        else
            createMap(t, value);
        return value;
    }
253258
private void reset() {
    size = 0;
    qualifier_index = 0;
    value_index = 0;
    base_time = Long.MIN_VALUE;
    last_timestamp = Long.MIN_VALUE;
  }
1248082
public void setCurrentValue(final float currentValue) {
        this.currentValue = currentValue;
        initialValue = currentValue;
        targetValue = currentValue;
        transitionInProgress = false;
    }
1238319
public void reset() {
        resetSubmitted();
        resetSort();
        resetInvalidUpdates();
        localValues.clear();
        for (final SheetColumn c : getColumns()) {
            c.setFilterValue(null);
        }
    }