DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Protected Member Functions | Properties | List of all members
Deveel.Data.Protocol.LocalDatabaseClient.ServerConnector Class Reference
Inheritance diagram for Deveel.Data.Protocol.LocalDatabaseClient.ServerConnector:
Deveel.Data.Protocol.EmbeddedServerConnector Deveel.Data.Protocol.ServerConnector Deveel.Data.Protocol.IServerConnector Deveel.Data.Protocol.IServerConnector Deveel.Data.Protocol.IConnector Deveel.Data.Protocol.IConnector

Public Member Functions

 ServerConnector (LocalDatabaseClient client, IDatabaseHandler handler)
 
- Public Member Functions inherited from Deveel.Data.Protocol.EmbeddedServerConnector
 EmbeddedServerConnector (IDatabaseHandler handler)
 
override ConnectionEndPoint MakeEndPoint (IDictionary< string, object > properties)
 
- Public Member Functions inherited from Deveel.Data.Protocol.ServerConnector
void Dispose ()
 
ILargeObjectChannel CreateObjectChannel (long objectId)
 
ITriggerChannel CreateTriggerChannel (string triggerName, string objectName, TriggerEventType eventType)
 
void Dispose ()
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from Deveel.Data.Protocol.EmbeddedServerConnector
override IServerMessageEnvelope CreateEnvelope (IDictionary< string, object > metadata, IMessage message)
 
- Protected Member Functions inherited from Deveel.Data.Protocol.ServerConnector
 ServerConnector (IDatabaseHandler databaseHandler)
 
void SetAutoCommit (bool value)
 
void SetParameterStyle (QueryParameterStyle parameterStyle)
 
void SetIgnoreIdentifiersCase (bool value)
 
void ChangeState (ConnectorState newState)
 
void OpenConnector (ConnectionEndPoint remoteEndPoint, string databaseName)
 
virtual void OnConnectorOpen ()
 
void CloseConnector ()
 
virtual void OnCloseConnector ()
 
virtual EncryptionData GetEncryptionData ()
 
virtual bool Authenticate (string defaultSchema, string username, string password)
 
virtual bool OnAuthenticated (User user)
 
IQueryResponse[] ExecuteQuery (long commitId, string text, IEnumerable< QueryParameter > parameters)
 
virtual IQueryResponse[] ExecuteQuery (IQuery context, string text, IEnumerable< QueryParameter > parameters)
 
IQueryResponse[] CoreExecuteQuery (IQuery context, string text, IEnumerable< QueryParameter > parameters)
 
int BeginTransaction ()
 
virtual IMessage GetMessage (IMessageEnvelope envelope)
 
void CommitTransaction (int commitId)
 
void RollbackTransaction (int commitId)
 
QueryResultPart GetResultPart (int resultId, int startRow, int countRows)
 
QueryResult GetResult (int resultId)
 
 ServerConnector (IDatabaseHandler handler)
 
void ChangeState (ConnectorState newState)
 
void OpenConnector (ConnectionEndPoint remoteEndPoint, string databaseName)
 
virtual void OnConnectorOpen ()
 
void SetAutoCommit (bool state)
 
void SetIgnoreIdentifiersCase (bool state)
 
void SetParameterStyle (ParameterStyle style)
 
void CloseConnector ()
 
virtual void OnCloseConnector ()
 
virtual EncryptionData GetEncryptionData ()
 
virtual AuthenticatedSession OnAuthenticate (string defaultSchema, string username, string password)
 
virtual void OnTriggerFired (string triggerName, string triggerSource, TriggerEventType eventType, int count)
 
int BeginTransaction ()
 
virtual bool Authenticate (string defaultSchema, string username, string password)
 
long CreateStreamableObject (ReferenceType referenceType, long length)
 
IQueryResponse[] CoreExecuteQuery (string text, IEnumerable< SqlQueryParameter > parameters)
 
virtual IQueryResponse[] ExecuteQuery (string text, IEnumerable< SqlQueryParameter > parameters)
 
QueryResultPart GetResultPart (int resultId, int startRow, int countRows)
 
void DisposeResult (int resultId)
 
void CommitTransaction (int transactionId)
 
void RollbackTransaction (int transactionId)
 
virtual IMessage GetMessage (IMessageEnvelope envelope)
 
virtual IStreamableObjectChannel CreateObjectChannel (long objectId)
 
virtual ITriggerChannel CreateTriggerChannel (string triggerName, string objectName, TriggerEventType eventType)
 

Properties

LocalDatabaseClient Client [get, set]
 
- Properties inherited from Deveel.Data.Protocol.EmbeddedServerConnector
override ConnectionEndPoint LocalEndPoint [get]
 
- Properties inherited from Deveel.Data.Protocol.ServerConnector
IDatabaseHandler DatabaseHandler [get, private set]
 
IDatabase Database [get, private set]
 
abstract ConnectionEndPoint LocalEndPoint [get]
 
ConnectionEndPoint RemoteEndPoint [get, private set]
 
User User [get, private set]
 
IDictionary< string, object > Metadata [get, private set]
 
ConnectorState CurrentState [get, private set]
 
AuthenticatedSession Session [get, protected set]
 
ILogger Logger [get]
 
- Properties inherited from Deveel.Data.Protocol.IConnector
ConnectorState CurrentState [get]
 
ConnectionEndPoint LocalEndPoint [get]
 

Detailed Description

Definition at line 91 of file LocalDatabaseClient.cs.

Constructor & Destructor Documentation

Deveel.Data.Protocol.LocalDatabaseClient.ServerConnector.ServerConnector ( LocalDatabaseClient  client,
IDatabaseHandler  handler 
)
inline

Definition at line 94 of file LocalDatabaseClient.cs.

95  : base(handler) {
96  Client = client;
97  client.openConnections++;
98  }

Member Function Documentation

override void Deveel.Data.Protocol.LocalDatabaseClient.ServerConnector.Dispose ( bool  disposing)
inlineprotectedvirtual

Reimplemented from Deveel.Data.Protocol.ServerConnector.

Definition at line 100 of file LocalDatabaseClient.cs.

100  {
101  if (disposing) {
103  if (Client.openConnections <= 0) {
104  Client.Dispose();
105  }
106  }
107 
108  Client = null;
109 
110  base.Dispose(disposing);
111  }

Property Documentation

LocalDatabaseClient Deveel.Data.Protocol.LocalDatabaseClient.ServerConnector.Client
getset

Definition at line 92 of file LocalDatabaseClient.cs.


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