DeveelDB
20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
|
Classes | |
class | TriggerArgument |
class | TriggersTableContainer |
Public Member Functions | |
TriggerManager (ITransaction transaction) | |
void | Dispose () |
void | Create () |
Initializes the manager into the underlying system. More... | |
ObjectName | ResolveName (ObjectName objName, bool ignoreCase) |
Normalizes the input object name using the case sensitivity specified. More... | |
void | CreateTrigger (TriggerInfo triggerInfo) |
bool | DropTrigger (ObjectName triggerName) |
bool | TriggerExists (ObjectName triggerName) |
Trigger | GetTrigger (ObjectName triggerName) |
bool | AlterTrigger (TriggerInfo triggerInfo) |
IEnumerable< Trigger > | FindTriggers (TriggerEventInfo eventInfo) |
void | FireTriggers (IQuery context, TableEvent tableEvent) |
ITableContainer | CreateTriggersTableContainer () |
Properties | |
DbObjectType IObjectManager. | ObjectType [get] |
Properties inherited from Deveel.Data.Sql.IObjectManager | |
DbObjectType | ObjectType [get] |
Gets the type of objects managed by this instance. More... | |
Private Member Functions | |
~TriggerManager () | |
void | Dispose (bool disposing) |
void | OnTableCommit (TableCommitEvent commitEvent) |
void | OnCommit (TableCommitInfo commitInfo) |
void | BuildTriggerCache () |
void | InvalidateTriggerCache () |
ITable | FindTrigger (ITable table, string schema, string name) |
IEnumerable< TriggerInfo > | FindTriggers (ObjectName tableName, TriggerEventType eventType) |
void IObjectManager. | CreateObject (IObjectInfo objInfo) |
Create a new object of the ObjectType given the specifications given. More... | |
bool IObjectManager. | RealObjectExists (ObjectName objName) |
Checks if an object really exists in the system. More... | |
bool IObjectManager. | ObjectExists (ObjectName objName) |
Checks if an object identified by the given name is managed by this instance. More... | |
IDbObject IObjectManager. | GetObject (ObjectName objName) |
Gets a database object managed by this manager. More... | |
bool IObjectManager. | AlterObject (IObjectInfo objInfo) |
Modifies an existing object managed, identified by IObjectInfo.FullName component of the given specification, with the format given. More... | |
bool IObjectManager. | DropObject (ObjectName objName) |
Deletes a database object handled by this manager from the system. More... | |
void ITriggerManager. | RegisterTrigger (TriggerInfo triggerInfo) |
TriggerInfo | FormTrigger (Row row) |
Static Private Member Functions | |
static byte[] | SerializeArguments (TriggerArgument args) |
Private Attributes | |
ITransaction | transaction |
bool | tableModified |
bool | cacheValid |
List< Trigger > | triggerCache |
Definition at line 30 of file TriggerManager.cs.
|
inline |
Definition at line 36 of file TriggerManager.cs.
|
inlineprivate |
Definition at line 42 of file TriggerManager.cs.
|
inlineprivate |
Modifies an existing object managed, identified by IObjectInfo.FullName component of the given specification, with the format given.
objInfo | The object specification used to alter an existing object. |
true
an object was identified and successfully altered, or false
if none database object was found for the unique name given. ArgumentNullException | If the given objInfo object is null . |
ArgumentException | If the type of the object specified (IObjectInfo.ObjectType) is different than the type of objects handled by this manager. |
Implements Deveel.Data.Sql.IObjectManager.
Definition at line 195 of file TriggerManager.cs.
|
inline |
Definition at line 331 of file TriggerManager.cs.
|
inlineprivate |
Definition at line 90 of file TriggerManager.cs.
|
inline |
Initializes the manager into the underlying system.
Typically this method generates the tables required to manage the features relative to the objects.
Implements Deveel.Data.Sql.IObjectManager.
Definition at line 109 of file TriggerManager.cs.
|
inlineprivate |
Create a new object of the ObjectType given the specifications given.
objInfo | The object specifications used to create a new object. |
ArgumentNullException | If the given objInfo is null . |
ArgumentException | If the object type of the specification (IObjectInfo.ObjectType) is different than the ObjectType of this manager. |
Implements Deveel.Data.Sql.IObjectManager.
Definition at line 175 of file TriggerManager.cs.
|
inline |
Definition at line 245 of file TriggerManager.cs.
|
inline |
Definition at line 352 of file TriggerManager.cs.
|
inline |
Definition at line 46 of file TriggerManager.cs.
|
inlineprivate |
Definition at line 51 of file TriggerManager.cs.
|
inlineprivate |
Deletes a database object handled by this manager from the system.
objName | The unique name of the object to be deleted. |
true
if a database object was found with the given unique name and successfully deleted from the system, or false
if none object was found. Implements Deveel.Data.Sql.IObjectManager.
Definition at line 203 of file TriggerManager.cs.
|
inline |
Definition at line 286 of file TriggerManager.cs.
|
inlineprivate |
Definition at line 121 of file TriggerManager.cs.
|
inlineprivate |
Definition at line 136 of file TriggerManager.cs.
|
inline |
Definition at line 335 of file TriggerManager.cs.
|
inline |
Implements Deveel.Data.Sql.Triggers.ITriggerManager.
Definition at line 340 of file TriggerManager.cs.
|
inlineprivate |
Definition at line 315 of file TriggerManager.cs.
|
inlineprivate |
Gets a database object managed by this manager.
objName | The name that uniquely identifies the object to get. |
null
if this manager was not able to map any object to the name specified. Implements Deveel.Data.Sql.IObjectManager.
Definition at line 191 of file TriggerManager.cs.
|
inline |
Definition at line 302 of file TriggerManager.cs.
|
inlineprivate |
Definition at line 105 of file TriggerManager.cs.
|
inlineprivate |
Checks if an object identified by the given name is managed by this instance.
objName | The name that uniquely identifies the object. |
Implements Deveel.Data.Sql.IObjectManager.
Definition at line 187 of file TriggerManager.cs.
|
inlineprivate |
Definition at line 78 of file TriggerManager.cs.
|
inlineprivate |
Definition at line 66 of file TriggerManager.cs.
|
inlineprivate |
Checks if an object really exists in the system.
objName | The unique name of the object to check. |
true
if an object with the given name concretely exists in the system, or false
otherwise. Implements Deveel.Data.Sql.IObjectManager.
Definition at line 183 of file TriggerManager.cs.
|
inlineprivate |
Implements Deveel.Data.Sql.Triggers.ITriggerManager.
Definition at line 241 of file TriggerManager.cs.
|
inline |
Normalizes the input object name using the case sensitivity specified.
objName | The input object name, that can be partial or complete, to be normalized to the real name of an object. |
ignoreCase | The case sensitivity specification used to compare the input name with the names of the existing objects handled by this manager. |
null
if the input name was not possible to be resolved. Implements Deveel.Data.Sql.IObjectManager.
Definition at line 207 of file TriggerManager.cs.
|
inlinestaticprivate |
Definition at line 228 of file TriggerManager.cs.
|
inline |
Definition at line 290 of file TriggerManager.cs.
|
private |
Definition at line 33 of file TriggerManager.cs.
|
private |
Definition at line 32 of file TriggerManager.cs.
|
private |
Definition at line 31 of file TriggerManager.cs.
|
private |
Definition at line 34 of file TriggerManager.cs.
|
getprivate |
Definition at line 62 of file TriggerManager.cs.