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

Public Member Functions

 TriggerChannel (ServerConnector connector, long id, string triggerName, string objectName, TriggerEventType eventType)
 
bool ShouldNotify (string triggerName, string objectName, TriggerEventType eventType)
 
void Dispose ()
 
void OnTriggeInvoked (Action< TriggerEventNotification > notification)
 
void Notify (string triggerName, string triggerSource, TriggerEventType eventType, int count)
 

Properties

string TriggerName [get, set]
 
string ObjectName [get, set]
 
TriggerEventType EventType [get, set]
 

Private Member Functions

void Dispose (bool disposing)
 

Private Attributes

readonly ServerConnector connector
 
readonly long id
 
Action< TriggerEventNotificationcallback
 

Detailed Description

Definition at line 918 of file ServerConnector.old.cs.

Constructor & Destructor Documentation

Deveel.Data.Protocol.ServerConnector.TriggerChannel.TriggerChannel ( ServerConnector  connector,
long  id,
string  triggerName,
string  objectName,
TriggerEventType  eventType 
)
inline

Definition at line 930 of file ServerConnector.old.cs.

930  {
931  this.connector = connector;
932  this.id = id;
933  TriggerName = triggerName;
934  ObjectName = objectName;
935  EventType = eventType;
936  }
Describes the name of an object within a database.
Definition: ObjectName.cs:44

Member Function Documentation

void Deveel.Data.Protocol.ServerConnector.TriggerChannel.Dispose ( )
inline

Definition at line 945 of file ServerConnector.old.cs.

945  {
946  Dispose(true);
947  GC.SuppressFinalize(this);
948  }
void Deveel.Data.Protocol.ServerConnector.TriggerChannel.Dispose ( bool  disposing)
inlineprivate

Definition at line 950 of file ServerConnector.old.cs.

950  {
951  if (disposing) {
953  }
954  }
void Deveel.Data.Protocol.ServerConnector.TriggerChannel.Notify ( string  triggerName,
string  triggerSource,
TriggerEventType  eventType,
int  count 
)
inline

Definition at line 960 of file ServerConnector.old.cs.

960  {
961  if (callback != null)
962  callback(new TriggerEventNotification(triggerName, triggerSource, TriggerType.Callback, eventType, count));
963  }
TriggerType
Enumerates the types of triggers, that can be volatile (like the Callback) or stored in the database...
Definition: TriggerType.cs:22
void Deveel.Data.Protocol.ServerConnector.TriggerChannel.OnTriggeInvoked ( Action< TriggerEventNotification notification)
inline

Implements Deveel.Data.Protocol.ITriggerChannel.

Definition at line 956 of file ServerConnector.old.cs.

956  {
957  callback = notification;
958  }
bool Deveel.Data.Protocol.ServerConnector.TriggerChannel.ShouldNotify ( string  triggerName,
string  objectName,
TriggerEventType  eventType 
)
inline

Definition at line 938 of file ServerConnector.old.cs.

938  {
939  if (!String.Equals(triggerName, TriggerName, StringComparison.OrdinalIgnoreCase))
940  return false;
941 
942  return (eventType & EventType) != 0;
943  }
A long string in the system.

Member Data Documentation

Action<TriggerEventNotification> Deveel.Data.Protocol.ServerConnector.TriggerChannel.callback
private

Definition at line 928 of file ServerConnector.old.cs.

readonly ServerConnector Deveel.Data.Protocol.ServerConnector.TriggerChannel.connector
private

Definition at line 919 of file ServerConnector.old.cs.

readonly long Deveel.Data.Protocol.ServerConnector.TriggerChannel.id
private

Definition at line 920 of file ServerConnector.old.cs.

Property Documentation

TriggerEventType Deveel.Data.Protocol.ServerConnector.TriggerChannel.EventType
getsetprivate

Definition at line 926 of file ServerConnector.old.cs.

string Deveel.Data.Protocol.ServerConnector.TriggerChannel.ObjectName
getsetprivate

Definition at line 924 of file ServerConnector.old.cs.

string Deveel.Data.Protocol.ServerConnector.TriggerChannel.TriggerName
getsetprivate

Definition at line 922 of file ServerConnector.old.cs.


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