DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Properties | List of all members
Deveel.Data.Sql.IObjectManager Interface Reference

Defines the contract for the business managers of database objects of a given type. More...

Inheritance diagram for Deveel.Data.Sql.IObjectManager:
Deveel.Data.Routines.RoutineManager Deveel.Data.Sql.Cursors.CursorManager Deveel.Data.Sql.ISequenceManager Deveel.Data.Sql.Schemas.SchemaManager Deveel.Data.Sql.Tables.TableManager Deveel.Data.Sql.Triggers.TriggerManager Deveel.Data.Sql.Variables.PersistentVariableManager Deveel.Data.Sql.Views.ViewManager Deveel.Data.Types.TypeManager

Public Member Functions

void Create ()
 Initializes the manager into the underlying system. More...
 
void CreateObject (IObjectInfo objInfo)
 Create a new object of the ObjectType given the specifications given. More...
 
bool RealObjectExists (ObjectName objName)
 Checks if an object really exists in the system. More...
 
bool ObjectExists (ObjectName objName)
 Checks if an object identified by the given name is managed by this instance. More...
 
IDbObject GetObject (ObjectName objName)
 Gets a database object managed by this manager. More...
 
bool AlterObject (IObjectInfo objInfo)
 Modifies an existing object managed, identified by IObjectInfo.FullName component of the given specification, with the format given. More...
 
bool DropObject (ObjectName objName)
 Deletes a database object handled by this manager from the system. More...
 
ObjectName ResolveName (ObjectName objName, bool ignoreCase)
 Normalizes the input object name using the case sensitivity specified. More...
 

Properties

DbObjectType ObjectType [get]
 Gets the type of objects managed by this instance. More...
 

Detailed Description

Defines the contract for the business managers of database objects of a given type.

Implementations of this interface will allow the system to:

Definition at line 37 of file IObjectManager.cs.

Member Function Documentation

bool Deveel.Data.Sql.IObjectManager.AlterObject ( IObjectInfo  objInfo)

Modifies an existing object managed, identified by IObjectInfo.FullName component of the given specification, with the format given.

Parameters
objInfoThe object specification used to alter an existing object.
Returns
Returns true an object was identified and successfully altered, or false if none database object was found for the unique name given.
Exceptions
ArgumentNullExceptionIf the given objInfo object is null.
ArgumentExceptionIf the type of the object specified (IObjectInfo.ObjectType) is different than the type of objects handled by this manager.

Implemented in Deveel.Data.Sql.Tables.TableManager, Deveel.Data.Sql.Sequences.SequenceManager, Deveel.Data.Sql.Triggers.TriggerManager, Deveel.Data.Routines.RoutineManager, Deveel.Data.Sql.Views.ViewManager, Deveel.Data.Sql.Schemas.SchemaManager, Deveel.Data.Sql.Variables.PersistentVariableManager, Deveel.Data.Sql.Cursors.CursorManager, and Deveel.Data.Types.TypeManager.

void Deveel.Data.Sql.IObjectManager.Create ( )
void Deveel.Data.Sql.IObjectManager.CreateObject ( IObjectInfo  objInfo)

Create a new object of the ObjectType given the specifications given.

Parameters
objInfoThe object specifications used to create a new object.
Exceptions
ArgumentNullExceptionIf the given objInfo is null.
ArgumentExceptionIf the object type of the specification (IObjectInfo.ObjectType) is different than the ObjectType of this manager.

Implemented in Deveel.Data.Sql.Sequences.SequenceManager, Deveel.Data.Sql.Tables.TableManager, Deveel.Data.Sql.Triggers.TriggerManager, Deveel.Data.Sql.Views.ViewManager, Deveel.Data.Routines.RoutineManager, Deveel.Data.Sql.Schemas.SchemaManager, Deveel.Data.Sql.Cursors.CursorManager, Deveel.Data.Types.TypeManager, and Deveel.Data.Sql.Variables.PersistentVariableManager.

bool Deveel.Data.Sql.IObjectManager.DropObject ( ObjectName  objName)

Deletes a database object handled by this manager from the system.

Parameters
objNameThe unique name of the object to be deleted.
Returns
Returns 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.

Implemented in Deveel.Data.Sql.Tables.TableManager, Deveel.Data.Sql.Sequences.SequenceManager, Deveel.Data.Sql.Triggers.TriggerManager, Deveel.Data.Routines.RoutineManager, Deveel.Data.Sql.Views.ViewManager, Deveel.Data.Sql.Schemas.SchemaManager, Deveel.Data.Sql.Variables.PersistentVariableManager, Deveel.Data.Sql.Cursors.CursorManager, and Deveel.Data.Types.TypeManager.

IDbObject Deveel.Data.Sql.IObjectManager.GetObject ( ObjectName  objName)

Gets a database object managed by this manager.

Parameters
objNameThe name that uniquely identifies the object to get.
Returns
Returns a IDbObject instance that is identified by the given unique name, or null if this manager was not able to map any object to the name specified.

Implemented in Deveel.Data.Sql.Sequences.SequenceManager, Deveel.Data.Sql.Tables.TableManager, Deveel.Data.Sql.Triggers.TriggerManager, Deveel.Data.Routines.RoutineManager, Deveel.Data.Sql.Views.ViewManager, Deveel.Data.Sql.Schemas.SchemaManager, Deveel.Data.Sql.Cursors.CursorManager, Deveel.Data.Sql.Variables.PersistentVariableManager, and Deveel.Data.Types.TypeManager.

bool Deveel.Data.Sql.IObjectManager.ObjectExists ( ObjectName  objName)
bool Deveel.Data.Sql.IObjectManager.RealObjectExists ( ObjectName  objName)

Checks if an object really exists in the system.

Parameters
objNameThe unique name of the object to check.
Returns
Returns true if an object with the given name concretely exists in the system, or false otherwise.

Implemented in Deveel.Data.Sql.Sequences.SequenceManager, Deveel.Data.Sql.Tables.TableManager, Deveel.Data.Sql.Triggers.TriggerManager, Deveel.Data.Sql.Views.ViewManager, Deveel.Data.Routines.RoutineManager, Deveel.Data.Sql.Schemas.SchemaManager, Deveel.Data.Sql.Cursors.CursorManager, Deveel.Data.Sql.Variables.PersistentVariableManager, and Deveel.Data.Types.TypeManager.

ObjectName Deveel.Data.Sql.IObjectManager.ResolveName ( ObjectName  objName,
bool  ignoreCase 
)

Normalizes the input object name using the case sensitivity specified.

Parameters
objNameThe input object name, that can be partial or complete, to be normalized to the real name of an object.
ignoreCaseThe case sensitivity specification used to compare the input name with the names of the existing objects handled by this manager.
Returns
Returns the fully normalized ObjectName that is the real name of an object matching the input name, or null if the input name was not possible to be resolved.

Implemented in Deveel.Data.Sql.Tables.TableManager, Deveel.Data.Sql.Sequences.SequenceManager, Deveel.Data.Sql.Triggers.TriggerManager, Deveel.Data.Routines.RoutineManager, Deveel.Data.Sql.Views.ViewManager, Deveel.Data.Sql.Variables.PersistentVariableManager, Deveel.Data.Sql.Schemas.SchemaManager, Deveel.Data.Sql.Cursors.CursorManager, and Deveel.Data.Types.TypeManager.

Property Documentation

DbObjectType Deveel.Data.Sql.IObjectManager.ObjectType
get

Gets the type of objects managed by this instance.

See also
DbObjectType

Definition at line 42 of file IObjectManager.cs.


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