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

Static Public Member Functions

static bool AutoCommit (this ISession session)
 
static void AutoCommit (this ISession session, bool value)
 
static void CurrentSchema (this ISession session, string value)
 
static string CurrentSchema (this ISession session)
 
static bool IgnoreIdentifiersCase (this ISession session)
 
static void IgnoreIdentifiersCase (this ISession session, bool value)
 
static QueryParameterStyle ParameterStyle (this ISession session)
 
static void ParameterStyle (this ISession session, QueryParameterStyle value)
 
static IDbObject GetObject (this ISession session, DbObjectType objectType, ObjectName objectName)
 
static IDbObject GetObject (this ISession session, DbObjectType objectType, ObjectName objectName, AccessType accessType)
 
static void CreateObject (this ISession session, IObjectInfo objectInfo)
 
static void AlterObject (this ISession session, IObjectInfo objectInfo)
 
static bool ObjectExists (this ISession session, ObjectName objectName)
 
static bool ObjectExists (this ISession session, DbObjectType objectType, ObjectName objectName)
 
static IDbObject FindObject (this ISession session, ObjectName objectName)
 
static void DropObject (this ISession session, DbObjectType objectType, ObjectName objectName)
 
static ObjectName ResolveObjectName (this ISession session, string name)
 
static ObjectName ResolveObjectName (this ISession session, DbObjectType objectType, ObjectName objectName)
 
static ObjectName ResolveObjectName (this ISession session, ObjectName objectName)
 
static ObjectName ResolveTableName (this ISession session, ObjectName tableName)
 
static ITable GetTable (this ISession session, ObjectName tableName)
 
static TableInfo GetTableInfo (this ISession session, ObjectName tableName)
 
static string GetTableType (this ISession session, ObjectName tableName)
 
static void CreateTable (this ISession session, TableInfo tableInfo, bool temporary)
 
static void AddPrimaryKey (this ISession session, ObjectName tableName, string[] columns, ConstraintDeferrability deferred, string constraintName)
 
static void AddForeignKey (this ISession session, ObjectName table, string[] columns, ObjectName refTable, string[] refColumns, ForeignKeyAction deleteRule, ForeignKeyAction updateRule, ConstraintDeferrability deferred, String constraintName)
 
static void AddUniqueKey (this ISession session, ObjectName tableName, string[] columns, ConstraintDeferrability deferrability, string constraintName)
 
static void AddCheck (this ISession session, ObjectName tableName, SqlExpression expression, ConstraintDeferrability deferrability, string constraintName)
 
static void DropAllTableConstraints (this ISession session, ObjectName tableName)
 
static int DropTableConstraint (this ISession session, ObjectName tableName, string constraintName)
 
static bool DropTablePrimaryKey (this ISession session, ObjectName tableName, string constraintName)
 
static ObjectName[] QueryTablesRelationallyLinkedTo (this ISession session, ObjectName tableName)
 
static ConstraintInfo[] QueryTableCheckExpressions (this ISession session, ObjectName tableName)
 
static ConstraintInfo QueryTablePrimaryKey (this ISession session, ObjectName tableName)
 
static ConstraintInfo[] QueryTableUniqueKeys (this ISession session, ObjectName tableName)
 
static ConstraintInfo[] QueryTableImportedForeignKeys (this ISession session, ObjectName refTableName)
 
static ConstraintInfo[] QueryTableForeignKeys (this ISession session, ObjectName tableName)
 
static void CheckConstraintViolations (this ISession session, ObjectName tableName)
 
static void Access (this ISession session, IDbObject obj, AccessType accessType)
 

Detailed Description

Definition at line 26 of file UserSessionExtensions.cs.

Member Function Documentation

static void Deveel.Data.UserSessionExtensions.Access ( this ISession  session,
IDbObject  obj,
AccessType  accessType 
)
inlinestatic

Definition at line 206 of file UserSessionExtensions.cs.

206  {
207  session.Access(new [] {obj}, accessType);
208  }
static void Deveel.Data.UserSessionExtensions.AddCheck ( this ISession  session,
ObjectName  tableName,
SqlExpression  expression,
ConstraintDeferrability  deferrability,
string  constraintName 
)
inlinestatic

