C# Класс Deveel.Data.Transactions.TransactionExtensions

Provides some convenience extension methods to ITransaction instances.
Показать файл Открыть проект

Открытые методы

Метод Описание
AlterObject ( this transaction, IObjectInfo objInfo ) : bool
AsEventSource ( this transaction ) : IEventSource
AutoCommit ( this transaction ) : bool
AutoCommit ( this transaction, bool value ) : void
CreateNativeSequence ( this transaction, ObjectName tableName ) : void
CreateObject ( this transaction, IObjectInfo objInfo ) : void
CreateSchema ( this transaction, SchemaInfo schemaInfo ) : void
CreateSequence ( this transaction, SequenceInfo sequenceInfo ) : void
CreateTable ( this transaction, TableInfo tableInfo ) : void
CreateTable ( this transaction, TableInfo tableInfo, bool temporary ) : void
CurrentSchema ( this transaction ) : string
CurrentSchema ( this transaction, string value ) : void
CurrentTableId ( this transaction, ObjectName tableName ) : SqlNumber
DropObject ( this transaction, DbObjectType objType, ObjectName objName ) : bool
DropSequence ( this transaction, ObjectName sequenceName ) : bool
ErrorOnDirtySelect ( this transaction ) : bool
ErrorOnDirtySelect ( this transaction, bool value ) : void
FindObject ( this transaction, ObjectName objName ) : IDbObject
GetMutableTable ( this transaction, ObjectName tableName ) : IMutableTable
GetObject ( this transaction, DbObjectType objType, ObjectName objName ) : IDbObject
GetTable ( this transaction, ObjectName tableName ) : ITable

Tries to get an object with the given name formed as table.

GetTableInfo ( this transaction, ObjectName tableName ) : TableInfo
GetTableManager ( this transaction ) : TableManager
GetTableType ( this transaction, ObjectName tableName ) : string
GetTriggerManager ( this transaction ) : TriggerManager
IgnoreIdentifiersCase ( this transaction ) : bool
IgnoreIdentifiersCase ( this transaction, bool value ) : void
Lock ( this transaction, IEnumerable tableNames, AccessType accessType, LockingMode mode, int timeout ) : void
LockTimeout ( this transaction ) : int
NextTableId ( this transaction, ObjectName tableName ) : SqlNumber

Gets the next value of a table native sequence.

ObjectExists ( this transaction, DbObjectType objType, ObjectName objName ) : bool
ObjectExists ( this transaction, ObjectName objName ) : bool
OnObjectCreated ( this transaction, DbObjectType objectType, ObjectName objectName ) : void
OnObjectDropped ( this transaction, DbObjectType objectType, ObjectName objectName ) : void
OnTableAccessed ( this transaction, int tableId, ObjectName tableName ) : void
OnTableConstraintAltered ( this transaction, int tableId ) : void
OnTableCreated ( this transaction, int tableId, ObjectName tableName ) : void
OnTableDropped ( this transaction, int tableId, ObjectName tableName ) : void
ParameterStyle ( this transaction ) : QueryParameterStyle
ParameterStyle ( this transaction, QueryParameterStyle value ) : void
ReadOnly ( this transaction ) : bool
ReadOnly ( this transaction, bool value ) : void
RealObjectExists ( this transaction, DbObjectType objType, ObjectName objName ) : bool
RealTableExists ( this transaction, ObjectName objName ) : bool
RemoveNativeSequence ( this transaction, ObjectName tableName ) : void
ResolveObjectName ( this transaction, DbObjectType objectType, ObjectName objectName ) : ObjectName
ResolveObjectName ( this transaction, ObjectName objectName ) : ObjectName
ResolveObjectName ( this transaction, string objectName ) : ObjectName
ResolveObjectName ( this transaction, string schemaName, string objectName ) : ObjectName
ResolveTableName ( this transaction, ObjectName tableName ) : ObjectName
SetTableId ( this transaction, ObjectName tableName, SqlNumber value ) : SqlNumber

Sets the current value of a table native sequence.

TableExists ( this transaction, ObjectName tableName ) : bool

Приватные методы

Метод Описание
AssertNotReadOnly ( this transaction ) : void
GetIndexSetForTable ( this transaction, TableSource tableSource ) : IIndexSet
GetObjectManager ( this transaction, DbObjectType objectType ) : IObjectManager
GetObjectManagers ( this transaction ) : IEnumerable
GetVisibleTables ( this transaction ) : IEnumerable
RemoveVisibleTable ( this transaction, TableSource table ) : void
ResolveReservedTableName ( ObjectName tableName ) : ObjectName
UpdateVisibleTable ( this transaction, TableSource tableSource, IIndexSet indexSet ) : void

