Updates the object state priority to provided value.

@param mixed $stateId
@param int $priority
170281
public function updateObjectStatePriority($stateId, $priority)
    {
        $query = $this->dbHandler->createUpdateQuery();
        $query->update(
            $this->dbHandler->quoteTable('ezcobj_state')
        )->set(
            $this->dbHandler->quoteColumn('priority'),
            $query->bindValue($priority, null, \PDO::PARAM_INT)
        )->where(
            $query->expr->eq(
                $this->dbHandler->quoteColumn('id'),
                $query->bindValue($stateId, null, \PDO::PARAM_INT)
            )
        );

        $query->prepare()->execute();
    }
61465
public function insert($value, $priority)
    {
        if (is_int($priority)) {
            $priority = [$priority, $this->counter--];
        }
        parent::insert($value, $priority);
    }
113540
public function defer($runLevel, $priority = 10)
    {
        $this->deferred = true;
        $this->runLevel = $runLevel;
        $this->priority = $priority;
    }
1331977
public function setState(\Core\Entity\State $state = null)
    {
        $this->state = $state;

        return $this;
    }
1320653
public void setState(S state){
		Integer id = definition.getStateId(state);
		currentStateId.set(id);
	}
538948
function setPriority( $value, $params=FALSE  ) {
    $this->priority['value']  = $value;
    $this->priority['params'] = $this->_setParams( $params );
  }
1084488
public function jumpToState($state)
    {
        if (!$state instanceof StateInterface) {
            $state = $this->getState($state);
        }

        if (!$this->canJumpToState($state)) {
            throw new StateException(sprintf('Can not jump from state "%s" to "%s".',$this->currentState->getName(), $state->getName()));
        }

        $this->object->setFiniteState($state->getName());
        $this->currentState = $state;
    }
1243852
private void pushState(boolean isStatic) {
        stateStack.add(new StateStackElement());
        currentScope = new VariableScope(currentScope);
        currentScope.setInStaticContext(isStatic);
    }
1055670
public function insert($datum, $priority) {
        if (is_int($priority)) {
            $priority = [$priority, $this->queueOrder--];
        }

        parent::insert($datum, $priority);
    }
755335
def update(self, state, tnow):
        ''''''
        self.state = state
        self.update_time = tnow
1340969
function updatePlayerState($playerLogin, $matchId, $state)
	{
		$this->db->execute(
			'UPDATE Players SET state = %d WHERE login = %s AND matchId = %d',
			$state,
			$this->db->quote($playerLogin),
			$matchId
		);
	}
270362
public function update($stateId, InputStruct $input)
    {
        $objectState = $this->objectStateMapper->createObjectStateFromInputStruct($input);
        $objectState->id = (int)$stateId;

        $this->objectStateGateway->updateObjectState($objectState);

        return $this->load($objectState->id);
    }
1232474
function pushTextState( $newState )
    {
        $this->textStateStack[] = $this->currentTextState;
        $this->currentTextState = $newState;
        $this->setCurrentFont();
    }
15829
public function setPriority(AnObjectHandlable $object, $priority)
    {
        if ($handle = $object->getHandle()) {
            if ($this->_priority_list->offsetExists($handle)) {
                $this->_priority_list->offsetSet($handle, $priority);
                $this->_priority_list->asort();
            }
        }

        return $this;
    }
679384
public function execute(ProcessState $state)
    {
        $input = $state->getInput();
        $options = $this->getOptions($state);
        if (\is_array($input)) {
            if (!array_key_exists('id', $input)) {
                throw new \UnexpectedValueException('Expecting an array with the "id" key');
            }
            $input = $input['id'];
        }

        /** @var FamilyInterface $family */
        $family = $options['family'];
        /** @var DataRepository $repository */
        $repository = $this->entityManager->getRepository($family->getDataClass());
        $data = $repository->find($input);

        if (!$data instanceof DataInterface) {
            throw new \UnexpectedValueException("Data not found for id '{$input}'");
        }
        if ($data instanceof ContextualDataInterface && null !== $options['context']) {
            $data->setCurrentContext($options['context']);
        }
        $this->dataLoader->loadSingle($data, $options['load_depth']);

        $state->setOutput($data);
    }
1240203
public void setPriority(Integer priority) {        
        if (priority == null) {
            _properties.remove(AMQP_PROP_PRIORITY);
            return;
        }
        
        int priorityValue = priority.intValue();
        if ((priorityValue < 0) || (priorityValue > 9)) {
            String s = "AMQP 0-9-1 spec mandates 'priority' value to be between 0 and 9";
            throw new IllegalStateException(s);
        }
        
        _properties.put(AMQP_PROP_PRIORITY, priority);
    }
801924
public function setPriority($hsubscriber, $priority){
		if(HookProvider::getInstance()->isModuleOperational()){
			Database::prepare(
			"UPDATE `##maj_hooks`".
			" SET majh_module_priority=?".
			" WHERE majh_hook_function=?".
			" AND majh_hook_context=?".
			" AND majh_module_name=?"
					)->execute(array($priority, $this->hook_function, $this->hook_context, $hsubscriber));
		}
	}