Definition at line 155 of file UserSessionExtensions.cs.

156  {
157  session.Transaction.AddCheck(tableName, expression, deferrability, constraintName);
158  }
static void Deveel.Data.UserSessionExtensions.AddForeignKey ( this ISession  session,
ObjectName  table,
string[]  columns,
ObjectName  refTable,
string[]  refColumns,
ForeignKeyAction  deleteRule,
ForeignKeyAction  updateRule,
ConstraintDeferrability  deferred,
String  constraintName 
)
inlinestatic

Definition at line 145 of file UserSessionExtensions.cs.

147  {
148  session.Transaction.AddForeignKey(table, columns, refTable, refColumns, deleteRule, updateRule, deferred, constraintName);
149  }
static void Deveel.Data.UserSessionExtensions.AddPrimaryKey ( this ISession  session,
ObjectName  tableName,
string[]  columns,
ConstraintDeferrability  deferred,
string  constraintName 
)
inlinestatic

Definition at line 141 of file UserSessionExtensions.cs.

141  {
142  session.Transaction.AddPrimaryKey(tableName, columns, deferred, constraintName);
143  }
static void Deveel.Data.UserSessionExtensions.AddUniqueKey ( this ISession  session,
ObjectName  tableName,
string[]  columns,
ConstraintDeferrability  deferrability,
string  constraintName 
)
inlinestatic

Definition at line 151 of file UserSessionExtensions.cs.

151  {
152  session.Transaction.AddUniqueKey(tableName, columns, deferrability, constraintName);
153  }
static void Deveel.Data.UserSessionExtensions.AlterObject ( this ISession  session,
IObjectInfo  objectInfo 
)
inlinestatic

Definition at line 81 of file UserSessionExtensions.cs.

81  {
82  session.Transaction.AlterObject(objectInfo);
83  }
static bool Deveel.Data.UserSessionExtensions.AutoCommit ( this ISession  session)
inlinestatic

Definition at line 29 of file UserSessionExtensions.cs.

29  {
30  return session.Transaction.AutoCommit();
31  }
static void Deveel.Data.UserSessionExtensions.AutoCommit ( this ISession  session,
bool  value 
)
inlinestatic

Definition at line 33 of file UserSessionExtensions.cs.

33  {
34  session.Transaction.AutoCommit(value);
35  }
static void Deveel.Data.UserSessionExtensions.CheckConstraintViolations ( this ISession  session,
ObjectName  tableName 
)
inlinestatic

Definition at line 196 of file UserSessionExtensions.cs.

196  {
197  throw new NotImplementedException();
198  }
static void Deveel.Data.UserSessionExtensions.CreateObject ( this ISession  session,
IObjectInfo  objectInfo 
)
inlinestatic

Definition at line 77 of file UserSessionExtensions.cs.

77  {
78  session.Transaction.CreateObject(objectInfo);
79  }
static void Deveel.Data.UserSessionExtensions.CreateTable ( this ISession  session,
TableInfo  tableInfo,
bool  temporary 
)
inlinestatic

Definition at line 135 of file UserSessionExtensions.cs.

135  {
136  session.Transaction.CreateTable(tableInfo, temporary);
137  }
static void Deveel.Data.UserSessionExtensions.CurrentSchema ( this ISession  session,
string  value 
)
inlinestatic

Definition at line 37 of file UserSessionExtensions.cs.

37  {
38  session.Transaction.CurrentSchema(value);
39  }
static string Deveel.Data.UserSessionExtensions.CurrentSchema ( this ISession  session)
inlinestatic

Definition at line 41 of file UserSessionExtensions.cs.

41  {
42  return session.Transaction.CurrentSchema();
43  }
static void Deveel.Data.UserSessionExtensions.DropAllTableConstraints ( this ISession  session,
ObjectName  tableName 
)
inlinestatic

Definition at line 160 of file UserSessionExtensions.cs.

