DeveelDB
20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
deveeldb.git
src
deveeldb
Deveel.Data.Transactions
TransactionContext.cs
Go to the documentation of this file.
1
//
2
// Copyright 2010-2015 Deveel
3
//
4
// Licensed under the Apache License, Version 2.0 (the "License");
5
// you may not use this file except in compliance with the License.
6
// You may obtain a copy of the License at
7
//
8
// http://www.apache.org/licenses/LICENSE-2.0
9
//
10
// Unless required by applicable law or agreed to in writing, software
11
// distributed under the License is distributed on an "AS IS" BASIS,
12
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
// See the License for the specific language governing permissions and
14
// limitations under the License.
15
//
16
17
using
System
;
18
19
using
Deveel
.
Data
.
Services
;
20
using
Deveel
.
Data
.
Sql
.
Cursors
;
21
using
Deveel
.
Data
.
Sql
.
Variables
;
22
23
namespace
Deveel
.Data.Transactions {
24
public
class
TransactionContext
:
Context
,
ITransactionContext
{
25
public
TransactionContext
(
IDatabaseContext
databaseContext)
26
: base(databaseContext) {
27
VariableManager
=
new
VariableManager
(
this
);
28
CursorManager
=
new
CursorManager
(
this
);
29
}
30
31
protected
override
string
ContextName {
32
get
{
return
ContextNames
.
Transaction
; }
33
}
34
35
public
IDatabaseContext
DatabaseContext
{
36
get
{
return
(
IDatabaseContext
) ParentContext; }
37
}
38
39
public
ISessionContext
CreateSessionContext
() {
40
return
new
SessionContext
(
this
);
41
}
42
43
bool
ICursorScope
.
IgnoreCase
{
44
get
{
return
this.IgnoreIdentifiersCase(); }
45
}
46
47
public
IVariableManager
VariableManager
{
get
;
private
set; }
48
49
public
CursorManager
CursorManager
{
get
;
private
set; }
50
51
protected
override
void
Dispose
(
bool
disposing) {
52
if
(disposing) {
53
if
(
VariableManager
!= null)
54
VariableManager
.
Dispose
();
55
if
(
CursorManager
!= null)
56
CursorManager
.
Dispose
();
57
}
58
59
CursorManager
= null;
60
VariableManager
= null;
61
base.
Dispose
(disposing);
62
}
63
}
64
}
Deveel.Data.ISessionContext
Definition:
ISessionContext.cs:23
Deveel
Deveel.Data.Sql.Variables
Definition:
ContextExtensions.cs:23
System
Definition:
NonSerializedAttribute.cs:3
Deveel.Data.IDatabaseContext
The context of a single database within a system.
Definition:
IDatabaseContext.cs:32
Deveel.Data.Sql.Variables.IVariableManager
Definition:
IVariableManager.cs:20
Deveel.Data.Context
Definition:
Context.cs:22
Deveel.Data.ContextNames.Transaction
const string Transaction
Definition:
ContextNames.cs:23
Deveel.Data.Transactions.ITransactionContext
Definition:
ITransactionContext.cs:24
Deveel.Data.Sql.Cursors.CursorManager
Definition:
CursorManager.cs:22
Deveel.Data.Sql.Variables.VariableManager
Definition:
VariableManager.cs:23
Deveel.Data.Sql.Cursors.CursorManager.Dispose
void Dispose()
Definition:
CursorManager.cs:39
Deveel.Data.Services
Definition:
IRegistrationConfiguration.cs:19
Deveel.Data.Transactions.TransactionContext
Definition:
TransactionContext.cs:24
Deveel.Data.Sql.Cursors.ICursorScope
Definition:
ICursorScope.cs:22
Deveel.Data
Definition:
ActiveSessionList.cs:22
Deveel.Data.Transactions.TransactionContext.CreateSessionContext
ISessionContext CreateSessionContext()
Definition:
TransactionContext.cs:39
Deveel.Data.DatabaseContext
Definition:
DatabaseContext.cs:25
Deveel.Data.Sql.Variables.VariableManager.Dispose
void Dispose()
Definition:
VariableManager.cs:34
Deveel.Data.Sql.Cursors.ICursorScope.IgnoreCase
bool IgnoreCase
Definition:
ICursorScope.cs:23
Deveel.Data.Sql.Cursors
Definition:
ContextExtensions.cs:22
Deveel.Data.Transactions.TransactionContext.TransactionContext
TransactionContext(IDatabaseContext databaseContext)
Definition:
TransactionContext.cs:25
Deveel.Data.SessionContext
Definition:
SessionContext.cs:23
Deveel.Data.ContextNames
Definition:
ContextNames.cs:20
Deveel.Data.Sql
Definition:
CellId.cs:22
Deveel.Data.Transactions.TransactionContext.Dispose
override void Dispose(bool disposing)
Definition:
TransactionContext.cs:51
Generated by
1.8.10