Examples of reset()


Examples of org.lealone.result.ResultInterface.reset()

        if (addRowToResultTarget && target != null) {
            while (result.next()) {
                target.addRow(result.currentRow());
            }
            result.reset();
        }
        return result;
    }

    @Override
View Full Code Here

Examples of org.lealone.result.RowList.reset()

            // the cached row is already updated - we need the old values
            table.updateRows(this, session, rows);
            if (table.fireRow()) {
                rows.invalidateCache();
                for (rows.reset(); rows.hasNext();) {
                    Row o = rows.next();
                    Row n = rows.next();
                    table.fireAfterRow(session, o, n, false);
                }
            }
View Full Code Here

Examples of org.lealone.store.Data.reset()

        } else {
            if (listIndex >= list.size()) {
                list.clear();
                listIndex = 0;
                Data buff = rowBuff;
                buff.reset();
                int min = Constants.FILE_BLOCK_SIZE;
                file.readFully(buff.getBytes(), 0, min);
                int len = buff.readInt() * Constants.FILE_BLOCK_SIZE;
                buff.checkCapacity(len);
                if (len - min > 0) {
View Full Code Here

Examples of org.libreplan.business.orders.entities.SumChargedEffort.reset()

        }
    }

    private void resetSumChargedEffort(OrderElement orderElement) {
        SumChargedEffort sumChargedEffort = getByOrderElement(orderElement);
        sumChargedEffort.reset();

        for (OrderElement each : orderElement.getChildren()) {
            resetSumChargedEffort(each);
        }
    }
View Full Code Here

Examples of org.libreplan.business.orders.entities.SumExpenses.reset()

    private void resetSumExpenses(OrderElement orderElement) {
        SumExpenses sumExpenses = getByOrderElement(orderElement);
        if (sumExpenses == null) {
            sumExpenses = SumExpenses.create(orderElement);
        }
        sumExpenses.reset();

        for (OrderElement each : orderElement.getChildren()) {
            resetSumExpenses(each);
        }
    }
View Full Code Here

Examples of org.lilyproject.repository.api.RecordBuilder.reset()

                .field(fieldType2.getName(), 123)
                .field(fieldType3.getName(), true)
                .create();
        assertEquals(record, repository.read(record.getId()));

        builder.reset();
        Record record2 = builder.recordType(recordType2.getName())
                .field(fieldType4.getName(), 999)
                .field(fieldType5.getName(), true)
                .field(fieldType6.getName(), "xyz")
                .create();
View Full Code Here

Examples of org.lilyproject.repository.api.RecordTypeBuilder.reset()

        RecordType readRecordType = typeManager.getRecordTypeByName(rtName, null);
        assertEquals(recordType, readRecordType);
        assertFalse(readRecordType.getFieldTypeEntry(fieldType1.getId()).isMandatory());
        assertTrue(readRecordType.getFieldTypeEntry(fieldType2.getId()).isMandatory());

        builder.reset();
        builder.id(recordType.getId());
        recordType = builder.update();
        readRecordType = typeManager.getRecordTypeByName(rtName, null);
        assertEquals(recordType, readRecordType);
        assertEquals(Long.valueOf(2), readRecordType.getVersion());
View Full Code Here

Examples of org.locationtech.udig.project.internal.render.RendererCreator.reset()

        layers.clear();
        layers.addAll(map.getLayersInternal());
        layers.add(new SelectionLayer(map.getLayersInternal().get(0)));
        layers.add(new SelectionLayer(map.getLayersInternal().get(1)));
       
        creator.reset();
       
        renderer.getContext().addContexts(creator.getConfiguration());
       
        Collection<RenderExecutor> executors = renderer.getRenderExecutors();
       
View Full Code Here

Examples of org.locationtech.udig.project.internal.render.impl.RendererCreatorImpl.reset()

        LayerImpl layer = MapTests.createLayer(null, new RendererCreatorTestObjForSingleRenderer(), null);
       
        RendererCreatorImpl creator = MapTests.createRendererCreator(layer.getMapInternal());
        creator.getLayers().add(layer);
       
        creator.reset();
        RenderContext context = creator.getConfiguration().iterator().next();
        Renderer renderer = creator.getRenderer(context);
        assertTrue( renderer instanceof SingleRenderer );
       
        // now test case where there is no good renderer
View Full Code Here

Examples of org.mctourney.autoreferee.AutoRefPlayer.reset()

    if (!match.inStartRegion(event.getTo()))
    {
      if (match.getCurrentState().inProgress())
      {
        // if they are leaving the start region, clear everything
        if (match.inStartRegion(event.getFrom()) && !apl.isActive()) apl.reset();

        // one way or another, the player is now active
        apl.setActive();
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.