Пример #1
0
        public Either <RfcErrorInfo, Unit> MoveToFirstTableRow(ITableHandle tableHandle)
        {
            Logger.IfSome(l => l.LogTrace("move to first table row by table handle", tableHandle));
            var rc = Api.MoveToFirstTableRow(tableHandle as TableHandle, out var errorInfo);

            return(ResultOrError(Unit.Default, rc, errorInfo));
        }
Пример #2
0
        public Either <RfcErrorInfo, IStructureHandle> AppendTableRow(ITableHandle tableHandle)
        {
            Logger.IfSome(l => l.LogTrace("append table row by table handle", tableHandle));
            IStructureHandle handle = Api.AppendTableRow(tableHandle as TableHandle, out var errorInfo);

            return(ResultOrError(handle, errorInfo));
        }
Пример #3
0
        public Either <RfcErrorInfo, IStructureHandle> GetCurrentTableRow(ITableHandle tableHandle)
        {
            Logger.IfSome(l => l.LogTrace("reading current table row by table handle", tableHandle));
            IStructureHandle handle = Api.GetCurrentTableRow(tableHandle as TableHandle, out var errorInfo);

            return(ResultOrError(handle, errorInfo));
        }
Пример #4
0
        public Either <RfcErrorInfo, int> GetTableRowCount(ITableHandle tableHandle)
        {
            Logger.IfSome(l => l.LogTrace("reading table row count by table handle", tableHandle));
            var rc = Api.GetTableRowCount(tableHandle as TableHandle, out var result, out var errorInfo);

            return(ResultOrError(result, rc, errorInfo));
        }
Пример #5
0
        public Either <RfcErrorInfo, ITableHandle> CloneTable(ITableHandle tableHandle)
        {
            Logger.IfSome(l => l.LogTrace("cloning table by tableHandle", tableHandle));
            ITableHandle handle = Api.CloneTable(tableHandle as TableHandle, out var errorInfo);

            return(ResultOrError(handle, errorInfo));
        }
Пример #6
0
 public Table(ITableHandle handle, IRfcRuntime rfcRuntime) : base(handle, rfcRuntime)
 {
     _handle     = handle;
     _rfcRuntime = rfcRuntime;
 }