DeveelDB
20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
|
A single table resource item in a query which handles the behaviour of resolving references to columns as well as providing various base utility methods for resolving general variable names. More...
Public Member Functions | |
bool | MatchesReference (string catalog, string schema, string table) |
Checks if the table matches the given catalog, schema and table. More... | |
int | ResolveColumnCount (string catalog, string schema, string table, string column) |
Returns the number of instances we can resolve the given catalog, schema, table and column name to a column or columns within the current source. More... | |
ObjectName | ResolveColumn (string catalog, string schema, string table, string column) |
Resolves a variable within the current source. More... | |
Properties | |
string | UniqueName [get] |
Gets a unique name given to this table source. More... | |
ObjectName[] | ColumnNames [get] |
Returns an array of ObjectName objects that references each column available in the table set item in order from left column to right column. More... | |
A single table resource item in a query which handles the behaviour of resolving references to columns as well as providing various base utility methods for resolving general variable names.
Each instance of this interface represents a single FROM resource.
Definition at line 29 of file IFromTableSource.cs.
bool Deveel.Data.Sql.Query.IFromTableSource.MatchesReference | ( | string | catalog, |
string | schema, | ||
string | table | ||
) |
Checks if the table matches the given catalog, schema and table.
catalog | The catalog name used for the matching. |
schema | The schema name used for the matching. |
table | The table name used for the maching. |
If any arguments are null then it is not included in the match.
Used for 'Part.*' type glob searches.
Implemented in Deveel.Data.Sql.Query.FromTableDirectSource, and Deveel.Data.Sql.Query.FromTableSubQuerySource.
ObjectName Deveel.Data.Sql.Query.IFromTableSource.ResolveColumn | ( | string | catalog, |
string | schema, | ||
string | table, | ||
string | column | ||
) |
Resolves a variable within the current source.
catalog | |
schema | |
table | |
column |
This method does not have to check whether the parameters reference more than one column. If more than one column is referenced, the actual column returned is implementation specific.
Implemented in Deveel.Data.Sql.Query.FromTableDirectSource, and Deveel.Data.Sql.Query.FromTableSubQuerySource.
int Deveel.Data.Sql.Query.IFromTableSource.ResolveColumnCount | ( | string | catalog, |
string | schema, | ||
string | table, | ||
string | column | ||
) |
Returns the number of instances we can resolve the given catalog, schema, table and column name to a column or columns within the current source.
catalog | |
schema | |
table | |
column |
Note that if catalog, schema, table or column is null then it means it doesn't matter.
Note that parameters of null, null, null, null, null, null, null, not null, null, null, not null, not null, null, not null, not null, not null, and not null, not null, not null, not null are only accepted.
For example, say we need to resolve the column 'id' the arguments are null, null, null, "id"
. This may resolve to multiple columns if there is a mixture of tables with "id" as a column.
Implemented in Deveel.Data.Sql.Query.FromTableSubQuerySource, and Deveel.Data.Sql.Query.FromTableDirectSource.
|
get |
Returns an array of ObjectName objects that references each column available in the table set item in order from left column to right column.
Definition at line 43 of file IFromTableSource.cs.
|
get |
Gets a unique name given to this table source.
No other sources will share this identifier string.
Definition at line 36 of file IFromTableSource.cs.