C# Class Deveel.Data.Transactions.TransactionExtensions

Provides some convenience extension methods to ITransaction instances.
显示文件 Open project: deveel/deveeldb

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

AlterObject() public static method

public static AlterObject ( this transaction, IObjectInfo objInfo ) : bool
transaction this
objInfo IObjectInfo
return bool

AsEventSource() public static method

public static AsEventSource ( this transaction ) : IEventSource
transaction this
return IEventSource

AutoCommit() public static method

public static AutoCommit ( this transaction ) : bool
transaction this
return bool

AutoCommit() public static method

public static AutoCommit ( this transaction, bool value ) : void
transaction this
value bool
return void

CreateNativeSequence() public static method

public static CreateNativeSequence ( this transaction, ObjectName tableName ) : void
transaction this
tableName ObjectName
return void

CreateObject() public static method

public static CreateObject ( this transaction, IObjectInfo objInfo ) : void
transaction this
objInfo IObjectInfo
return void

CreateSchema() public static method

public static CreateSchema ( this transaction, SchemaInfo schemaInfo ) : void
transaction this
schemaInfo Deveel.Data.Sql.Schemas.SchemaInfo
return void

CreateSequence() public static method

public static CreateSequence ( this transaction, SequenceInfo sequenceInfo ) : void
transaction this
sequenceInfo SequenceInfo
return void

CreateTable() public static method

public static CreateTable ( this transaction, TableInfo tableInfo ) : void
transaction this
tableInfo TableInfo
return void

CreateTable() public static method

public static CreateTable ( this transaction, TableInfo tableInfo, bool temporary ) : void
transaction this
tableInfo TableInfo
temporary bool
return void

CurrentSchema() public static method

public static CurrentSchema ( this transaction ) : string
transaction this
return string

CurrentSchema() public static method

public static CurrentSchema ( this transaction, string value ) : void
transaction this
value string
return void

CurrentTableId() public static method

public static CurrentTableId ( this transaction, ObjectName tableName ) : SqlNumber
transaction this
tableName ObjectName
return SqlNumber

DropObject() public static method

public static DropObject ( this transaction, DbObjectType objType, ObjectName objName ) : bool
transaction this
objType DbObjectType
objName ObjectName
return bool

DropSequence() public static method

public static DropSequence ( this transaction, ObjectName sequenceName ) : bool
transaction this
sequenceName ObjectName
return bool

ErrorOnDirtySelect() public static method

public static ErrorOnDirtySelect ( this transaction ) : bool
transaction this
return bool

ErrorOnDirtySelect() public static method

public static ErrorOnDirtySelect ( this transaction, bool value ) : void
transaction this
value bool
return void

FindObject() public static method

public static FindObject ( this transaction, ObjectName objName ) : IDbObject
transaction this
objName ObjectName
return IDbObject

GetMutableTable() public static method

public static GetMutableTable ( this transaction, ObjectName tableName ) : IMutableTable
transaction this
tableName ObjectName
return IMutableTable

GetObject() public static method

public static GetObject ( this transaction, DbObjectType objType, ObjectName objName ) : IDbObject
transaction this
objType DbObjectType
objName ObjectName
return IDbObject

GetTable() public static method

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.
return ITable

GetTableInfo() public static method

public static GetTableInfo ( this transaction, ObjectName tableName ) : TableInfo
transaction this
tableName ObjectName
return TableInfo

GetTableManager() public static method

public static GetTableManager ( this transaction ) : TableManager
transaction this
return TableManager

GetTableType() public static method

public static GetTableType ( this transaction, ObjectName tableName ) : string
transaction this
tableName ObjectName
return string

GetTriggerManager() public static method

public static GetTriggerManager ( this transaction ) : TriggerManager
transaction this
return TriggerManager

IgnoreIdentifiersCase() public static method

public static IgnoreIdentifiersCase ( this transaction ) : bool
transaction this
return bool

IgnoreIdentifiersCase() public static method

public static IgnoreIdentifiersCase ( this transaction, bool value ) : void
transaction this
value bool
return void

