DeveelDB
20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
|
An implementation of IFromTableSource that wraps around a SqlQueryExpression as a sub-query source. 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... | |
Package Functions | |
FromTableSubQuerySource (bool caseInsensitive, string uniqueKey, SqlQueryExpression queryExpression, QueryExpressionFrom fromSet, ObjectName alias) | |
Properties | |
SqlQueryExpression | QueryExpression [get, private set] |
QueryExpressionFrom | QueryFrom [get, private set] |
ObjectName | AliasName [get, private set] |
bool | IgnoreCase [get, private set] |
string | UniqueName [get, private set] |
ObjectName[] | ColumnNames [get] |
Properties inherited from Deveel.Data.Sql.Query.IFromTableSource | |
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... | |
Private Member Functions | |
void | EnsureColumnNames () |
Makes sure the columnNames list is created correctly. More... | |
bool | StringCompare (string str1, string str2) |
bool | Matches (ObjectName name, string catalog, string schema, string table, string column) |
Private Attributes | |
ObjectName[] | columnNames |
An implementation of IFromTableSource that wraps around a SqlQueryExpression as a sub-query source.
Definition at line 27 of file FromTableSubQuerySource.cs.
|
inlinepackage |
Definition at line 30 of file FromTableSubQuerySource.cs.
|
inlineprivate |
Makes sure the columnNames list is created correctly.
Definition at line 76 of file FromTableSubQuerySource.cs.
|
inlineprivate |
Definition at line 94 of file FromTableSubQuerySource.cs.
|
inline |
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.
Implements Deveel.Data.Sql.Query.IFromTableSource.
Definition at line 39 of file FromTableSubQuerySource.cs.
|
inline |
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.
Implements Deveel.Data.Sql.Query.IFromTableSource.
Definition at line 141 of file FromTableSubQuerySource.cs.
|
inline |
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.
Implements Deveel.Data.Sql.Query.IFromTableSource.
Definition at line 128 of file FromTableSubQuerySource.cs.
|
inlineprivate |
Definition at line 89 of file FromTableSubQuerySource.cs.
|
private |
Definition at line 28 of file FromTableSubQuerySource.cs.
|
getprivate set |
Definition at line 60 of file FromTableSubQuerySource.cs.
|
get |
Definition at line 66 of file FromTableSubQuerySource.cs.
|
getprivate set |
Definition at line 62 of file FromTableSubQuerySource.cs.
|
getprivate set |
Definition at line 56 of file FromTableSubQuerySource.cs.
|
getprivate set |
Definition at line 58 of file FromTableSubQuerySource.cs.
|
getprivate set |
Definition at line 64 of file FromTableSubQuerySource.cs.