Deveel.Data.TableSourceComposite.GetTableSource C# (CSharp) Method

GetTableSource() private method

private GetTableSource ( int tableId ) : TableSource
tableId int
return TableSource
        internal TableSource GetTableSource(int tableId)
        {
            lock (commitLock) {
                if (tableSources == null)
                    return null;

                TableSource source;
                if (!tableSources.TryGetValue(tableId, out source))
                    throw new ObjectNotFoundException(
                        String.Format("Could not find any source for table with id {0} in this composite.", tableId));

                return source;
            }
        }