DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Private Attributes | List of all members
Deveel.Data.Sql.Views.ViewManager.ViewTableContainer Class Reference
Inheritance diagram for Deveel.Data.Sql.Views.ViewManager.ViewTableContainer:
Deveel.Data.SystemTableContainer Deveel.Data.Sql.Tables.ITableContainer

Public Member Functions

 ViewTableContainer (ViewManager viewManager)
 
override TableInfo GetTableInfo (int offset)
 Gets the information of the table at the given offset in this container. More...
 
override string GetTableType (int offset)
 Gets the type of the table at the given offset. More...
 
override ITable GetTable (int offset)
 Gets the table contained at the given offset within the context. More...
 
- Public Member Functions inherited from Deveel.Data.SystemTableContainer
int FindByName (ObjectName name)
 Finds the index in this container of the given table by its name. More...
 
ObjectName GetTableName (int offset)
 Gets the name of the table at the given index in this container. More...
 
bool ContainsTable (ObjectName name)
 Checks if a table with the given name is contained in the current context. More...
 

Private Attributes

readonly ViewManager viewManager
 

Additional Inherited Members

- Protected Member Functions inherited from Deveel.Data.SystemTableContainer
 SystemTableContainer (ITransaction transaction, ObjectName tableName)
 
- Properties inherited from Deveel.Data.SystemTableContainer
ITransaction Transaction [get, private set]
 
ObjectName TableName [get, private set]
 
int TableCount [get]
 
- Properties inherited from Deveel.Data.Sql.Tables.ITableContainer
int TableCount [get]
 Returns the total count of tables that this object is maintaining. More...
 

Detailed Description

Definition at line 275 of file ViewManager.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Views.ViewManager.ViewTableContainer.ViewTableContainer ( ViewManager  viewManager)
inline

Definition at line 278 of file ViewManager.cs.

279  : base(viewManager.Transaction, SystemSchema.ViewTableName) {
280  this.viewManager = viewManager;
281  }

Member Function Documentation

override ITable Deveel.Data.Sql.Views.ViewManager.ViewTableContainer.GetTable ( int  offset)
inlinevirtual

Gets the table contained at the given offset within the context.

Parameters
offsetThe zero-based offset of the table to return.
Returns
Returns an instance of ITable that provides access to the backed informaion for an object provided by the context.
Exceptions
ArgumentOutOfRangeExceptionIf the given offset is smaller than 0 or greater or equal than TableCount.

Implements Deveel.Data.SystemTableContainer.

Definition at line 295 of file ViewManager.cs.

295  {
296  throw new NotSupportedException();
297  }
override TableInfo Deveel.Data.Sql.Views.ViewManager.ViewTableContainer.GetTableInfo ( int  offset)
inlinevirtual

Gets the information of the table at the given offset in this container.

Parameters
offsetThe zero-based offset of the table whose information to return.
Returns
Returns an instance of
See also
TableInfo
that describes the metadata of a table at the given offset within the context.
Exceptions
ArgumentOutOfRangeExceptionIf the given offset is smaller than 0 or greater or equal than TableCount.

Implements Deveel.Data.SystemTableContainer.

Definition at line 283 of file ViewManager.cs.

283  {
284  var view = viewManager.GetViewAt(offset);
285  if (view == null)
286  return null;
287 
288  return view.ViewInfo.TableInfo;
289  }
override string Deveel.Data.Sql.Views.ViewManager.ViewTableContainer.GetTableType ( int  offset)
inlinevirtual

Gets the type of the table at the given offset.

Parameters
offsetThe zero-based offset of the table whose type to return.
Returns
Returns a String that describes the type of table at the given offset.
Exceptions
ArgumentOutOfRangeExceptionIf the given offset is smaller than 0 or greater or equal than TableCount.

Implements Deveel.Data.SystemTableContainer.

Definition at line 291 of file ViewManager.cs.

291  {
292  return TableTypes.View;
293  }

Member Data Documentation

readonly ViewManager Deveel.Data.Sql.Views.ViewManager.ViewTableContainer.viewManager
private

Definition at line 276 of file ViewManager.cs.


The documentation for this class was generated from the following file: