Update this DBService's Tenant with the given one. This is called when the tenant's
definition has been updated in an upward-compatible way, such as adding or removing
users.

@param updatedTenant Updated {@link Tenant}.
194163
public void updateTenant(Tenant updatedTenant) {
        assert m_tenant.getName().equals(updatedTenant.getName());
        m_tenant = updatedTenant;
    }
726068
public void updateUser(User user){
        ProtocolHeader header = new ProtocolHeader();
        header.setType(ProtocolType.UpdateUser);

        UpdateUserProtocol p = new UpdateUserProtocol(user);

        connection.submitRequest(header, p, null);
    }
764800
private void migrateTenantDefinition(String keyspace) {
        TenantDefinition tempTenantDef = new TenantDefinition();
        tempTenantDef.setName(keyspace);
        Tenant migratingTenant = new Tenant(tempTenantDef);
        DColumn col = DBService.instance(migratingTenant).getColumn("Applications", "_tenant", "Definition");
        if (col == null) {
            return;
        }
        m_logger.info("Migrating tenant definition from keyspace {}", keyspace);
        TenantDefinition migratingTenantDef = new TenantDefinition();
        try {
            migratingTenantDef.parse(UNode.parseJSON(col.getValue()));
        } catch (Exception e) {
            m_logger.warn("Couldn't parse tenant definition; skipping migration of keyspace: " + keyspace, e);
            return;
        }
        storeTenantDefinition(migratingTenantDef);
        DBTransaction dbTran = new DBTransaction(migratingTenant);
        dbTran.deleteRow("Applications", "_tenant");
        DBService.instance(migratingTenant).commit(dbTran);
    }
249574
def update
      @sub_tenant = MnoEnterprise::SubTenant.find(params[:id])

      if @sub_tenant.update(sub_tenant_params)
        @sub_tenant_clients = @sub_tenant.clients
        @sub_tenant_account_managers = @sub_tenant.account_managers
        render :show
      else
        render json: @sub_tenant.errors, status: :bad_request
      end
    end
934097
def set_tenant(self, tenant, include_public=True):
        
        self.set_schema(tenant.schema_name, include_public)
        self.tenant = tenant
296522
public void addPropertyChangeListener(PropertyChangeListener listener) {
        if ( propertyChangeSupport == null ) {
            propertyChangeSupport = new PropertyChangeSupport(this);
        }
        propertyChangeSupport.addPropertyChangeListener(listener);
    }
62237
private void updateDefault(final Instance _inst,
                               final String _value)
    {
        try {
            final Update update = new Update(_inst);
            update.add("Default", _value);
            update.execute();
        } catch (final EFapsException e) {
            DBPropertiesUpdate.LOG.error("updateDefault(String, String)", e);
        }
    }
414751
public void setOwner(ListenerOwner owner)
    {
        super.setOwner(owner);
        if (owner != null)
        {
            if (m_fldTarget != null)
                if (m_fldTarget.getRecord() != this.getOwner().getRecord())
                    m_fldTarget.addListener(new FieldRemoveBOnCloseHandler(this));      // Not same file, if target file closes, remove this listener!
            if (this.getFieldTarget() != null)
                if (!(this.getFieldTarget().isVirtual()) && (!(this.getFieldTarget().getRecord() instanceof ScreenRecord)))
                    if (this.respondsToMode(DBConstants.READ_MOVE) == true)
                        if (this.respondsToMode(DBConstants.INIT_MOVE) == true)
            {   // This is a performance issue if the field I'm updating is connected to a file
                this.setRespondsToMode(DBConstants.READ_MOVE, false);   // Usually, you only want to recompute on screen change
                this.setRespondsToMode(DBConstants.INIT_MOVE, false);   // Usually, you only want to recompute on screen change
            }
        }
    }
1228134
@Override
    public void update(Number obj) {
        if (enable == false) {
            return;
        }

        if (intervalCheck.check()) {
            flush();
        }
        synchronized (this) {
            unflushed = updater.update(obj, unflushed);
        }
    }
166991
public void deleteTenantDB(Tenant tenant) {
        synchronized (m_tenantDBMap) {
            DBService dbservice = m_tenantDBMap.remove(tenant.getName());
            if (dbservice != null) {
                m_logger.info("Stopping DBService for deleted tenant: {}", tenant.getName());
                dbservice.stop();
            }
        }
    }
184119
public void updateUser(UserUpdate update) {
		getResourceFactory().getApiResource("/user/")
				.entity(update, MediaType.APPLICATION_JSON_TYPE).put();
	}
1258048
public void updateServiceUri(String serviceName, String providerId,
            String uri) {
        getServiceDirectoryClient().updateServiceInstanceUri(serviceName, providerId, uri);
    }
62452
public void setOwner(ListenerOwner owner)
    {
        super.setOwner(owner);
        if (m_recordToUpdate == null)
            m_recordToUpdate = this.getOwner();   // Defaults to this file
        if (owner != null) if (this.getOwner() != m_recordToUpdate)
            m_recordToUpdate.addListener(new FileRemoveBOnCloseHandler(this));
        if (m_recordToUpdate != null)
            m_recordToUpdate.setOpenMode((m_recordToUpdate.getOpenMode() | DBConstants.OPEN_LOCK_ON_CHANGE_STRATEGY) & ~(DBConstants.OPEN_READ_ONLY | DBConstants.OPEN_APPEND_ONLY));   // Lock the record if any changes
        if (owner != null)
            if (this.getOwner() == m_recordToUpdate)
                if (this.getOwner().getListener() != this)  // Prevents endless loop (listener is already the first in the list)
        {   // This is special weird logic - This must be the first in the listener list
            this.getOwner().removeListener(this, false);
            super.setOwner(owner);  // Set it back
            this.setNextListener(this.getOwner().getListener());
            this.getOwner().setListener(this);  // This MUST be the first listener on the list.
        }
    }
466234
private void updateHostingEntityIfRequired() {
		if ( hostingEntity != null && hostingEntityRequiresReadAfterUpdate() ) {
			OgmEntityPersister entityPersister = getHostingEntityPersister();

			if ( GridDialects.hasFacet( gridDialect, GroupingByEntityDialect.class ) ) {
				( (GroupingByEntityDialect) gridDialect ).flushPendingOperations( getAssociationKey().getEntityKey(),
						entityPersister.getTupleContext( session ) );
			}

			entityPersister.processUpdateGeneratedProperties(
					entityPersister.getIdentifier( hostingEntity, session ),
					hostingEntity,
					new Object[entityPersister.getPropertyNames().length],
					session
			);
		}
	}
543620
@Override
    @Transactional
    public ServiceManagementRecord updateServiceManagementRecord(ServiceManagementRecord serviceManagementRecord) {
        requireNotDisposed();
        requireArgument(serviceManagementRecord != null, "Cannot update a null sub system.");

        EntityManager em = emf.get();
        ServiceManagementRecord result = ServiceManagementRecord.updateServiceManagementRecord(em, serviceManagementRecord);

        em.flush();
        _logger.debug("Updated service management record {}.", result);
        _auditService.createAudit("Updated service management record : {0}", result, result);
        return result;
    }
1347248
public int update(Entity record, Entity where) throws SQLException {
		Connection conn = null;
		try {
			conn = this.getConnection();
			return runner.update(conn, record, where);
		} catch (SQLException e) {
			throw e;
		} finally {
			this.closeConnection(conn);
		}
	}
225401
public synchronized void registerUpdater(final Updater updater) {
    if (!updaters.containsKey(updater)) {
      updaters.put(updater, Boolean.TRUE);
    }
  }