C# Class Deveel.Data.Transactions.TransactionExtensions

Provides some convenience extension methods to ITransaction instances.
Afficher le fichier Open project: deveel/deveeldb

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static AlterObject ( this transaction, IObjectInfo objInfo ) : bool
transaction this
objInfo IObjectInfo
Résultat bool

AsEventSource() public static méthode

public static AsEventSource ( this transaction ) : IEventSource
transaction this
Résultat IEventSource

AutoCommit() public static méthode

public static AutoCommit ( this transaction ) : bool
transaction this
Résultat bool

AutoCommit() public static méthode

public static AutoCommit ( this transaction, bool value ) : void
transaction this
value bool
Résultat void

CreateNativeSequence() public static méthode

public static CreateNativeSequence ( this transaction, ObjectName tableName ) : void
transaction this
tableName ObjectName
Résultat void

CreateObject() public static méthode

public static CreateObject ( this transaction, IObjectInfo objInfo ) : void
transaction this
objInfo IObjectInfo
Résultat void

CreateSchema() public static méthode

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

CreateSequence() public static méthode

public static CreateSequence ( this transaction, SequenceInfo sequenceInfo ) : void
transaction this
sequenceInfo SequenceInfo
Résultat void

CreateTable() public static méthode

public static CreateTable ( this transaction, TableInfo tableInfo ) : void
transaction this
tableInfo TableInfo
Résultat void

CreateTable() public static méthode

public static CreateTable ( this transaction, TableInfo tableInfo, bool temporary ) : void
transaction this
tableInfo TableInfo
temporary bool
Résultat void

CurrentSchema() public static méthode

public static CurrentSchema ( this transaction ) : string
transaction this
Résultat string

CurrentSchema() public static méthode

public static CurrentSchema ( this transaction, string value ) : void
transaction this
value string
Résultat void

CurrentTableId() public static méthode

public static CurrentTableId ( this transaction, ObjectName tableName ) : SqlNumber
transaction this
tableName ObjectName
Résultat SqlNumber

DropObject() public static méthode

public static DropObject ( this transaction, DbObjectType objType, ObjectName objName ) : bool
transaction this
objType DbObjectType
objName ObjectName
Résultat bool

DropSequence() public static méthode

public static DropSequence ( this transaction, ObjectName sequenceName ) : bool
transaction this
sequenceName ObjectName
Résultat bool

ErrorOnDirtySelect() public static méthode

public static ErrorOnDirtySelect ( this transaction ) : bool
transaction this
Résultat bool

ErrorOnDirtySelect() public static méthode

public static ErrorOnDirtySelect ( this transaction, bool value ) : void
transaction this
value bool
Résultat void

FindObject() public static méthode

public static FindObject ( this transaction, ObjectName objName ) : IDbObject
transaction this
objName ObjectName
Résultat IDbObject

GetMutableTable() public static méthode

public static GetMutableTable ( this transaction, ObjectName tableName ) : IMutableTable
transaction this
tableName ObjectName
Résultat IMutableTable

GetObject() public static méthode

public static GetObject ( this transaction, DbObjectType objType, ObjectName objName ) : IDbObject
transaction this
objType DbObjectType
objName ObjectName
Résultat IDbObject

GetTable() public static méthode

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.
Résultat ITable

GetTableInfo() public static méthode

public static GetTableInfo ( this transaction, ObjectName tableName ) : TableInfo
transaction this
tableName ObjectName
Résultat TableInfo

GetTableManager() public static méthode

public static GetTableManager ( this transaction ) : TableManager
transaction this
Résultat TableManager

GetTableType() public static méthode

public static GetTableType ( this transaction, ObjectName tableName ) : string
transaction this
tableName ObjectName
Résultat string

GetTriggerManager() public static méthode

public static GetTriggerManager ( this transaction ) : TriggerManager
transaction this
Résultat TriggerManager

IgnoreIdentifiersCase() public static méthode

public static IgnoreIdentifiersCase ( this transaction ) : bool
transaction this
Résultat bool

IgnoreIdentifiersCase() public static méthode