Описание методов

AlterObject() публичный статический Метод

public static AlterObject ( this transaction, IObjectInfo objInfo ) : bool
transaction this
objInfo IObjectInfo
Результат bool

AsEventSource() публичный статический Метод

public static AsEventSource ( this transaction ) : IEventSource
transaction this
Результат IEventSource

AutoCommit() публичный статический Метод

public static AutoCommit ( this transaction ) : bool
transaction this
Результат bool

AutoCommit() публичный статический Метод

public static AutoCommit ( this transaction, bool value ) : void
transaction this
value bool
Результат void

CreateNativeSequence() публичный статический Метод

public static CreateNativeSequence ( this transaction, ObjectName tableName ) : void
transaction this
tableName ObjectName
Результат void

CreateObject() публичный статический Метод

public static CreateObject ( this transaction, IObjectInfo objInfo ) : void
transaction this
objInfo IObjectInfo
Результат void

CreateSchema() публичный статический Метод

public static CreateSchema ( this transaction, SchemaInfo schemaInfo ) : void
transaction this
schemaInfo Deveel.Data.Sql.Schemas.SchemaInfo
Результат void

CreateSequence() публичный статический Метод

public static CreateSequence ( this transaction, SequenceInfo sequenceInfo ) : void
transaction this
sequenceInfo SequenceInfo
Результат void

CreateTable() публичный статический Метод

public static CreateTable ( this transaction, TableInfo tableInfo ) : void
transaction this
tableInfo TableInfo
Результат void

CreateTable() публичный статический Метод

public static CreateTable ( this transaction, TableInfo tableInfo, bool temporary ) : void
transaction this
tableInfo TableInfo
temporary bool
Результат void

CurrentSchema() публичный статический Метод

public static CurrentSchema ( this transaction ) : string
transaction this
Результат string

CurrentSchema() публичный статический Метод

public static CurrentSchema ( this transaction, string value ) : void
transaction this
value string
Результат void

CurrentTableId() публичный статический Метод

public static CurrentTableId ( this transaction, ObjectName tableName ) : SqlNumber
transaction this
tableName ObjectName
Результат SqlNumber

DropObject() публичный статический Метод

public static DropObject ( this transaction, DbObjectType objType, ObjectName objName ) : bool
transaction this
objType DbObjectType
objName ObjectName
Результат bool

DropSequence() публичный статический Метод

public static DropSequence ( this transaction, ObjectName sequenceName ) : bool
transaction this
sequenceName ObjectName
Результат bool

ErrorOnDirtySelect() публичный статический Метод

public static ErrorOnDirtySelect ( this transaction ) : bool
transaction this
Результат bool

ErrorOnDirtySelect() публичный статический Метод

public static ErrorOnDirtySelect ( this transaction, bool value ) : void
transaction this
value bool
Результат void

FindObject() публичный статический Метод

public static FindObject ( this transaction, ObjectName objName ) : IDbObject
transaction this
objName ObjectName
Результат IDbObject

GetMutableTable() публичный статический Метод

public static GetMutableTable ( this transaction, ObjectName tableName ) : IMutableTable
transaction this
tableName ObjectName
Результат IMutableTable

GetObject() публичный статический Метод

public static GetObject ( this transaction, DbObjectType objType, ObjectName objName ) : IDbObject
transaction this
objType DbObjectType
objName ObjectName
Результат IDbObject

GetTable() публичный статический Метод

Tries to get an object with the given name formed as table.
public static GetTable ( this transaction, ObjectName tableName ) : ITable
transaction this The transaction object.
tableName ObjectName The name of the table to try to get.
Результат ITable

GetTableInfo() публичный статический Метод

public static GetTableInfo ( this transaction, ObjectName tableName ) : TableInfo
transaction this
tableName ObjectName
Результат TableInfo

GetTableManager() публичный статический Метод

public static GetTableManager ( this transaction ) : TableManager
transaction this
Результат TableManager

GetTableType() публичный статический Метод

public static GetTableType ( this transaction, ObjectName tableName ) : string
transaction this
tableName ObjectName
Результат string

GetTriggerManager() публичный статический Метод

public static GetTriggerManager ( this transaction ) : TriggerManager
transaction this
Результат TriggerManager

IgnoreIdentifiersCase() публичный статический Метод

public static IgnoreIdentifiersCase ( this transaction ) : bool
transaction this
Результат bool

IgnoreIdentifiersCase() публичный статический Метод

public static IgnoreIdentifiersCase ( this transaction, bool value ) : void
transaction this
value bool
Результат void

Lock() публичный статический Метод