160  {
161  session.Transaction.DropAllTableConstraints(tableName);
162  }
static void Deveel.Data.UserSessionExtensions.DropObject ( this ISession  session,
DbObjectType  objectType,
ObjectName  objectName 
)
inlinestatic

Definition at line 97 of file UserSessionExtensions.cs.

97  {
98  session.Transaction.DropObject(objectType, objectName);
99  }
static int Deveel.Data.UserSessionExtensions.DropTableConstraint ( this ISession  session,
ObjectName  tableName,
string  constraintName 
)
inlinestatic

Definition at line 164 of file UserSessionExtensions.cs.

164  {
165  return session.Transaction.DropTableConstraint(tableName, constraintName);
166  }
static bool Deveel.Data.UserSessionExtensions.DropTablePrimaryKey ( this ISession  session,
ObjectName  tableName,
string  constraintName 
)
inlinestatic

Definition at line 168 of file UserSessionExtensions.cs.

168  {
169  return session.Transaction.DropTablePrimaryKey(tableName, constraintName);
170  }
static IDbObject Deveel.Data.UserSessionExtensions.FindObject ( this ISession  session,
ObjectName  objectName 
)
inlinestatic

Definition at line 93 of file UserSessionExtensions.cs.

93  {
94  return session.Transaction.FindObject(objectName);
95  }
static IDbObject Deveel.Data.UserSessionExtensions.GetObject ( this ISession  session,
DbObjectType  objectType,
ObjectName  objectName 
)
inlinestatic

Definition at line 65 of file UserSessionExtensions.cs.

65  {
66  return GetObject(session, objectType, objectName, AccessType.ReadWrite);
67  }
static IDbObject GetObject(this ISession session, DbObjectType objectType, ObjectName objectName)
static IDbObject Deveel.Data.UserSessionExtensions.GetObject ( this ISession  session,
DbObjectType  objectType,
ObjectName  objectName,
AccessType  accessType 
)
inlinestatic

Definition at line 69 of file UserSessionExtensions.cs.

69  {
70  var obj = session.Transaction.GetObject(objectType, objectName);
71  if (obj != null)
72  session.Access(obj, accessType);
73 
74  return obj;
75  }
static ITable Deveel.Data.UserSessionExtensions.GetTable ( this ISession  session,
ObjectName  tableName 
)
inlinestatic

Definition at line 122 of file UserSessionExtensions.cs.

122  {
123  tableName = session.ResolveTableName(tableName);
124  return session.GetObject(DbObjectType.Table, tableName) as ITable;
125  }
Defines the contract to access the data contained into a table of a database.
Definition: ITable.cs:40
DbObjectType
The kind of objects that can be handled by a database system and its managers
Definition: DbObjectType.cs:27
static TableInfo Deveel.Data.UserSessionExtensions.GetTableInfo ( this ISession  session,
ObjectName  tableName 
)
inlinestatic

Definition at line 127 of file UserSessionExtensions.cs.

127  {
128  return session.Transaction.GetTableInfo(tableName);
129  }
static string Deveel.Data.UserSessionExtensions.GetTableType ( this ISession  session,
ObjectName  tableName 
)
inlinestatic

Definition at line 131 of file UserSessionExtensions.cs.

131  {
132  return session.Transaction.GetTableType(tableName);
133  }
static bool Deveel.Data.UserSessionExtensions.IgnoreIdentifiersCase ( this ISession  session)
inlinestatic

Definition at line 45 of file UserSessionExtensions.cs.

45  {
46  return session.Transaction.IgnoreIdentifiersCase();
47  }
static void Deveel.Data.UserSessionExtensions.IgnoreIdentifiersCase ( this ISession  session,
bool  value 
)
inlinestatic

Definition at line 49 of file UserSessionExtensions.cs.

49  {
50  session.Transaction.IgnoreIdentifiersCase(value);
51  }
static bool Deveel.Data.UserSessionExtensions.ObjectExists ( this ISession  session,
ObjectName  objectName 
)
inlinestatic

Definition at line 85 of file UserSessionExtensions.cs.

85  {
86  return session.Transaction.ObjectExists(objectName);
87  }
static bool Deveel.Data.UserSessionExtensions.ObjectExists ( this ISession  session,
DbObjectType  objectType,
ObjectName  objectName 
)
inlinestatic

