private function getMode($tokens)
    {
        switch ($tokens->getQueryMode()) {
            case 'find':
                return QueryBuilderResult::RESULT_SELECT_MULTIPLE;
            case 'get':
                return QueryBuilderResult::RESULT_SELECT_SINGLE;
            case 'delete':
                return QueryBuilderResult::RESULT_DELETE;
        }

        throw new DslSyntaxException('No query could be built for ' . $tokens->getMethodName() . ': Unknown query mode [' . $tokens->getQueryMode() . ']', DATADO_ILLEGAL_RESULT_MODE);
    }