Sign in Join
FPDoc Onlineexperiment

TDBTransaction class

In unit DB

Encapsulate a transaction.

Declaration

pascal
TDBTransaction = class(TComponent)

Inheritance

  1. TDBTransaction
  2. TComponent
  3. TPersistent
  4. TObject

Descends from it: TSQLTransaction

Description

TDBTransaction encapsulates a SQL transaction. It is an abstract class, and should be used by component creators that wish to encapsulate transactions in a class. The TDBTransaction class offers functionality to refer to a TDatabase instance, and to keep track of TDataset instances which are connected to the transaction.

See also

Properties

DatasetCountprotected
Datasetsprotected
DataBasepublicDatabase this transaction is connected to.
ActivepublishedIs the transaction active or not.

Methods

RegisterDatasetprotected
UnRegisterDatasetprotected
AllowCloseprotected
CloseDatasetprotected
SetDatabaseprotected
CloseTransprotected
OpenTransprotected
CheckDatabaseprotected
CheckActiveprotected
CheckInactiveprotected
Commitprotected
CommitRetainingprotected
Rollbackprotected
RollbackRetainingprotected
EndTransactionprotected
StartTransactionprotected
InternalHandleExceptionprotected
LoadedprotectedCalled when the component has finished loading.
CreatepublicTransaction property.
DestroypublicRemove a TDBTransaction instance from memory.
CloseDataSetspublicClose all connected datasets.

Inherited

From TComponent (73)

_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DefineProperties DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetChildren GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetParentComponent GetTypeInfo GetTypeInfoCount HasParent iicrGetComponent InsertComponent Invoke IsImplementorOf Loading Name Notification ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReadState ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetChildOrder SetDesigning SetDesignInstance SetInline SetName SetParentComponent SetSubComponent Tag ToString TToStringNameMode UpdateAction Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState

From TPersistent (5)

Assign AssignTo FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (37)

AfterConstruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName StringMessageTable SystemHasExtendedRTTI UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.