Definition at line 89 of file UserSessionExtensions.cs.

89  {
90  return session.Transaction.ObjectExists(objectType, objectName);
91  }
static QueryParameterStyle Deveel.Data.UserSessionExtensions.ParameterStyle ( this ISession  session)
inlinestatic

Definition at line 53 of file UserSessionExtensions.cs.

53  {
54  return session.Transaction.ParameterStyle();
55  }
static void Deveel.Data.UserSessionExtensions.ParameterStyle ( this ISession  session,
QueryParameterStyle  value 
)
inlinestatic

Definition at line 57 of file UserSessionExtensions.cs.

57  {
58  session.Transaction.ParameterStyle(value);
59  }
static ConstraintInfo [] Deveel.Data.UserSessionExtensions.QueryTableCheckExpressions ( this ISession  session,
ObjectName  tableName 
)
inlinestatic

Definition at line 176 of file UserSessionExtensions.cs.

176  {
177  return session.Transaction.QueryTableCheckExpressions(tableName);
178  }
static ConstraintInfo [] Deveel.Data.UserSessionExtensions.QueryTableForeignKeys ( this ISession  session,
ObjectName  tableName 
)
inlinestatic

Definition at line 192 of file UserSessionExtensions.cs.

192  {
193  return session.Transaction.QueryTableForeignKeys(tableName);
194  }
static ConstraintInfo [] Deveel.Data.UserSessionExtensions.QueryTableImportedForeignKeys ( this ISession  session,
ObjectName  refTableName 
)
inlinestatic

Definition at line 188 of file UserSessionExtensions.cs.

188  {
189  return session.Transaction.QueryTableImportedForeignKeys(refTableName);
190  }
static ConstraintInfo Deveel.Data.UserSessionExtensions.QueryTablePrimaryKey ( this ISession  session,
ObjectName  tableName 
)
inlinestatic

Definition at line 180 of file UserSessionExtensions.cs.

180  {
181  return session.Transaction.QueryTablePrimaryKey(tableName);
182  }
static ObjectName [] Deveel.Data.UserSessionExtensions.QueryTablesRelationallyLinkedTo ( this ISession  session,
ObjectName  tableName 
)
inlinestatic

Definition at line 172 of file UserSessionExtensions.cs.

172  {
173  return session.Transaction.QueryTablesRelationallyLinkedTo(tableName);
174  }
static ConstraintInfo [] Deveel.Data.UserSessionExtensions.QueryTableUniqueKeys ( this ISession  session,
ObjectName  tableName 
)
inlinestatic

Definition at line 184 of file UserSessionExtensions.cs.

184  {
185  return session.Transaction.QueryTableUniqueKeys(tableName);
186  }
static ObjectName Deveel.Data.UserSessionExtensions.ResolveObjectName ( this ISession  session,
string  name 
)
inlinestatic

Definition at line 101 of file UserSessionExtensions.cs.

101  {
102  return session.ResolveObjectName(new ObjectName(new ObjectName(session.CurrentSchema), name));
103  }
Describes the name of an object within a database.
Definition: ObjectName.cs:44
static ObjectName Deveel.Data.UserSessionExtensions.ResolveObjectName ( this ISession  session,
DbObjectType  objectType,
ObjectName  objectName 
)
inlinestatic

Definition at line 105 of file UserSessionExtensions.cs.

105  {
106  return session.Transaction.ResolveObjectName(objectType, objectName);
107  }
static ObjectName Deveel.Data.UserSessionExtensions.ResolveObjectName ( this ISession  session,
ObjectName  objectName 
)
inlinestatic

Definition at line 109 of file UserSessionExtensions.cs.

109  {
110  return session.Transaction.ResolveObjectName(objectName);
111  }
static ObjectName Deveel.Data.UserSessionExtensions.ResolveTableName ( this ISession  session,
ObjectName  tableName 
)
inlinestatic

Definition at line 118 of file UserSessionExtensions.cs.

118  {
119  return session.Transaction.ResolveTableName(tableName);
120  }

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