DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Static Public Member Functions | List of all members
Deveel.Data.Transactions.TransactionContextExtensions Class Reference

Static Public Member Functions

static bool IgnoreIdentifiersCase (this ITransactionContext transaction)
 
static void IgnoreIdentifiersCase (this ITransactionContext transaction, bool value)
 
static bool ReadOnly (this ITransactionContext transaction)
 
static void ReadOnly (this ITransactionContext transaction, bool value)
 
static bool AutoCommit (this ITransactionContext transaction)
 
static void AutoCommit (this ITransactionContext transaction, bool value)
 
static void CurrentSchema (this ITransactionContext transaction, string schemaName)
 
static string CurrentSchema (this ITransactionContext transaction)
 
static bool ErrorOnDirtySelect (this ITransactionContext transaction)
 
static void ErrorOnDirtySelect (this ITransactionContext transaction, bool value)
 
static QueryParameterStyle ParameterStyle (this ITransactionContext transaction)
 
static void ParameterStyle (this ITransactionContext transaction, QueryParameterStyle value)
 
static void ParameterStyle (this ITransactionContext transaction, string value)
 

Detailed Description

Definition at line 23 of file TransactionContextExtensions.cs.

Member Function Documentation

static bool Deveel.Data.Transactions.TransactionContextExtensions.AutoCommit ( this ITransactionContext  transaction)
inlinestatic

Definition at line 42 of file TransactionContextExtensions.cs.

42  {
43  return transaction.GetBooleanVariable(TransactionSettingKeys.AutoCommit);
44  }
static void Deveel.Data.Transactions.TransactionContextExtensions.AutoCommit ( this ITransactionContext  transaction,
bool  value 
)
inlinestatic

Definition at line 46 of file TransactionContextExtensions.cs.

46  {
47  transaction.SetBooleanVariable(TransactionSettingKeys.AutoCommit, value);
48  }
static void Deveel.Data.Transactions.TransactionContextExtensions.CurrentSchema ( this ITransactionContext  transaction,
string  schemaName 
)
inlinestatic

Definition at line 50 of file TransactionContextExtensions.cs.

50  {
51  transaction.SetStringVariable(TransactionSettingKeys.CurrentSchema, schemaName);
52  }
static string Deveel.Data.Transactions.TransactionContextExtensions.CurrentSchema ( this ITransactionContext  transaction)
inlinestatic

Definition at line 54 of file TransactionContextExtensions.cs.

54  {
55  return transaction.GetStringVariable(TransactionSettingKeys.CurrentSchema);
56  }
static bool Deveel.Data.Transactions.TransactionContextExtensions.ErrorOnDirtySelect ( this ITransactionContext  transaction)
inlinestatic

Definition at line 58 of file TransactionContextExtensions.cs.

58  {
59  return transaction.GetBooleanVariable(TransactionSettingKeys.ErrorOnDirtySelect);
60  }
static void Deveel.Data.Transactions.TransactionContextExtensions.ErrorOnDirtySelect ( this ITransactionContext  transaction,
bool  value 
)
inlinestatic

Definition at line 62 of file TransactionContextExtensions.cs.

62  {
63  transaction.SetBooleanVariable(TransactionSettingKeys.ErrorOnDirtySelect, value);
64  }
static bool Deveel.Data.Transactions.TransactionContextExtensions.IgnoreIdentifiersCase ( this ITransactionContext  transaction)
inlinestatic

Definition at line 26 of file TransactionContextExtensions.cs.

26  {
27  return transaction.GetBooleanVariable(TransactionSettingKeys.IgnoreIdentifiersCase);
28  }
static void Deveel.Data.Transactions.TransactionContextExtensions.IgnoreIdentifiersCase ( this ITransactionContext  transaction,
bool  value 
)
inlinestatic

Definition at line 30 of file TransactionContextExtensions.cs.

30  {
31  transaction.SetBooleanVariable(TransactionSettingKeys.IgnoreIdentifiersCase, value);
32  }
static QueryParameterStyle Deveel.Data.Transactions.TransactionContextExtensions.ParameterStyle ( this ITransactionContext  transaction)
inlinestatic

Definition at line 66 of file TransactionContextExtensions.cs.

66  {
67  var styleString = transaction.GetStringVariable(TransactionSettingKeys.ParameterStyle);
68  if (String.IsNullOrEmpty(styleString))
69  return QueryParameterStyle.Default;
70 
71  return (QueryParameterStyle)Enum.Parse(typeof(QueryParameterStyle), styleString, true);
72  }
A long string in the system.
QueryParameterStyle
In a SQL query object, this is the form of parameters passed from the client side to the server side...
static void Deveel.Data.Transactions.TransactionContextExtensions.ParameterStyle ( this ITransactionContext  transaction,
QueryParameterStyle  value 
)
inlinestatic

Definition at line 74 of file TransactionContextExtensions.cs.

74  {
75  if (value == QueryParameterStyle.Default)
76  return;
77 
78  var styleString = value.ToString();
79  transaction.SetStringVariable(TransactionSettingKeys.ParameterStyle, styleString);
80  }
QueryParameterStyle
In a SQL query object, this is the form of parameters passed from the client side to the server side...
static void Deveel.Data.Transactions.TransactionContextExtensions.ParameterStyle ( this ITransactionContext  transaction,
string  value 
)
inlinestatic

Definition at line 82 of file TransactionContextExtensions.cs.

82  {
83  if (String.IsNullOrEmpty(value))
84  throw new ArgumentNullException("value");
85 
86  var style = (QueryParameterStyle)Enum.Parse(typeof(QueryParameterStyle), value, true);
87  transaction.ParameterStyle(style);
88  }
A long string in the system.
QueryParameterStyle
In a SQL query object, this is the form of parameters passed from the client side to the server side...
static bool Deveel.Data.Transactions.TransactionContextExtensions.ReadOnly ( this ITransactionContext  transaction)
inlinestatic

Definition at line 34 of file TransactionContextExtensions.cs.

34  {
35  return transaction.GetBooleanVariable(TransactionSettingKeys.ReadOnly);
36  }
static void Deveel.Data.Transactions.TransactionContextExtensions.ReadOnly ( this ITransactionContext  transaction,
bool  value 
)
inlinestatic

Definition at line 38 of file TransactionContextExtensions.cs.

38  {
39  transaction.SetBooleanVariable(TransactionSettingKeys.ReadOnly, value);
40  }

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