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.Sql.Variables.PersistentVariableManager Class Reference
Inheritance diagram for Deveel.Data.Sql.Variables.PersistentVariableManager:
Deveel.Data.Sql.Variables.IVariableManager Deveel.Data.Sql.IObjectManager Deveel.Data.Sql.IVariableResolver

Public Member Functions

 PersistentVariableManager (ITransaction transaction)
 
Variable DefineVariable (VariableInfo variableInfo)
 
bool VariableExists (string name)
 
bool DropVariable (string variableName)
 
Variable GetVariable (string variableName)
 
void Dispose ()
 

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. Create ()
 Initializes the manager into the underlying system. More...
 
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...
 
ObjectName IObjectManager. ResolveName (ObjectName objName, bool ignoreCase)
 Normalizes the input object name using the case sensitivity specified. More...
 
bool VariableExists (string name, bool ignoreCase)
 
DataObject IVariableResolver. Resolve (ObjectName variable)
 Returns the value of a given variable. More...
 
SqlType IVariableResolver. ReturnType (ObjectName variable)
 Returns the SqlType of object the given variable is. More...
 

Detailed Description

Definition at line 23 of file PersistentVariableManager.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Variables.PersistentVariableManager.PersistentVariableManager ( ITransaction  transaction)
inline

Definition at line 24 of file PersistentVariableManager.cs.

24  {
25  Transaction = transaction;
26  }
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.Sql.Variables.PersistentVariableManager.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 87 of file PersistentVariableManager.cs.

87  {
88  throw new NotSupportedException();
89  }
void IObjectManager. Deveel.Data.Sql.Variables.PersistentVariableManager.Create ( )
inlineprivate

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 35 of file PersistentVariableManager.cs.

35  {
36  //TODO:
37  }
void IObjectManager. Deveel.Data.Sql.Variables.PersistentVariableManager.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 39 of file PersistentVariableManager.cs.

39  {
40  var variableInfo = objInfo as VariableInfo;
41  if (variableInfo == null)
42  throw new ArgumentException();
43 
44  DefineVariable(variableInfo);
45  }
Variable Deveel.Data.Sql.Variables.PersistentVariableManager.DefineVariable ( VariableInfo  variableInfo)
inline

Implements Deveel.Data.Sql.Variables.IVariableManager.

Definition at line 61 of file PersistentVariableManager.cs.

61  {
62  throw new NotImplementedException();
63  }
void Deveel.Data.Sql.Variables.PersistentVariableManager.Dispose ( )
inline

Definition at line 129 of file PersistentVariableManager.cs.

129  {
130  Transaction = null;
131  }
The system implementation of a transaction model that handles isolated operations within a database c...
Definition: Transaction.cs:35
bool IObjectManager. Deveel.Data.Sql.Variables.PersistentVariableManager.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 91 of file PersistentVariableManager.cs.

91  {
92  if (objName == null)
93  throw new ArgumentNullException("objName");
94 
95  if (objName.Parent != null)
96  throw new ArgumentException();
97 
98  return DropVariable(objName.Name);
99  }
bool Deveel.Data.Sql.Variables.PersistentVariableManager.DropVariable ( string  variableName)
inline

Implements Deveel.Data.Sql.Variables.IVariableManager.

Definition at line 69 of file PersistentVariableManager.cs.

69  {
70  throw new NotImplementedException();
71  }
IDbObject IObjectManager. Deveel.Data.Sql.Variables.PersistentVariableManager.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 77 of file PersistentVariableManager.cs.

77  {
78  if (objName == null)
79  throw new ArgumentNullException("objName");
80 
81  if (objName.Parent != null)
82  throw new ArgumentException();
83 
84  return GetVariable(objName.Name);
85  }
Variable Deveel.Data.Sql.Variables.PersistentVariableManager.GetVariable ( string  variableName)
inline

Implements Deveel.Data.Sql.Variables.IVariableManager.

Definition at line 73 of file PersistentVariableManager.cs.

73  {
74  throw new NotImplementedException();
75  }
bool IObjectManager. Deveel.Data.Sql.Variables.PersistentVariableManager.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 51 of file PersistentVariableManager.cs.

51  {
52  if (objName == null)
53  throw new ArgumentNullException("objName");
54 
55  if (objName.Parent != null)
56  throw new ArgumentException();
57 
58  return VariableExists(objName.Name);
59  }
bool IObjectManager. Deveel.Data.Sql.Variables.PersistentVariableManager.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 47 of file PersistentVariableManager.cs.

47  {
48  return (this as IObjectManager).ObjectExists(objName);
49  }
DataObject IVariableResolver. Deveel.Data.Sql.Variables.PersistentVariableManager.Resolve ( ObjectName  variable)
inlineprivate

Returns the value of a given variable.

Parameters
variable
Returns

Implements Deveel.Data.Sql.IVariableResolver.

Definition at line 115 of file PersistentVariableManager.cs.

115  {
116  if (!VariableExists(variable.Name))
117  return null;
118 
119  throw new NotImplementedException();
120  }
ObjectName IObjectManager. Deveel.Data.Sql.Variables.PersistentVariableManager.ResolveName ( ObjectName  objName,
bool  ignoreCase 
)
inlineprivate

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 101 of file PersistentVariableManager.cs.

101  {
102  if (objName.Parent != null)
103  return null;
104 
105  if (VariableExists(objName.Name, ignoreCase))
106  return new ObjectName(objName.Name);
107 
108  return null;
109  }
SqlType IVariableResolver. Deveel.Data.Sql.Variables.PersistentVariableManager.ReturnType ( ObjectName  variable)
inlineprivate

Returns the SqlType of object the given variable is.

Parameters
variable
Returns

Implements Deveel.Data.Sql.IVariableResolver.

Definition at line 122 of file PersistentVariableManager.cs.

122  {
123  if (!VariableExists(variable.Name))
124  return null;
125 
126  throw new NotImplementedException();
127  }
bool Deveel.Data.Sql.Variables.PersistentVariableManager.VariableExists ( string  name)
inline

Implements Deveel.Data.Sql.Variables.IVariableManager.

Definition at line 65 of file PersistentVariableManager.cs.

65  {
66  return VariableExists(name, Transaction.IgnoreIdentifiersCase());
67  }
The system implementation of a transaction model that handles isolated operations within a database c...
Definition: Transaction.cs:35
bool Deveel.Data.Sql.Variables.PersistentVariableManager.VariableExists ( string  name,
bool  ignoreCase 
)
inlineprivate

Definition at line 111 of file PersistentVariableManager.cs.

111  {
112  throw new NotImplementedException();
113  }

Property Documentation

DbObjectType IObjectManager. Deveel.Data.Sql.Variables.PersistentVariableManager.ObjectType
getprivate

Definition at line 31 of file PersistentVariableManager.cs.

ITransaction Deveel.Data.Sql.Variables.PersistentVariableManager.Transaction
getprivate set

Definition at line 28 of file PersistentVariableManager.cs.


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