Definition at line 22 of file CursorManager.cs.
Deveel.Data.Sql.Cursors.CursorManager.CursorManager |
( |
ICursorScope |
scope | ) |
|
|
inline |
Definition at line 25 of file CursorManager.cs.
27 throw new ArgumentNullException(
"scope");
Deveel.Data.Sql.Cursors.CursorManager.~CursorManager |
( |
| ) |
|
|
inlineprivate |
bool IObjectManager. Deveel.Data.Sql.Cursors.CursorManager.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 82 of file CursorManager.cs.
83 throw new NotSupportedException(
"Cannot alter a cursor");
void IObjectManager. Deveel.Data.Sql.Cursors.CursorManager.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 63 of file CursorManager.cs.
void IObjectManager. Deveel.Data.Sql.Cursors.CursorManager.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 66 of file CursorManager.cs.
void DeclareCursor(CursorInfo cursorInfo)
bool Deveel.Data.Sql.Cursors.CursorManager.CursorExists |
( |
string |
cursorName | ) |
|
|
inline |
Definition at line 117 of file CursorManager.cs.
119 var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
120 return cursors.Any(x => x.CursorInfo.CursorName.Equals(cursorName, comparison));
void Deveel.Data.Sql.Cursors.CursorManager.DeclareCursor |
( |
CursorInfo |
cursorInfo | ) |
|
|
inline |
Definition at line 102 of file CursorManager.cs.
103 if (cursorInfo == null)
104 throw new ArgumentNullException(
"cursorInfo");
108 var cursorName = cursorInfo.CursorName;
109 if (
cursors.Any(x => x.CursorInfo.CursorName.Equals(cursorName, StringComparison.OrdinalIgnoreCase)))
110 throw new ArgumentException(
String.Format(
"Cursor '{0}' was already declared.", cursorName));
112 var cursor =
new Cursor(cursorInfo);
A long string in the system.
A cursor is a named, precomputed, query, that accepts optional parameters and handles a state of the ...
void Deveel.Data.Sql.Cursors.CursorManager.Dispose |
( |
| ) |
|
|
inline |
void Deveel.Data.Sql.Cursors.CursorManager.Dispose |
( |
bool |
disposing | ) |
|
|
inlineprivate |
void Deveel.Data.Sql.Cursors.CursorManager.DisposeCursor |
( |
Cursor |
cursor | ) |
|
|
inlinepackage |
Definition at line 129 of file CursorManager.cs.
130 var name = cursor.CursorInfo.CursorName;
131 for (
int i =
cursors.Count - 1; i >= 0; i--) {
132 var cursorName =
cursors[i].CursorInfo.CursorName;
133 if (cursorName.Equals(name, StringComparison.OrdinalIgnoreCase))
bool Deveel.Data.Sql.Cursors.CursorManager.DropCursor |
( |
string |
cursorName | ) |
|
|
inline |
Definition at line 138 of file CursorManager.cs.
140 var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
141 for (
int i =
cursors.Count - 1; i >= 0; i--) {
143 if (cursor.CursorInfo.CursorName.Equals(cursorName, comparison)) {
bool IObjectManager. Deveel.Data.Sql.Cursors.CursorManager.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 86 of file CursorManager.cs.
bool DropCursor(string cursorName)
Cursor Deveel.Data.Sql.Cursors.CursorManager.GetCursor |
( |
string |
cursorName | ) |
|
|
inline |
Definition at line 123 of file CursorManager.cs.
125 var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
126 return cursors.FirstOrDefault(x => x.CursorInfo.CursorName.Equals(cursorName, comparison));
IDbObject IObjectManager. Deveel.Data.Sql.Cursors.CursorManager.GetObject |
( |
ObjectName |
objName | ) |
|
|
inlineprivate |
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 78 of file CursorManager.cs.
Cursor GetCursor(string cursorName)
bool IObjectManager. Deveel.Data.Sql.Cursors.CursorManager.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 74 of file CursorManager.cs.
bool CursorExists(string cursorName)
bool IObjectManager. Deveel.Data.Sql.Cursors.CursorManager.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 70 of file CursorManager.cs.
bool CursorExists(string cursorName)
ObjectName Deveel.Data.Sql.Cursors.CursorManager.ResolveName |
( |
ObjectName |
objName, |
|
|
bool |
ignoreCase |
|
) |
| |
|
inline |
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 90 of file CursorManager.cs.
91 var ojectName = objName.Name;
92 var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
93 foreach (var cursor
in cursors) {
94 var cursorName = cursor.CursorInfo.CursorName;
95 if (cursorName.Equals(ojectName, comparison))
96 return new ObjectName(cursorName);
List<Cursor> Deveel.Data.Sql.Cursors.CursorManager.cursors |
|
private |
DbObjectType IObjectManager. Deveel.Data.Sql.Cursors.CursorManager.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.Sql.Cursors/CursorManager.cs