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

Classes

class  ServerConnector
 

Public Member Functions

void Dispose ()
 
IServerConnector Create (string adminUser, string adminPassword)
 
IServerConnector Boot ()
 
IServerConnector Access ()
 

Package Functions

 LocalDatabaseClient (LocalClient client, IDatabase database)
 

Properties

IDatabase Database [get, set]
 
IClient IDatabaseClient. Client [get]
 
LocalClient Client [get, set]
 
IConfiguration Configuration [get]
 
IDatabaseHandler DatabaseHandler [get]
 
bool IsBooted [get]
 
bool Exist [get]
 
- Properties inherited from Deveel.Data.Protocol.IDatabaseClient
IClient Client [get]
 
IConfiguration Configuration [get]
 
bool IsBooted [get]
 
bool Exist [get]
 

Private Member Functions

void AssertNotDisposed ()
 

Private Attributes

bool disposed
 
int openConnections
 

Detailed Description

Definition at line 7 of file LocalDatabaseClient.cs.

Constructor & Destructor Documentation

Deveel.Data.Protocol.LocalDatabaseClient.LocalDatabaseClient ( LocalClient  client,
IDatabase  database 
)
inlinepackage

Definition at line 11 of file LocalDatabaseClient.cs.

11  {
12  Database = database;
13  Client = client;
14  }

Member Function Documentation

IServerConnector Deveel.Data.Protocol.LocalDatabaseClient.Access ( )
inline

Implements Deveel.Data.Protocol.IDatabaseClient.

Definition at line 82 of file LocalDatabaseClient.cs.

82  {
83  if (!IsBooted)
84  throw new InvalidOperationException("The database is not booted.");
85 
86  return new ServerConnector(this, DatabaseHandler);
87  }
void Deveel.Data.Protocol.LocalDatabaseClient.AssertNotDisposed ( )
inlineprivate

Definition at line 57 of file LocalDatabaseClient.cs.

57  {
58  if (disposed)
59  throw new ObjectDisposedException(GetType().FullName);
60  }
IServerConnector Deveel.Data.Protocol.LocalDatabaseClient.Boot ( )
inline

Implements Deveel.Data.Protocol.IDatabaseClient.

Definition at line 74 of file LocalDatabaseClient.cs.

74  {
75  if (IsBooted)
76  throw new InvalidOperationException("The local database is already booted.");
77 
78  Database.Open();
79  return new ServerConnector(this, DatabaseHandler);
80  }
void Open()
Opens the database making it ready to be accessed.
IServerConnector Deveel.Data.Protocol.LocalDatabaseClient.Create ( string  adminUser,
string  adminPassword 
)
inline

Implements Deveel.Data.Protocol.IDatabaseClient.

Definition at line 62 of file LocalDatabaseClient.cs.

62  {
64 
65  if (String.IsNullOrEmpty(adminUser))
66  throw new ArgumentNullException("adminUser");
67  if (String.IsNullOrEmpty(adminPassword))
68  throw new ArgumentNullException("adminPassword");
69 
70  Database.Create(adminUser, adminPassword);
71  return new ServerConnector(this, DatabaseHandler);
72  }
A long string in the system.
void Create(string adminName, string adminPassword)
Creates the database in the context given, granting the administrative control to the user identified...
void Deveel.Data.Protocol.LocalDatabaseClient.Dispose ( )
inline

Definition at line 16 of file LocalDatabaseClient.cs.

Member Data Documentation

bool Deveel.Data.Protocol.LocalDatabaseClient.disposed
private

Definition at line 8 of file LocalDatabaseClient.cs.

int Deveel.Data.Protocol.LocalDatabaseClient.openConnections
private

Definition at line 9 of file LocalDatabaseClient.cs.

Property Documentation

IClient IDatabaseClient. Deveel.Data.Protocol.LocalDatabaseClient.Client
getprivate

Definition at line 26 of file LocalDatabaseClient.cs.

LocalClient Deveel.Data.Protocol.LocalDatabaseClient.Client
getsetprivate

Definition at line 30 of file LocalDatabaseClient.cs.

IConfiguration Deveel.Data.Protocol.LocalDatabaseClient.Configuration
get

Definition at line 32 of file LocalDatabaseClient.cs.

IDatabase Deveel.Data.Protocol.LocalDatabaseClient.Database
getsetprivate

Definition at line 24 of file LocalDatabaseClient.cs.

IDatabaseHandler Deveel.Data.Protocol.LocalDatabaseClient.DatabaseHandler
getprivate

Definition at line 39 of file LocalDatabaseClient.cs.

bool Deveel.Data.Protocol.LocalDatabaseClient.Exist
get

Definition at line 50 of file LocalDatabaseClient.cs.

bool Deveel.Data.Protocol.LocalDatabaseClient.IsBooted
get

Definition at line 43 of file LocalDatabaseClient.cs.


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