Deveel.Data.Protocol.QueryResult.GetValue C# (CSharp) Méthode

GetValue() public méthode

public GetValue ( int rowIndex, int columnIndex ) : Field
rowIndex int
columnIndex int
Résultat Field
        public Field GetValue(int rowIndex, int columnIndex)
        {
            // TODO: Ensure to fetch the next row
            if (localTable != null) {
                return localTable.GetValue(rowIndex, columnIndex);
            } else if (Result.Type == StatementResultType.CursorRef) {
                var row = Result.Cursor.Fetch(FetchDirection.Absolute, rowIndex);
                if (row == null)
                    return Field.Null();

                return row.GetValue(columnIndex);
            }

            var obj = Result.Result.GetValue(rowIndex, columnIndex);

            // TODO: support large object references

            return obj;
        }