Definition at line 24 of file SchemaManager.cs.
Deveel.Data.Sql.Schemas.SchemaManager.SchemaManager |
( |
ITransaction |
transaction | ) |
|
|
inline |
Definition at line 25 of file SchemaManager.cs.
26 if (transaction == null)
27 throw new ArgumentNullException(
"transaction");
The system implementation of a transaction model that handles isolated operations within a database c...
Deveel.Data.Sql.Schemas.SchemaManager.~SchemaManager |
( |
| ) |
|
|
inlineprivate |
bool IObjectManager. Deveel.Data.Sql.Schemas.SchemaManager.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 87 of file SchemaManager.cs.
88 throw new NotImplementedException();
void Deveel.Data.Sql.Schemas.SchemaManager.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 55 of file SchemaManager.cs.
57 var tableInfo =
new TableInfo(SystemSchema.SchemaInfoTableName);
63 tableInfo = tableInfo.AsReadOnly();
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
The system implementation of a transaction model that handles isolated operations within a database c...
static NumericType Numeric()
static StringType String()
Defines the metadata properties of a table existing within a database.
void IObjectManager. Deveel.Data.Sql.Schemas.SchemaManager.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 67 of file SchemaManager.cs.
68 var schemaInfo = objInfo as SchemaInfo;
69 if (schemaInfo == null)
70 throw new ArgumentException();
void CreateSchema(SchemaInfo schemaInfo)
void Deveel.Data.Sql.Schemas.SchemaManager.CreateSchema |
( |
SchemaInfo |
schemaInfo | ) |
|
|
inline |
Definition at line 119 of file SchemaManager.cs.
120 if (schemaInfo == null)
121 throw new ArgumentNullException(
"schemaInfo");
123 var tableName = SystemSchema.SchemaInfoTableName;
126 var nameObj = DataObject.String(schemaInfo.Name);
128 if (t.Exists(1, nameObj))
129 throw new DatabaseSystemException(
String.Format(
"Schema '{0}' already defined in the database.", schemaInfo.Name));
131 var row = t.NewRow();
133 row.SetValue(0, DataObject.Number(uniqueId));
134 row.SetValue(1, DataObject.String(schemaInfo.Name));
135 row.SetValue(2, DataObject.String(schemaInfo.Type));
136 row.SetValue(3, DataObject.String(schemaInfo.Culture));
A long string in the system.
The system implementation of a transaction model that handles isolated operations within a database c...
void Deveel.Data.Sql.Schemas.SchemaManager.Dispose |
( |
bool |
disposing | ) |
|
|
inlineprivate |
Definition at line 38 of file SchemaManager.cs.
The system implementation of a transaction model that handles isolated operations within a database c...
void Deveel.Data.Sql.Schemas.SchemaManager.Dispose |
( |
| ) |
|
|
inline |
bool IObjectManager. Deveel.Data.Sql.Schemas.SchemaManager.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 91 of file SchemaManager.cs.
bool DropSchema(string name)
bool Deveel.Data.Sql.Schemas.SchemaManager.DropSchema |
( |
string |
name | ) |
|
|
inline |
Definition at line 150 of file SchemaManager.cs.
151 var tableName = SystemSchema.SchemaInfoTableName;
155 var nameObj = DataObject.String(name);
156 return t.Delete(1, nameObj);
The system implementation of a transaction model that handles isolated operations within a database c...
IDbObject IObjectManager. Deveel.Data.Sql.Schemas.SchemaManager.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 83 of file SchemaManager.cs.
Schema GetSchema(string name)
Schema Deveel.Data.Sql.Schemas.SchemaManager.GetSchema |
( |
string |
name | ) |
|
|
inline |
Definition at line 159 of file SchemaManager.cs.
160 if (
String.IsNullOrEmpty(name))
161 throw new ArgumentNullException(
"name");
163 throw new NotImplementedException();
A long string in the system.
bool IObjectManager. Deveel.Data.Sql.Schemas.SchemaManager.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 79 of file SchemaManager.cs.
bool SchemaExists(string name)
bool IObjectManager. Deveel.Data.Sql.Schemas.SchemaManager.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 75 of file SchemaManager.cs.
bool SchemaExists(string name)
ObjectName IObjectManager. Deveel.Data.Sql.Schemas.SchemaManager.ResolveName |
( |
ObjectName |
objName, |
|
|
bool |
ignoreCase |
|
) |
| |
|
inlineprivate |
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 95 of file SchemaManager.cs.
ObjectName ResolveSchemaName(string name, bool ignoreCase)
ObjectName Deveel.Data.Sql.Schemas.SchemaManager.ResolveSchemaName |
( |
string |
name, |
|
|
bool |
ignoreCase |
|
) |
| |
|
inline |
Definition at line 99 of file SchemaManager.cs.
100 var table =
Transaction.GetTable(SystemSchema.SchemaInfoTableName);
102 var comparison = ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal;
104 foreach (var row
in table) {
105 var objSchemaName = row.GetValue(1);
107 throw new InvalidOperationException(
"Invalid column type for SCHEMA name table.");
108 if (objSchemaName.IsNull)
109 throw new InvalidOperationException();
111 var schemaName = objSchemaName.Value.ToString();
112 if (
String.Equals(schemaName, name, comparison))
113 return new ObjectName(schemaName);
A long string in the system.
The system implementation of a transaction model that handles isolated operations within a database c...
bool Deveel.Data.Sql.Schemas.SchemaManager.SchemaExists |
( |
string |
name | ) |
|
|
inline |
Definition at line 141 of file SchemaManager.cs.
142 var tableName = SystemSchema.SchemaInfoTableName;
145 var nameObj = DataObject.String(name);
147 return t.Exists(1, nameObj);
The system implementation of a transaction model that handles isolated operations within a database c...
DbObjectType IObjectManager. Deveel.Data.Sql.Schemas.SchemaManager.ObjectType |
|
getprivate |
ITransaction Deveel.Data.Sql.Schemas.SchemaManager.Transaction |
|
getprivate set |
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Sql.Schemas/SchemaManager.cs