Lock() public static method

public static Lock ( this transaction, IEnumerable tableNames, AccessType accessType, LockingMode mode, int timeout ) : void
transaction this
tableNames IEnumerable
accessType AccessType
mode LockingMode
timeout int
return void

LockTimeout() public static method

public static LockTimeout ( this transaction ) : int
transaction this
return int

NextTableId() public static method

Gets the next value of a table native sequence.
public static NextTableId ( this transaction, ObjectName tableName ) : SqlNumber
transaction this
tableName ObjectName
return SqlNumber

ObjectExists() public static method

public static ObjectExists ( this transaction, DbObjectType objType, ObjectName objName ) : bool
transaction this
objType DbObjectType
objName ObjectName
return bool

ObjectExists() public static method

public static ObjectExists ( this transaction, ObjectName objName ) : bool
transaction this
objName ObjectName
return bool

OnObjectCreated() public static method

public static OnObjectCreated ( this transaction, DbObjectType objectType, ObjectName objectName ) : void
transaction this
objectType DbObjectType
objectName ObjectName
return void

OnObjectDropped() public static method

public static OnObjectDropped ( this transaction, DbObjectType objectType, ObjectName objectName ) : void
transaction this
objectType DbObjectType
objectName ObjectName
return void

OnTableAccessed() public static method

public static OnTableAccessed ( this transaction, int tableId, ObjectName tableName ) : void
transaction this
tableId int
tableName ObjectName
return void

OnTableConstraintAltered() public static method

public static OnTableConstraintAltered ( this transaction, int tableId ) : void
transaction this
tableId int
return void

OnTableCreated() public static method

public static OnTableCreated ( this transaction, int tableId, ObjectName tableName ) : void
transaction this
tableId int
tableName ObjectName
return void

OnTableDropped() public static method

public static OnTableDropped ( this transaction, int tableId, ObjectName tableName ) : void
transaction this
tableId int
tableName ObjectName
return void

ParameterStyle() public static method

public static ParameterStyle ( this transaction ) : QueryParameterStyle
transaction this
return QueryParameterStyle

ParameterStyle() public static method

public static ParameterStyle ( this transaction, QueryParameterStyle value ) : void
transaction this
value QueryParameterStyle
return void

ReadOnly() public static method

public static ReadOnly ( this transaction ) : bool
transaction this
return bool

ReadOnly() public static method

public static ReadOnly ( this transaction, bool value ) : void
transaction this
value bool
return void

RealObjectExists() public static method

public static RealObjectExists ( this transaction, DbObjectType objType, ObjectName objName ) : bool
transaction this
objType DbObjectType
objName ObjectName
return bool

RealTableExists() public static method

public static RealTableExists ( this transaction, ObjectName objName ) : bool
transaction this
objName ObjectName
return bool

RemoveNativeSequence() public static method

public static RemoveNativeSequence ( this transaction, ObjectName tableName ) : void
transaction this
tableName ObjectName
return void

ResolveObjectName() public static method

public static ResolveObjectName ( this transaction, DbObjectType objectType, ObjectName objectName ) : ObjectName
transaction this
objectType DbObjectType
objectName ObjectName
return ObjectName

ResolveObjectName() public static method

public static ResolveObjectName ( this transaction, ObjectName objectName ) : ObjectName
transaction this
objectName ObjectName
return ObjectName

ResolveObjectName() public static method

public static ResolveObjectName ( this transaction, string objectName ) : ObjectName
transaction this
objectName string
return ObjectName

ResolveObjectName() public static method

public static ResolveObjectName ( this transaction, string schemaName, string objectName ) : ObjectName
transaction this
schemaName string
objectName string
return ObjectName

ResolveTableName() public static method

public static ResolveTableName ( this transaction, ObjectName tableName ) : ObjectName
transaction this
tableName ObjectName
return ObjectName

SetTableId() public static method

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.
return SqlNumber

TableExists() public static method

public static TableExists ( this transaction, ObjectName tableName ) : bool
transaction this
tableName ObjectName
return bool