public static IgnoreIdentifiersCase ( this transaction, bool value ) : void
transaction this
value bool
Résultat void

Lock() public static méthode

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

LockTimeout() public static méthode

public static LockTimeout ( this transaction ) : int
transaction this
Résultat int

NextTableId() public static méthode

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

ObjectExists() public static méthode

public static ObjectExists ( this transaction, DbObjectType objType, ObjectName objName ) : bool
transaction this
objType DbObjectType
objName ObjectName
Résultat bool

ObjectExists() public static méthode

public static ObjectExists ( this transaction, ObjectName objName ) : bool
transaction this
objName ObjectName
Résultat bool

OnObjectCreated() public static méthode

public static OnObjectCreated ( this transaction, DbObjectType objectType, ObjectName objectName ) : void
transaction this
objectType DbObjectType
objectName ObjectName
Résultat void

OnObjectDropped() public static méthode

public static OnObjectDropped ( this transaction, DbObjectType objectType, ObjectName objectName ) : void
transaction this
objectType DbObjectType
objectName ObjectName
Résultat void

OnTableAccessed() public static méthode

public static OnTableAccessed ( this transaction, int tableId, ObjectName tableName ) : void
transaction this
tableId int
tableName ObjectName
Résultat void

OnTableConstraintAltered() public static méthode

public static OnTableConstraintAltered ( this transaction, int tableId ) : void
transaction this
tableId int
Résultat void

OnTableCreated() public static méthode

public static OnTableCreated ( this transaction, int tableId, ObjectName tableName ) : void
transaction this
tableId int
tableName ObjectName
Résultat void

OnTableDropped() public static méthode

public static OnTableDropped ( this transaction, int tableId, ObjectName tableName ) : void
transaction this
tableId int
tableName ObjectName
Résultat void

ParameterStyle() public static méthode

public static ParameterStyle ( this transaction ) : QueryParameterStyle
transaction this
Résultat QueryParameterStyle

ParameterStyle() public static méthode

public static ParameterStyle ( this transaction, QueryParameterStyle value ) : void
transaction this
value QueryParameterStyle
Résultat void

ReadOnly() public static méthode

public static ReadOnly ( this transaction ) : bool
transaction this
Résultat bool

ReadOnly() public static méthode

public static ReadOnly ( this transaction, bool value ) : void
transaction this
value bool
Résultat void

RealObjectExists() public static méthode

public static RealObjectExists ( this transaction, DbObjectType objType, ObjectName objName ) : bool
transaction this
objType DbObjectType
objName ObjectName
Résultat bool

RealTableExists() public static méthode

public static RealTableExists ( this transaction, ObjectName objName ) : bool
transaction this
objName ObjectName
Résultat bool

RemoveNativeSequence() public static méthode

public static RemoveNativeSequence ( this transaction, ObjectName tableName ) : void
transaction this
tableName ObjectName
Résultat void

ResolveObjectName() public static méthode

public static ResolveObjectName ( this transaction, DbObjectType objectType, ObjectName objectName ) : ObjectName
transaction this
objectType DbObjectType
objectName ObjectName
Résultat ObjectName

ResolveObjectName() public static méthode

public static ResolveObjectName ( this transaction, ObjectName objectName ) : ObjectName
transaction this
objectName ObjectName
Résultat ObjectName

ResolveObjectName() public static méthode

public static ResolveObjectName ( this transaction, string objectName ) : ObjectName
transaction this
objectName string
Résultat ObjectName

ResolveObjectName() public static méthode

public static ResolveObjectName ( this transaction, string schemaName, string objectName ) : ObjectName
transaction this
schemaName string
objectName string
Résultat ObjectName

ResolveTableName() public static méthode

public static ResolveTableName ( this transaction, ObjectName tableName ) : ObjectName
transaction this
tableName ObjectName
Résultat ObjectName

SetTableId() public static méthode

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.
Résultat SqlNumber

TableExists() public static méthode

public static TableExists ( this transaction, ObjectName tableName ) : bool
transaction this
tableName ObjectName
Résultat bool