public static Lock ( this transaction, IEnumerable tableNames, AccessType accessType, LockingMode mode, int timeout ) : void
transaction this
tableNames IEnumerable
accessType AccessType
mode LockingMode
timeout int
Результат void

LockTimeout() публичный статический Метод

public static LockTimeout ( this transaction ) : int
transaction this
Результат int

NextTableId() публичный статический Метод

Gets the next value of a table native sequence.
public static NextTableId ( this transaction, ObjectName tableName ) : SqlNumber
transaction this
tableName ObjectName
Результат SqlNumber

ObjectExists() публичный статический Метод

public static ObjectExists ( this transaction, DbObjectType objType, ObjectName objName ) : bool
transaction this
objType DbObjectType
objName ObjectName
Результат bool

ObjectExists() публичный статический Метод

public static ObjectExists ( this transaction, ObjectName objName ) : bool
transaction this
objName ObjectName
Результат bool

OnObjectCreated() публичный статический Метод

public static OnObjectCreated ( this transaction, DbObjectType objectType, ObjectName objectName ) : void
transaction this
objectType DbObjectType
objectName ObjectName
Результат void

OnObjectDropped() публичный статический Метод

public static OnObjectDropped ( this transaction, DbObjectType objectType, ObjectName objectName ) : void
transaction this
objectType DbObjectType
objectName ObjectName
Результат void

OnTableAccessed() публичный статический Метод

public static OnTableAccessed ( this transaction, int tableId, ObjectName tableName ) : void
transaction this
tableId int
tableName ObjectName
Результат void

OnTableConstraintAltered() публичный статический Метод

public static OnTableConstraintAltered ( this transaction, int tableId ) : void
transaction this
tableId int
Результат void

OnTableCreated() публичный статический Метод

public static OnTableCreated ( this transaction, int tableId, ObjectName tableName ) : void
transaction this
tableId int
tableName ObjectName
Результат void

OnTableDropped() публичный статический Метод

public static OnTableDropped ( this transaction, int tableId, ObjectName tableName ) : void
transaction this
tableId int
tableName ObjectName
Результат void

ParameterStyle() публичный статический Метод

public static ParameterStyle ( this transaction ) : QueryParameterStyle
transaction this
Результат QueryParameterStyle

ParameterStyle() публичный статический Метод

public static ParameterStyle ( this transaction, QueryParameterStyle value ) : void
transaction this
value QueryParameterStyle
Результат void

ReadOnly() публичный статический Метод

public static ReadOnly ( this transaction ) : bool
transaction this
Результат bool

ReadOnly() публичный статический Метод

public static ReadOnly ( this transaction, bool value ) : void
transaction this
value bool
Результат void

RealObjectExists() публичный статический Метод

public static RealObjectExists ( this transaction, DbObjectType objType, ObjectName objName ) : bool
transaction this
objType DbObjectType
objName ObjectName
Результат bool

RealTableExists() публичный статический Метод

public static RealTableExists ( this transaction, ObjectName objName ) : bool
transaction this
objName ObjectName
Результат bool

RemoveNativeSequence() публичный статический Метод

public static RemoveNativeSequence ( this transaction, ObjectName tableName ) : void
transaction this
tableName ObjectName
Результат void

ResolveObjectName() публичный статический Метод

public static ResolveObjectName ( this transaction, DbObjectType objectType, ObjectName objectName ) : ObjectName
transaction this
objectType DbObjectType
objectName ObjectName
Результат ObjectName

ResolveObjectName() публичный статический Метод

public static ResolveObjectName ( this transaction, ObjectName objectName ) : ObjectName
transaction this
objectName ObjectName
Результат ObjectName

ResolveObjectName() публичный статический Метод

public static ResolveObjectName ( this transaction, string objectName ) : ObjectName
transaction this
objectName string
Результат ObjectName

ResolveObjectName() публичный статический Метод

public static ResolveObjectName ( this transaction, string schemaName, string objectName ) : ObjectName
transaction this
schemaName string
objectName string
Результат ObjectName

ResolveTableName() публичный статический Метод

public static ResolveTableName ( this transaction, ObjectName tableName ) : ObjectName
transaction this
tableName ObjectName
Результат ObjectName

SetTableId() публичный статический Метод

Sets the current value of a table native sequence.
/// If it was not possible to find any table having the given /// name. ///
public static SetTableId ( this transaction, ObjectName tableName, SqlNumber value ) : SqlNumber
transaction this
tableName ObjectName The table name.
value SqlNumber The current value of the native sequence.
Результат SqlNumber

TableExists() публичный статический Метод

public static TableExists ( this transaction, ObjectName tableName ) : bool
transaction this
tableName ObjectName
Результат bool