DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Package Functions | Properties | Private Member Functions | Private Attributes | List of all members
Deveel.Data.Query Class Reference
Inheritance diagram for Deveel.Data.Query:
Deveel.Data.IQuery Deveel.Data.IRequest Deveel.Data.Diagnostics.IEventSource

Public Member Functions

IBlock CreateBlock ()
 
void Dispose ()
 

Package Functions

 Query (ISession session)
 
 Query (ISession session, SqlQuery sourceQuery)
 

Properties

IQuery IRequest. Query [get]
 
IQueryContext Context [get, private set]
 
ISession Session [get, private set]
 
DateTimeOffset StartedOn [get, private set]
 
SqlQuery SourceQuery [get, private set]
 
bool HasSourceQuery [get]
 
IContext IEventSource. Context [get]
 
IEventSource IEventSource. ParentSource [get]
 
IEnumerable< KeyValuePair< string, object > > IEventSource. Metadata [get]
 
- Properties inherited from Deveel.Data.IQuery
new IQueryContext Context [get]
 
ISession Session [get]
 
- Properties inherited from Deveel.Data.IRequest
IQuery Query [get]
 
- Properties inherited from Deveel.Data.Diagnostics.IEventSource
IContext Context [get]
 
IEventSource ParentSource [get]
 Gets an optional parent source. More...
 
IEnumerable< KeyValuePair< string, object > > Metadata [get]
 Gets the list of metadata associated to the source. More...
 

Private Member Functions

Dictionary< string, object > GetMetadata ()
 
 ~Query ()
 
IBlockContext IRequest. CreateBlockContext ()
 
void Dispose (bool disposing)
 

Private Attributes

Dictionary< string, object > metadata
 

Detailed Description

Definition at line 26 of file Query.cs.

Constructor & Destructor Documentation

Deveel.Data.Query.Query ( ISession  session)
inlinepackage

Definition at line 29 of file Query.cs.

30  : this(session, null) {
31  }
Deveel.Data.Query.Query ( ISession  session,
SqlQuery  sourceQuery 
)
inlinepackage

Definition at line 33 of file Query.cs.

33  {
34  Session = session;
35  SourceQuery = sourceQuery;
36 
38  Context.RegisterInstance<IQuery>(this);
39 
40  StartedOn = DateTimeOffset.UtcNow;
41 
43  }
IQueryContext CreateQueryContext()
SqlQuery SourceQuery
Definition: Query.cs:74
This is a session that is constructed around a given user and a transaction, to the given database...
Definition: Session.cs:32
new ISessionContext Context
Definition: ISession.cs:48
Dictionary< string, object > GetMetadata()
Definition: Query.cs:45
DateTimeOffset StartedOn
Definition: Query.cs:72
Dictionary< string, object > metadata
Definition: Query.cs:27
Deveel.Data.Query.~Query ( )
inlineprivate

Definition at line 52 of file Query.cs.

52  {
53  Dispose(false);
54  }
void Dispose()
Definition: Query.cs:80

Member Function Documentation

IBlock Deveel.Data.Query.CreateBlock ( )
inline

Definition at line 60 of file Query.cs.

60  {
61  return new Block(this);
62  }
IBlockContext IRequest. Deveel.Data.Query.CreateBlockContext ( )
inlineprivate

Implements Deveel.Data.IRequest.

Definition at line 56 of file Query.cs.

56  {
57  return Context.CreateBlockContext();
58  }
void Deveel.Data.Query.Dispose ( )
inline

Definition at line 80 of file Query.cs.

80  {
81  Dispose(true);
82  GC.SuppressFinalize(this);
83  }
void Dispose()
Definition: Query.cs:80
void Deveel.Data.Query.Dispose ( bool  disposing)
inlineprivate

Definition at line 85 of file Query.cs.

85  {
86  if (disposing) {
87  if (Context != null)
88  Context.Dispose();
89  }
90 
91  Context = null;
92  Session = null;
93  }
virtual void Dispose(bool disposing)
Definition: Context.cs:63
This is a session that is constructed around a given user and a transaction, to the given database...
Definition: Session.cs:32
Dictionary<string, object> Deveel.Data.Query.GetMetadata ( )
inlineprivate

Definition at line 45 of file Query.cs.

45  {
46  return new Dictionary<string, object> {
47  { "query.startTime", StartedOn },
48  { "query.source", SourceQuery }
49  };
50  }
SqlQuery SourceQuery
Definition: Query.cs:74
DateTimeOffset StartedOn
Definition: Query.cs:72

Member Data Documentation

Dictionary<string, object> Deveel.Data.Query.metadata
private

Definition at line 27 of file Query.cs.

Property Documentation

IQueryContext Deveel.Data.Query.Context
getprivate set

Definition at line 68 of file Query.cs.

IContext IEventSource. Deveel.Data.Query.Context
getprivate

Definition at line 95 of file Query.cs.

bool Deveel.Data.Query.HasSourceQuery
get

Definition at line 76 of file Query.cs.

IEnumerable<KeyValuePair<string, object> > IEventSource. Deveel.Data.Query.Metadata
getprivate

Definition at line 103 of file Query.cs.

IEventSource IEventSource. Deveel.Data.Query.ParentSource
getprivate

Definition at line 99 of file Query.cs.

IQuery IRequest. Deveel.Data.Query.Query
getprivate

Definition at line 64 of file Query.cs.

ISession Deveel.Data.Query.Session
getprivate set

Definition at line 70 of file Query.cs.

SqlQuery Deveel.Data.Query.SourceQuery
getprivate set

Definition at line 74 of file Query.cs.

DateTimeOffset Deveel.Data.Query.StartedOn
getprivate set

Definition at line 72 of file Query.cs.


The documentation for this class was generated from the following file: