C# Class Deveel.Data.Protocol.ServerConnector

Inheritance: IServerConnector
显示文件 Open project: deveel/deveeldb Class Usage Examples

Public Methods

Method Description
CreateObjectChannel ( ObjectId objectId ) : ILargeObjectChannel
CreateTriggerChannel ( string triggerName, string objectName, TriggerEventType eventType ) : ITriggerChannel
Dispose ( ) : void
MakeEndPoint ( object>.IDictionary properties ) : ConnectionEndPoint

Protected Methods

Method Description
Authenticate ( string defaultSchema, string username, string password ) : bool
BeginTransaction ( ) : int
ChangeState ( ConnectorState newState ) : void
CloseConnector ( ) : void
CommitTransaction ( int commitId ) : void
CoreExecuteQuery ( IQuery context, string text, IEnumerable parameters, QueryParameterStyle parameterStyle ) : IQueryResponse[]
CreateEnvelope ( object>.IDictionary metadata, IMessage message ) : IServerMessageEnvelope
Dispose ( bool disposing ) : void
ExecuteQuery ( IQuery context, Deveel.Data.Sql.SqlQuery query ) : IQueryResponse[]
ExecuteQuery ( long commitId, Deveel.Data.Sql.SqlQuery query ) : IQueryResponse[]
GetEncryptionData ( ) : EncryptionData
GetMessage ( IMessageEnvelope envelope ) : IMessage
GetResult ( int resultId ) : QueryResult
GetResultPart ( int resultId, int startRow, int countRows ) : QueryResultPart
OnAuthenticated ( string userName ) : bool
OnCloseConnector ( ) : void
OnConnectorOpen ( ) : void
OpenConnector ( ConnectionEndPoint remoteEndPoint, string databaseName ) : void
RollbackTransaction ( int commitId ) : void
ServerConnector ( IDatabaseHandler databaseHandler ) : System
SetAutoCommit ( bool value ) : void
SetIgnoreIdentifiersCase ( bool value ) : void
SetParameterStyle ( QueryParameterStyle parameterStyle ) : void

Private Methods

Method Description
AddResult ( QueryResult result ) : int
AssertAuthenticated ( ) : void
AssertNotDisposed ( ) : void
ClearObjectCache ( ) : void
ClearResults ( ) : void
CreateLargeObject ( long objectLength ) : ObjectId
CreateQueryContext ( ) : IQuery
DisposeChannel ( ObjectId objId ) : void
DisposeResult ( int resultId ) : void
GetLargeObject ( ObjectId objId ) : ILargeObject
IConnector ( object>.IDictionary metadata, IMessage message ) : IMessageEnvelope
IConnector ( ) : IMessageProcessor
OpenQueryContext ( long commitId ) : IQuery

Method Details

Authenticate() protected method

protected Authenticate ( string defaultSchema, string username, string password ) : bool
defaultSchema string
username string
password string
return bool

BeginTransaction() protected method

protected BeginTransaction ( ) : int
return int

ChangeState() protected method

protected ChangeState ( ConnectorState newState ) : void
newState ConnectorState
return void

CloseConnector() protected method

protected CloseConnector ( ) : void
return void

CommitTransaction() protected method

protected CommitTransaction ( int commitId ) : void
commitId int
return void

CoreExecuteQuery() protected method

protected CoreExecuteQuery ( IQuery context, string text, IEnumerable parameters, QueryParameterStyle parameterStyle ) : IQueryResponse[]
context IQuery
text string
parameters IEnumerable
parameterStyle QueryParameterStyle
return IQueryResponse[]

CreateEnvelope() protected abstract method

protected abstract CreateEnvelope ( object>.IDictionary metadata, IMessage message ) : IServerMessageEnvelope
metadata object>.IDictionary
message IMessage
return IServerMessageEnvelope

CreateObjectChannel() public method

public CreateObjectChannel ( ObjectId objectId ) : ILargeObjectChannel
objectId ObjectId
return ILargeObjectChannel

CreateTriggerChannel() public method

public CreateTriggerChannel ( string triggerName, string objectName, TriggerEventType eventType ) : ITriggerChannel
triggerName string
objectName string
eventType TriggerEventType
return ITriggerChannel

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

ExecuteQuery() protected method

protected ExecuteQuery ( IQuery context, Deveel.Data.Sql.SqlQuery query ) : IQueryResponse[]
context IQuery
query Deveel.Data.Sql.SqlQuery
return IQueryResponse[]

ExecuteQuery() protected method

protected ExecuteQuery ( long commitId, Deveel.Data.Sql.SqlQuery query ) : IQueryResponse[]
commitId long
query Deveel.Data.Sql.SqlQuery
return IQueryResponse[]

GetEncryptionData() protected method

protected GetEncryptionData ( ) : EncryptionData
return EncryptionData

GetMessage() protected method

protected GetMessage ( IMessageEnvelope envelope ) : IMessage
envelope IMessageEnvelope
return IMessage

GetResult() protected method

protected GetResult ( int resultId ) : QueryResult
resultId int
return QueryResult

GetResultPart() protected method

protected GetResultPart ( int resultId, int startRow, int countRows ) : QueryResultPart
resultId int
startRow int
countRows int
return QueryResultPart

MakeEndPoint() public abstract method

public abstract MakeEndPoint ( object>.IDictionary properties ) : ConnectionEndPoint
properties object>.IDictionary
return ConnectionEndPoint

OnAuthenticated() protected method

protected OnAuthenticated ( string userName ) : bool
userName string
return bool

OnCloseConnector() protected method

protected OnCloseConnector ( ) : void
return void

OnConnectorOpen() protected method

protected OnConnectorOpen ( ) : void
return void

OpenConnector() protected method

protected OpenConnector ( ConnectionEndPoint remoteEndPoint, string databaseName ) : void
remoteEndPoint ConnectionEndPoint
databaseName string
return void

RollbackTransaction() protected method

protected RollbackTransaction ( int commitId ) : void
commitId int
return void

ServerConnector() protected method

protected ServerConnector ( IDatabaseHandler databaseHandler ) : System
databaseHandler IDatabaseHandler
return System

SetAutoCommit() protected method

protected SetAutoCommit ( bool value ) : void
value bool
return void

SetIgnoreIdentifiersCase() protected method

protected SetIgnoreIdentifiersCase ( bool value ) : void
value bool
return void

SetParameterStyle() protected method

protected SetParameterStyle ( QueryParameterStyle parameterStyle ) : void
parameterStyle QueryParameterStyle
return void