DeveelDB
20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
|
An implementation of IFromTableSource that wraps around a ObjectName/ITable object. More...
Public Member Functions | |
FromTableDirectSource (bool caseInsensitive, ITableQueryInfo tableQuery, string uniqueName, ObjectName givenName, ObjectName rootName) | |
Constructs the source. More... | |
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 | |
bool | IgnoreCase [get, private set] |
ObjectName | GivenTableName [get, private set] |
ObjectName | RootTableName [get, private set] |
IQueryPlanNode | QueryPlan [get] |
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 | |
bool | StringCompare (string str1, string str2) |
Private Attributes | |
readonly ITableQueryInfo | tableQuery |
readonly TableInfo | tableInfo |
An implementation of IFromTableSource that wraps around a ObjectName/ITable object.
The handles case insensitive resolution.
Definition at line 30 of file FromTableDirectSource.cs.
|
inline |
Constructs the source.
caseInsensitive | |
tableQuery | |
uniqueName | |
givenName | |
rootName |
Definition at line 42 of file FromTableDirectSource.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 85 of file FromTableDirectSource.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 145 of file FromTableDirectSource.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 110 of file FromTableDirectSource.cs.
|
inlineprivate |
Definition at line 79 of file FromTableDirectSource.cs.
|
private |
Definition at line 32 of file FromTableDirectSource.cs.
|
private |
Definition at line 31 of file FromTableDirectSource.cs.
|
get |
Definition at line 68 of file FromTableDirectSource.cs.
|
getprivate set |
Definition at line 58 of file FromTableDirectSource.cs.
|
getprivate set |
Definition at line 56 of file FromTableDirectSource.cs.
|
get |
Definition at line 62 of file FromTableDirectSource.cs.
|
getprivate set |
Definition at line 60 of file FromTableDirectSource.cs.
|
getprivate set |
Definition at line 66 of file FromTableDirectSource.cs.