![]() |
DeveelDB
20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
|
Describes the name of an object within a database. More...
Public Member Functions | |
| ObjectName (string name) | |
| Constructs a name reference without a parent. More... | |
| ObjectName (ObjectName parent, string name) | |
| Constructs a name reference with a given parent. More... | |
| ObjectName | Child (string name) |
| Creates a reference what is the child of the current one. More... | |
| ObjectName | Child (ObjectName childName) |
| int | CompareTo (ObjectName other) |
| Compares this instance of the object reference to a given one and returns a value indicating if the two instances equivales. More... | |
| override string | ToString () |
| override bool | Equals (object obj) |
| bool | Equals (ObjectName other) |
| bool | Equals (ObjectName other, bool ignoreCase) |
| Compares this object name with the other one given, according to the case sensitivity specified. More... | |
| override int | GetHashCode () |
Static Public Member Functions | |
| static ObjectName | Parse (string s) |
| Parses the given string into a ObjectName object. More... | |
| static ObjectName | ResolveSchema (string schemaName, string name) |
| Creates a new reference to a table, given a schema and a table name. More... | |
| static void | Serialize (ObjectName objectName, Stream stream) |
| static void | Serialize (ObjectName objectName, BinaryWriter writer) |
| static ObjectName | Deserialize (Stream stream) |
| static ObjectName | Deserialize (BinaryReader reader) |
Public Attributes | |
| const string | GlobName = "*" |
| The special name used as a wild-card to indicate all the columns of a table must be referenced in a given context. More... | |
| const char | Separator = '.' |
| The character that separates a name from its parent or child. More... | |
Properties | |
| ObjectName | Parent [get, private set] |
Gets the parent reference of the current one, if any or null if none. More... | |
| string | ParentName [get] |
| string | Name [get, private set] |
| Gets the name of the object being referenced. More... | |
| string | FullName [get] |
| Gets the full reference name formatted. More... | |
| bool | IsGlob [get] |
| Indicates if this reference equivales to GlobName. More... | |
Private Member Functions | |
| ObjectName (ObjectData graph) | |
| void ISerializable. | GetData (SerializeData graph) |
Describes the name of an object within a database.
The name of an object is composed by multiple parts, depending on the level of nesting of the object this name references.
For example, a reference to a table will be composed by the name of the schema and the name of the table: Schema.Table, while a reference to a column will be composed by the name of the schema, the name of the parent table and the name of the column itself: Schema.Table.Column.
Depending on the xecution context, parts of the name can be omitted and will be resolved at run-time.
Definition at line 44 of file ObjectName.cs.
|
inline |
Constructs a name reference without a parent.
| name | The object name. |
NOTE: This constructor is intended to be handling a name with no parent: if the string provided as name contains any Separator character, this will make the resolution to fail at run-time. User Parse method to obtain a reference tree.
| ArgumentNullException | If name is null or empty. |
Definition at line 71 of file ObjectName.cs.
|
inline |
Constructs a name reference with a given parent.
| parent | The parent reference of the one being constructed |
| name | The name of the object. |
| ArgumentNullException | If name is null or empty. |
Definition at line 83 of file ObjectName.cs.
|
inlineprivate |
Definition at line 91 of file ObjectName.cs.
|
inline |
Creates a reference what is the child of the current one.
| name | The name of the child rerefence. |
Definition at line 189 of file ObjectName.cs.
|
inline |
Definition at line 193 of file ObjectName.cs.
|
inline |
Compares this instance of the object reference to a given one and returns a value indicating if the two instances equivales.
| other | The other object reference to compare. |
Definition at line 211 of file ObjectName.cs.
|
inlinestatic |
Definition at line 311 of file ObjectName.cs.
|
inlinestatic |
Definition at line 317 of file ObjectName.cs.
|
inline |
Definition at line 241 of file ObjectName.cs.
|
inline |
Definition at line 249 of file ObjectName.cs.
|
inline |
Compares this object name with the other one given, according to the case sensitivity specified.
| other | The other ObjectName to compare. |
| ignoreCase | The specification to either ignore the case for comparison. |
true if the two instances are equal, according to the case sensitivity given, or false otherwise. Definition at line 263 of file ObjectName.cs.
|
inlineprivate |
Implements Deveel.Data.Serialization.ISerializable.
Definition at line 236 of file ObjectName.cs.
|
inline |
Definition at line 279 of file ObjectName.cs.
|
inlinestatic |
Parses the given string into a ObjectName object.
| s | The string to parse |
| FormatException | If the given input string is of an invalid format. |
| ArgumentNullException | If the given string is null or empty. |
Definition at line 139 of file ObjectName.cs.
|
inlinestatic |
Creates a new reference to a table, given a schema and a table name.
| schemaName | The name of the schema that is the parent of the given table. |
| name | The name of the table to reference. |
Definition at line 172 of file ObjectName.cs.
|
inlinestatic |
Definition at line 287 of file ObjectName.cs.
|
inlinestatic |
Definition at line 293 of file ObjectName.cs.
|
inline |
Definition at line 225 of file ObjectName.cs.
| const string Deveel.Data.Sql.ObjectName.GlobName = "*" |
The special name used as a wild-card to indicate all the columns of a table must be referenced in a given context.
Definition at line 49 of file ObjectName.cs.
| const char Deveel.Data.Sql.ObjectName.Separator = '.' |
The character that separates a name from its parent or child.
Definition at line 54 of file ObjectName.cs.
|
get |
Gets the full reference name formatted.
Definition at line 114 of file ObjectName.cs.
|
get |
Indicates if this reference equivales to GlobName.
Definition at line 121 of file ObjectName.cs.
|
getprivate set |
Gets the name of the object being referenced.
Definition at line 108 of file ObjectName.cs.
|
getprivate set |
Gets the parent reference of the current one, if any or null if none.
Definition at line 99 of file ObjectName.cs.
|
get |
Definition at line 101 of file ObjectName.cs.
1.8.10