Definition at line 29 of file RoutineManager.cs.
Deveel.Data.Routines.RoutineManager.RoutineManager |
( |
ITransaction |
transaction | ) |
|
|
inline |
Definition at line 37 of file RoutineManager.cs.
38 if (transaction == null)
39 throw new ArgumentNullException(
"transaction");
bool IObjectManager. Deveel.Data.Routines.RoutineManager.AlterObject |
( |
IObjectInfo |
objInfo | ) |
|
|
inlineprivate |
Modifies an existing object managed, identified by IObjectInfo.FullName component of the given specification, with the format given.
- Parameters
-
objInfo | The 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
-
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 141 of file RoutineManager.cs.
142 var routineInfo = objInfo as RoutineInfo;
143 if (routineInfo == null)
144 throw new ArgumentException();
bool AlterRoutine(RoutineInfo routineInfo)
bool Deveel.Data.Routines.RoutineManager.AlterRoutine |
( |
RoutineInfo |
routineInfo | ) |
|
|
inline |
void Deveel.Data.Routines.RoutineManager.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 74 of file RoutineManager.cs.
95 var fkCol =
new[] {
"routine_schema",
"routine_name"};
96 var refCol =
new[] {
"schema",
"name"};
101 onDelete, onUpdate,
"ROUTINE_PARAMS_FK");
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
static NumericType Integer()
ForeignKeyAction
Enumerates the foreign key referential trigger actions.
static readonly ObjectName RoutineTableName
Provides utilities and properties for handling the SYSTEN schema of a database.
static StringType String()
Defines the metadata properties of a table existing within a database.
static readonly ObjectName RoutineParameterTableName
void IObjectManager. Deveel.Data.Routines.RoutineManager.CreateObject |
( |
IObjectInfo |
objInfo | ) |
|
|
inlineprivate |
Create a new object of the ObjectType given the specifications given.
- Parameters
-
objInfo | The object specifications used to create a new object. |
- Exceptions
-
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 104 of file RoutineManager.cs.
106 throw new ArgumentNullException(
"objInfo");
108 var routineInfo = objInfo as RoutineInfo;
109 if (routineInfo == null)
110 throw new ArgumentException();
void CreateRoutine(RoutineInfo routineInfo)
void Deveel.Data.Routines.RoutineManager.CreateRoutine |
( |
RoutineInfo |
routineInfo | ) |
|
|
inline |
void Deveel.Data.Routines.RoutineManager.Dispose |
( |
| ) |
|
|
inline |
bool IObjectManager. Deveel.Data.Routines.RoutineManager.DropObject |
( |
ObjectName |
objName | ) |
|
|
inlineprivate |
Deletes a database object handled by this manager from the system.
- Parameters
-
objName | The 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 149 of file RoutineManager.cs.
bool DropRoutine(ObjectName objName)
bool Deveel.Data.Routines.RoutineManager.DropRoutine |
( |
ObjectName |
objName | ) |
|
|
inline |
Definition at line 44 of file RoutineManager.cs.
49 using (var context = session.CreateQuery()) {
52 t = t.ExhaustiveSelect(context,
58 throw new Exception(
"Assert failed: multiple procedure names for " + routineName);
static SqlBinaryExpression Equal(SqlExpression left, SqlExpression right)
static DataObject String(string s)
SqlExpressionType
All the possible type of SqlExpression supported
virtual ObjectName GetResolvedColumnName(int column)
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject ...
string Name
Gets the name of the object being referenced.
static SqlReferenceExpression Reference(ObjectName objectName)
Defines the base class for instances that represent SQL expression tree nodes.
static SqlConstantExpression Constant(object value)
Gets a database object managed by this manager.
- Parameters
-
objName | The 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 132 of file RoutineManager.cs.
IRoutine GetRoutine(ObjectName routineName)
bool IObjectManager. Deveel.Data.Routines.RoutineManager.ObjectExists |
( |
ObjectName |
objName | ) |
|
|
inlineprivate |
Checks if an object identified by the given name is managed by this instance.
- Parameters
-
objName | The name that uniquely identifies the object. |
- Returns
Implements Deveel.Data.Sql.IObjectManager.
Definition at line 123 of file RoutineManager.cs.
bool RoutineExists(ObjectName objName)
bool IObjectManager. Deveel.Data.Routines.RoutineManager.RealObjectExists |
( |
ObjectName |
objName | ) |
|
|
inlineprivate |
Checks if an object really exists in the system.
- Parameters
-
objName | The 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 119 of file RoutineManager.cs.
bool RoutineExists(ObjectName objName)
Normalizes the input object name using the case sensitivity specified.
- Parameters
-
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. |
- 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 163 of file RoutineManager.cs.
164 throw new NotImplementedException();
Resolves a routine that matches the given invocation within the context provided.
- Parameters
-
request | The routine invocation request used to resolve the routine. |
query | The parent query context. |
- Returns
- Returns an instance of IRoutine that matches the given request, or
null
if no routine was found in the underlying context.
Implements Deveel.Data.Routines.IRoutineResolver.
Definition at line 167 of file RoutineManager.cs.
bool Deveel.Data.Routines.RoutineManager.RoutineExists |
( |
ObjectName |
objName | ) |
|
|
inline |
const string Deveel.Data.Routines.RoutineManager.ExternalProcedureType = "ext_procedure" |
|
private |
const string Deveel.Data.Routines.RoutineManager.ExtrernalFunctionType = "ext_function" |
|
private |
const string Deveel.Data.Routines.RoutineManager.FunctionType = "function" |
|
private |
const string Deveel.Data.Routines.RoutineManager.ProcedureType = "procedure" |
|
private |
ITransaction Deveel.Data.Routines.RoutineManager.transaction |
|
private |
DbObjectType IObjectManager. Deveel.Data.Routines.RoutineManager.ObjectType |
|
getprivate |
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Routines/RoutineManager.cs