DeveelDB
20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
|
This is a session that is constructed around a given user and a transaction, to the given database. More...
Public Member Functions | |
Session (ITransaction transaction, User user) | |
Constructs the session for the given user and transaction to the given database. More... | |
void | Dispose () |
void | Access (IEnumerable< IDbObject > objects, AccessType accessType) |
void | Exit (IEnumerable< IDbObject > objects, AccessType accessType) |
void | Lock (IEnumerable< IDbObject > objects, AccessType accessType, LockingMode mode) |
void | Commit () |
Commits the latest changes made by the user in the session. More... | |
void | Rollback () |
Rolls-back all the modifications made by the user in this session More... | |
IQuery | CreateQuery () |
Properties | |
string | CurrentSchema [get] |
DateTimeOffset | LastCommandTime [get, private set] |
DateTimeOffset | StartedOn [get, private set] |
ISessionContext | Context [get, private set] |
User | User [get, private set] |
IEventSource IEventSource. | ParentSource [get] |
IContext IEventSource. | Context [get] |
IEnumerable< KeyValuePair< string, object > > IEventSource. | Metadata [get] |
ITransaction | Transaction [get, private set] |
IDatabase | Database [get] |
Properties inherited from Deveel.Data.ISession | |
string | CurrentSchema [get] |
Gets the name of the current schema of this session. More... | |
DateTimeOffset | StartedOn [get] |
DateTimeOffset | LastCommandTime [get] |
User | User [get] |
ITransaction | Transaction [get] |
Gets the instance of ITransaction that handles the transactional operations of this session. More... | |
new ISessionContext | Context [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 | |
~Session () | |
IEnumerable< KeyValuePair< string, object > > | GetMetadata () |
void | AssertNotDisposed () |
void | CheckAccess (ILockable[] lockables, AccessType accessType) |
void | ReleaseLocks () |
void | OnCommand () |
void | DisposeTransaction () |
void | Dispose (bool disposing) |
Private Attributes | |
List< LockHandle > | lockHandles |
bool | disposed |
This is a session that is constructed around a given user and a transaction, to the given database.
Definition at line 32 of file Session.cs.
|
inline |
Constructs the session for the given user and transaction to the given database.
transaction | A transaction that handles the commands issued by the user during the session. |
user |
Definition at line 44 of file Session.cs.
|
inlineprivate |
Definition at line 63 of file Session.cs.
|
inline |
Implements Deveel.Data.ISession.
Definition at line 111 of file Session.cs.
|
inlineprivate |
Definition at line 106 of file Session.cs.
|
inlineprivate |
Definition at line 166 of file Session.cs.
|
inline |
Commits the latest changes made by the user in the session.
Implements Deveel.Data.ISession.
Definition at line 200 of file Session.cs.
|
inline |
Implements Deveel.Data.ISession.
Definition at line 235 of file Session.cs.
|
inline |
Definition at line 67 of file Session.cs.
|
inlineprivate |
Definition at line 239 of file Session.cs.
|
inlineprivate |
Definition at line 226 of file Session.cs.
|
inline |
Implements Deveel.Data.ISession.
Definition at line 141 of file Session.cs.
|
inlineprivate |
Definition at line 96 of file Session.cs.
|
inline |
Implements Deveel.Data.ISession.
Definition at line 147 of file Session.cs.
|
inlineprivate |
Definition at line 196 of file Session.cs.
|
inlineprivate |
Definition at line 178 of file Session.cs.
|
inline |
Rolls-back all the modifications made by the user in this session
<seealse cref="ITransaction">
Implements Deveel.Data.ISession.
Definition at line 213 of file Session.cs.
|
private |
Definition at line 34 of file Session.cs.
|
private |
Definition at line 33 of file Session.cs.
|
getprivate set |
Definition at line 80 of file Session.cs.
|
getprivate |
Definition at line 88 of file Session.cs.
|
get |
Definition at line 72 of file Session.cs.
|
get |
Definition at line 192 of file Session.cs.
|
getprivate set |
Definition at line 76 of file Session.cs.
|
getprivate |
Definition at line 92 of file Session.cs.
|
getprivate |
Definition at line 84 of file Session.cs.
|
getprivate set |
Definition at line 78 of file Session.cs.
|
getprivate set |
Definition at line 104 of file Session.cs.
|
getprivate set |
Definition at line 82 of file Session.cs.