![]() |
DeveelDB
20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
|
A container for the FROM clause of a select statement. More...
Public Member Functions | |
| FromClause () | |
| void | AddTable (string alias, FromTable table) |
| Adds a table as source to the query with a given alias. More... | |
| void | AddTable (string alias, string tableName) |
| Adds a simple table reference as the source of the query with a given alias. More... | |
| void | AddTable (string tableName) |
| Adds a simple table reference as the source of the query. More... | |
| void | AddSubQuery (SqlQueryExpression subQuery) |
| Adds a sub-query expression as source of the query. More... | |
| void | AddSubQuery (string alias, SqlQueryExpression subQuery) |
| Adds a sub-query expression as source of the query. More... | |
| void | Join (JoinType joinType, SqlExpression onExpression) |
| Sets a join between the last added table and the one that preceeds it. More... | |
| JoinPart | GetJoinPart (int offset) |
| Gets the descriptor of the join at the given offset. More... | |
Properties | |
| IEnumerable< FromTable > | AllTables [get] |
| Gets an enumeration of all the tables that are the source of the query. More... | |
| int | JoinPartCount [get] |
| Gets a count of all the joins happening in the clause. More... | |
| bool | IsEmpty [get] |
Private Member Functions | |
| FromClause (ObjectData data) | |
| String | CreateNewKey () |
| object IPreparable. | Prepare (IExpressionPreparer preparer) |
| Converts the underlying value of this instance into an object that can be evaluated by an expression. More... | |
| void ISerializable. | GetData (SerializeData data) |
Private Attributes | |
| readonly List< string > | tableNames |
| readonly List< FromTable > | fromTables |
| readonly List< JoinPart > | joinParts |
| int | tableKey |
| An id used for making unique names for anonymous inner selects. More... | |
A container for the FROM clause of a select statement.
This handles the different types of joins.
Definition at line 32 of file FromClause.cs.
|
inline |
Definition at line 33 of file FromClause.cs.
|
inlineprivate |
Definition at line 39 of file FromClause.cs.
|
inline |
Adds a sub-query expression as source of the query.
| subQuery | The sub-query expression as source of the query. |
Definition at line 134 of file FromClause.cs.
|
inline |
Adds a sub-query expression as source of the query.
| alias | The unique alias name of the expression within the clause. |
| subQuery | The sub-query expression as source of the query. |
Definition at line 145 of file FromClause.cs.
|
inline |
Adds a table as source to the query with a given alias.
| alias | The unique name alias of the table source within the clause. |
| table | The table source object to query from. |
Definition at line 93 of file FromClause.cs.
|
inline |
Adds a simple table reference as the source of the query with a given alias.
| alias | The unique name alias of the table source within the clause. |
| tableName | The name of the table in the database to query from. |
Definition at line 116 of file FromClause.cs.
|
inline |
Adds a simple table reference as the source of the query.
| tableName | The name of the table in the database to query from. |
Definition at line 125 of file FromClause.cs.
|
inlineprivate |
Definition at line 83 of file FromClause.cs.
|
inlineprivate |
Implements Deveel.Data.Serialization.ISerializable.
Definition at line 210 of file FromClause.cs.
|
inline |
Gets the descriptor of the join at the given offset.
| offset | The offset of the join descriptor to get. |
Definition at line 174 of file FromClause.cs.
|
inline |
Sets a join between the last added table and the one that preceeds it.
| joinType | The type of join to apply to the two tables. |
| onExpression | The condition for the two tables to join. |
Definition at line 154 of file FromClause.cs.
|
inlineprivate |
Converts the underlying value of this instance into an object that can be evaluated by an expression.
| preparer | The context used to prepare this object. |
Implements Deveel.Data.Sql.Expressions.IPreparable.
Definition at line 178 of file FromClause.cs.
|
private |
Definition at line 57 of file FromClause.cs.
|
private |
Definition at line 58 of file FromClause.cs.
|
private |
An id used for making unique names for anonymous inner selects.
Definition at line 63 of file FromClause.cs.
|
private |
Definition at line 56 of file FromClause.cs.
|
get |
Gets an enumeration of all the tables that are the source of the query.
Definition at line 68 of file FromClause.cs.
|
get |
Definition at line 79 of file FromClause.cs.
|
get |
Gets a count of all the joins happening in the clause.
Definition at line 75 of file FromClause.cs.
1.8.10