DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Private Attributes | List of all members
Deveel.Data.SingleDatabaseHandler Class Reference
Inheritance diagram for Deveel.Data.SingleDatabaseHandler:
Deveel.Data.IDatabaseHandler

Public Member Functions

 SingleDatabaseHandler (IDatabase database)
 
IDatabase GetDatabase (string databaseName)
 

Private Attributes

readonly IDatabase database
 

Detailed Description

Definition at line 20 of file SingleDatabaseHandler.cs.

Constructor & Destructor Documentation

Deveel.Data.SingleDatabaseHandler.SingleDatabaseHandler ( IDatabase  database)
inline

Definition at line 23 of file SingleDatabaseHandler.cs.

23  {
24  if (database == null)
25  throw new ArgumentNullException("database");
26 
27  this.database = database;
28  }

Member Function Documentation

IDatabase Deveel.Data.SingleDatabaseHandler.GetDatabase ( string  databaseName)
inline

Implements Deveel.Data.IDatabaseHandler.

Definition at line 30 of file SingleDatabaseHandler.cs.

30  {
31  if (String.IsNullOrEmpty(databaseName))
32  throw new ArgumentNullException("databaseName");
33 
34  if (!String.Equals(databaseName, database.Name))
35  return null;
36 
37  return database;
38  }
A long string in the system.
string Name
Gets the name of the database.
Definition: IDatabase.cs:44

Member Data Documentation

readonly IDatabase Deveel.Data.SingleDatabaseHandler.database
private

Definition at line 21 of file SingleDatabaseHandler.cs.


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