22 namespace Deveel.Data.Sql.Variables {
41 if (variableInfo == null)
42 throw new ArgumentException();
44 DefineVariable(variableInfo);
53 throw new ArgumentNullException(
"objName");
55 if (objName.
Parent != null)
56 throw new ArgumentException();
58 return VariableExists(objName.
Name);
62 throw new NotImplementedException();
66 return VariableExists(name,
Transaction.IgnoreIdentifiersCase());
70 throw new NotImplementedException();
74 throw new NotImplementedException();
79 throw new ArgumentNullException(
"objName");
81 if (objName.
Parent != null)
82 throw new ArgumentException();
84 return GetVariable(objName.
Name);
88 throw new NotSupportedException();
93 throw new ArgumentNullException(
"objName");
95 if (objName.
Parent != null)
96 throw new ArgumentException();
98 return DropVariable(objName.
Name);
102 if (objName.
Parent != null)
105 if (VariableExists(objName.
Name, ignoreCase))
112 throw new NotImplementedException();
116 if (!VariableExists(variable.
Name))
119 throw new NotImplementedException();
123 if (!VariableExists(variable.
Name))
126 throw new NotImplementedException();
DataObject Resolve(ObjectName variable)
Returns the value of a given variable.
bool AlterObject(IObjectInfo objInfo)
Modifies an existing object managed, identified by IObjectInfo.FullName component of the given specif...
bool DropObject(ObjectName objName)
Deletes a database object handled by this manager from the system.
void Create()
Initializes the manager into the underlying system.
The system implementation of a transaction model that handles isolated operations within a database c...
Variable GetVariable(string variableName)
bool RealObjectExists(ObjectName objName)
Checks if an object really exists in the system.
Represents a database object, such as a table, a trigger, a type or a column.
Describes the name of an object within a database.
Variable DefineVariable(VariableInfo variableInfo)
void CreateObject(IObjectInfo objInfo)
Create a new object of the ObjectType given the specifications given.
PersistentVariableManager(ITransaction transaction)
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject ...
Defines the properties of a specific SQL Type and handles the values compatible.
DbObjectType ObjectType
Gets the type of objects managed by this instance.
bool DropVariable(string variableName)
An interface to resolve a variable name to a constant object.
ObjectName Parent
Gets the parent reference of the current one, if any or null if none.
string Name
Gets the name of the object being referenced.
IDbObject GetObject(ObjectName objName)
Gets a database object managed by this manager.
bool ObjectExists(ObjectName objName)
Checks if an object identified by the given name is managed by this instance.
bool VariableExists(string name)
SqlType ReturnType(ObjectName variable)
Returns the SqlType of object the given variable is.
Defines the contract for the business managers of database objects of a given type.
The simplest implementation of a transaction.
DbObjectType
The kind of objects that can be handled by a database system and its managers
bool VariableExists(string name, bool ignoreCase)
ObjectName ResolveName(ObjectName objName, bool ignoreCase)
Normalizes the input object name using the case sensitivity specified.