|
static bool | ObjectExists (this IQuery query, ObjectName objectName) |
|
static bool | ObjectExists (this IQuery query, DbObjectType objectType, ObjectName objectName) |
|
static IDbObject | GetObject (this IQuery query, DbObjectType objType, ObjectName objName) |
|
static IDbObject | GetObject (this IQuery query, DbObjectType objType, ObjectName objName, AccessType accessType) |
|
static void | CreateObject (this IQuery query, IObjectInfo objectInfo) |
|
static bool | DropObject (this IQuery query, DbObjectType objectType, ObjectName objectName) |
|
static void | AlterObject (this IQuery query, IObjectInfo objectInfo) |
|
static ObjectName | ResolveObjectName (this IQuery query, string name) |
|
static ObjectName | ResolveObjectName (this IQuery query, DbObjectType objectType, ObjectName objectName) |
|
static IDbObject | FindObject (this IQuery query, ObjectName objectName) |
|
Definition at line 28 of file Query.Objects.cs.
static void Deveel.Data.Sql.QueryExtensions.AlterObject |
( |
this IQuery |
query, |
|
|
IObjectInfo |
objectInfo |
|
) |
| |
|
inlinestatic |
Definition at line 87 of file Query.Objects.cs.
88 if (objectInfo == null)
89 throw new ArgumentNullException(
"objectInfo");
93 throw new NotSupportedException();
96 if (!query.UserCanAlterObject(objectInfo.ObjectType, objectInfo.FullName))
99 query.Session.AlterObject(objectInfo);
DbObjectType
The kind of objects that can be handled by a database system and its managers
static void Deveel.Data.Sql.QueryExtensions.CreateObject |
( |
this IQuery |
query, |
|
|
IObjectInfo |
objectInfo |
|
) |
| |
|
inlinestatic |
Definition at line 66 of file Query.Objects.cs.
68 if (!query.UserCanCreateObject(objectInfo.ObjectType, objectInfo.FullName))
69 throw new InvalidOperationException();
71 query.Session.CreateObject(objectInfo);
Definition at line 74 of file Query.Objects.cs.
76 return query.Context.DropCursor(objectName.Name);
78 return query.Context.DropVariable(objectName.Name);
80 if (!query.UserCanDropObject(objectType, objectName))
83 query.Session.DropObject(objectType, objectName);
DbObjectType
The kind of objects that can be handled by a database system and its managers
Definition at line 122 of file Query.Objects.cs.
123 if (query.Context.CursorExists(objectName.Name))
124 return query.Context.FindCursor(objectName.Name);
125 if (query.Context.VariableExists(objectName.Name))
126 return query.Context.FindVariable(objectName.Name);
128 return query.Session.FindObject(objectName);
Definition at line 49 of file Query.Objects.cs.
static IDbObject GetObject(this IQuery query, DbObjectType objType, ObjectName objName)
Definition at line 53 of file Query.Objects.cs.
55 return query.Context.FindCursor(objName.Name);
57 return query.Context.FindVariable(objName.Name);
60 if (!query.UserCanAccessObject(objType, objName))
61 throw new InvalidOperationException();
63 return query.Session.GetObject(objType, objName, accessType);
DbObjectType
The kind of objects that can be handled by a database system and its managers
static bool Deveel.Data.Sql.QueryExtensions.ObjectExists |
( |
this IQuery |
query, |
|
|
ObjectName |
objectName |
|
) |
| |
|
inlinestatic |
Definition at line 29 of file Query.Objects.cs.
30 if (query.Context.VariableExists(objectName.Name))
32 if (query.Context.VariableExists(objectName.Name))
35 return query.Session.ObjectExists(objectName);
Definition at line 38 of file Query.Objects.cs.
40 query.Context.CursorExists(objectName.Name))
43 query.Context.VariableExists(objectName.Name))
46 return query.Session.ObjectExists(objectType, objectName);
DbObjectType
The kind of objects that can be handled by a database system and its managers
static ObjectName Deveel.Data.Sql.QueryExtensions.ResolveObjectName |
( |
this IQuery |
query, |
|
|
string |
name |
|
) |
| |
|
inlinestatic |
Definition at line 102 of file Query.Objects.cs.
103 if (query.Context.CursorExists(name))
104 return new ObjectName(name);
105 if (query.Context.VariableExists(name))
106 return new ObjectName(name);
108 return query.Session.ResolveObjectName(name);
Definition at line 111 of file Query.Objects.cs.
113 query.Context.VariableExists(objectName.Name))
114 return new ObjectName(objectName.Name);
116 query.Context.VariableExists(objectName.Name))
117 return new ObjectName(objectName.Name);
119 return query.Session.ResolveObjectName(objectType, objectName);
DbObjectType
The kind of objects that can be handled by a database system and its managers
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Sql/Query.Objects.cs