Examples of update()


Examples of org.lealone.engine.Database.update()

        }
        session.getUser().checkAdmin();
        db.renameDatabaseObject(session, oldSchema, newSchemaName);
        ArrayList<SchemaObject> all = db.getAllSchemaObjects();
        for (SchemaObject schemaObject : all) {
            db.update(session, schemaObject);
        }
        return 0;
    }

    public int getType() {
View Full Code Here

Examples of org.libreplan.business.planner.entities.TaskPositionConstraint.update()

                .getSelectedItemApi().getValue();
        IntraDayDate inputDate = type.isAssociatedDateRequired() ? IntraDayDate
                .startOfDay(LocalDate.fromDateFields(startConstraintDate
                        .getValue())) : null;
        if (taskConstraint.isValid(type, inputDate)) {
            taskConstraint.update(type, inputDate);
            //at this point we could call currentContext.recalculatePosition(currentTaskElement)
            //to trigger the scheduling algorithm, but we don't do it because
            //the ResourceAllocationController, which is attached to the other
            //tab of the same window, will do it anyway.
            return true;
View Full Code Here

Examples of org.lightview.presenter.ConnectionPoolBindings.update()

        for (ConnectionPool connectionPool : connectionPools) {
            String jndiName = connectionPool.getJndiName();
            ConnectionPoolBindings bindings = ConnectionPoolBindings.from(connectionPool);
            ConnectionPoolBindings poolBindings = this.pools.get(jndiName);
            if (poolBindings != null) {
                poolBindings.update(connectionPool);
            } else {
                this.pools.put(jndiName, bindings);
            }
        }
    }
View Full Code Here

Examples of org.lilyproject.repository.api.LTable.update()

            throws AvroRemoteException {
        try {
            AuthorizationContextHolder.setCurrentContext(converter.convert(authzContext));
            LRepository repository = repositoryManager.getRepository(repositoryName);
            LTable table = repository.getTable(tableName);
            return converter.convert(table.update(converter.convertRecord(record, repository), updateVersion,
                    useLatestRecordType, converter.convertFromAvro(conditions, repository)), repository);
        } catch (RepositoryException e) {
            throw converter.convert(e);
        } catch (InterruptedException e) {
            throw converter.convert(e);
View Full Code Here

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

        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());
        assertNull(readRecordType.getFieldTypeEntry(fieldType1.getId()));
    }
View Full Code Here

Examples of org.lilyproject.repository.api.Repository.update()

        record = repository.read(record.getId());
        assertEquals("foo-create-hook", record.getField(fieldName));

        record.setField(fieldName, "bar");
        record = repository.update(record);

        assertEquals("bar-update-hook", record.getField(fieldName));

        record = repository.read(record.getId());
        assertEquals("bar-update-hook", record.getField(fieldName));
View Full Code Here

Examples of org.locationtech.udig.catalog.document.IAttachmentSource.update()

                    if (source instanceof IDocumentSource) {
                        final IDocumentSource resourceDocSource = (IDocumentSource) source;
                        isUpdated = resourceDocSource.update(doc, info, monitor);
                    } else if (source instanceof IAttachmentSource) {
                        final IAttachmentSource featureDocSource = (IAttachmentSource) source;
                        isUpdated = featureDocSource.update(feature, doc, info, monitor);
                    }             
                    editDocumentCallback(isUpdated);
                    return Status.OK_STATUS;
                }
            };
View Full Code Here

Examples of org.locationtech.udig.catalog.document.IDocumentSource.update()

                protected IStatus run(IProgressMonitor monitor) {
                    boolean isUpdated = false;
                    final DocumentInfo info = docDialog.getDocInfo();
                    if (source instanceof IDocumentSource) {
                        final IDocumentSource resourceDocSource = (IDocumentSource) source;
                        isUpdated = resourceDocSource.update(doc, info, monitor);
                    } else if (source instanceof IAttachmentSource) {
                        final IAttachmentSource featureDocSource = (IAttachmentSource) source;
                        isUpdated = featureDocSource.update(feature, doc, info, monitor);
                    }             
                    editDocumentCallback(isUpdated);
View Full Code Here

Examples of org.lwjgl.test.opengles.util.Geometry.update()

      imb.glNormal3f(-cos(angle), -sin(angle), 0.0f);
      imb.glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5f);
    }

    gear.update(imb.getBuffer());
    return gear;
  }

  private class Gear {

View Full Code Here

Examples of org.mifosplatform.accounting.closure.domain.GLClosure.update()

        // is the glClosure valid
        final GLClosure glClosure = this.glClosureRepository.findOne(glClosureId);
        if (glClosure == null) { throw new GLClosureNotFoundException(glClosureId); }

        final Map<String, Object> changesOnly = glClosure.update(command);

        if (!changesOnly.isEmpty()) {
            this.glClosureRepository.saveAndFlush(glClosure);
        }
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.