DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Properties | Private Member Functions | List of all members
Deveel.Data.Types.TypeManager Class Reference
Inheritance diagram for Deveel.Data.Types.TypeManager:
Deveel.Data.Sql.IObjectManager Deveel.Data.Types.ITypeResolver

Public Member Functions

 TypeManager (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...
 
UserType GetUserType (ObjectName typeName)
 

Properties

ITransaction Transaction [get, private set]
 
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

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...
 
SqlType ITypeResolver. ResolveType (TypeResolveContext context)
 

Detailed Description

Definition at line 24 of file TypeManager.cs.

Constructor & Destructor Documentation

Deveel.Data.Types.TypeManager.TypeManager ( ITransaction  transaction)
inline

Definition at line 25 of file TypeManager.cs.

25  {
26  Transaction = transaction;
27  }
The system implementation of a transaction model that handles isolated operations within a database c...
Definition: Transaction.cs:35

Member Function Documentation

bool IObjectManager. Deveel.Data.Types.TypeManager.AlterObject ( IObjectInfo  objInfo)
inlineprivate

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.

Implements Deveel.Data.Sql.IObjectManager.

Definition at line 58 of file TypeManager.cs.

58  {
59  throw new NotImplementedException();
60  }
void Deveel.Data.Types.TypeManager.Create ( )
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 38 of file TypeManager.cs.

38  {
39  // TODO:
40  }
void IObjectManager. Deveel.Data.Types.TypeManager.CreateObject ( IObjectInfo  objInfo)
inlineprivate

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.

Implements Deveel.Data.Sql.IObjectManager.

Definition at line 42 of file TypeManager.cs.

42  {
43  throw new NotImplementedException();
44  }
void Deveel.Data.Types.TypeManager.Dispose ( )
inline

Definition at line 31 of file TypeManager.cs.

31  {
32  }
bool IObjectManager. Deveel.Data.Types.TypeManager.DropObject ( ObjectName  objName)
inlineprivate

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.

Implements Deveel.Data.Sql.IObjectManager.

Definition at line 62 of file TypeManager.cs.

62  {
63  throw new NotImplementedException();
64  }
IDbObject IObjectManager. Deveel.Data.Types.TypeManager.GetObject ( ObjectName  objName)
inlineprivate

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.

Implements Deveel.Data.Sql.IObjectManager.

Definition at line 54 of file TypeManager.cs.

54  {
55  return GetUserType(objName);
56  }
UserType GetUserType(ObjectName typeName)
Definition: TypeManager.cs:78
UserType Deveel.Data.Types.TypeManager.GetUserType ( ObjectName  typeName)
inline

Definition at line 78 of file TypeManager.cs.

78  {
79  throw new NotImplementedException();
80  }
bool IObjectManager. Deveel.Data.Types.TypeManager.ObjectExists ( ObjectName  objName)
inlineprivate

Checks if an object identified by the given name is managed by this instance.

Parameters
objNameThe name that uniquely identifies the object.
Returns

Implements Deveel.Data.Sql.IObjectManager.

Definition at line 50 of file TypeManager.cs.

50  {
51  throw new NotImplementedException();
52  }
bool IObjectManager. Deveel.Data.Types.TypeManager.RealObjectExists ( ObjectName  objName)
inlineprivate

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.

Implements Deveel.Data.Sql.IObjectManager.

Definition at line 46 of file TypeManager.cs.

46  {
47  throw new NotImplementedException();
48  }
ObjectName Deveel.Data.Types.TypeManager.ResolveName ( ObjectName  objName,
bool  ignoreCase 
)
inline

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.

Implements Deveel.Data.Sql.IObjectManager.

Definition at line 66 of file TypeManager.cs.

66  {
67  throw new NotImplementedException();
68  }
SqlType ITypeResolver. Deveel.Data.Types.TypeManager.ResolveType ( TypeResolveContext  context)
inlineprivate

Implements Deveel.Data.Types.ITypeResolver.

Definition at line 70 of file TypeManager.cs.

70  {
71  var fullTypeName = Transaction.ResolveObjectName(context.TypeName);
72  if (fullTypeName == null)
73  return null;
74 
75  return GetUserType(fullTypeName);
76  }
The system implementation of a transaction model that handles isolated operations within a database c...
Definition: Transaction.cs:35
UserType GetUserType(ObjectName typeName)
Definition: TypeManager.cs:78

Property Documentation

DbObjectType IObjectManager. Deveel.Data.Types.TypeManager.ObjectType
getprivate

Definition at line 34 of file TypeManager.cs.

ITransaction Deveel.Data.Types.TypeManager.Transaction
getprivate set

Definition at line 29 of file TypeManager.cs.


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