TDBTransaction class
Encapsulate a transaction.
Declaration
TDBTransaction = class(TComponent)Inheritance
- TDBTransaction
- TComponent
- TPersistent
- 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
DatasetCount | protected | |
Datasets | protected | |
DataBase | public | Database this transaction is connected to. |
Active | published | Is the transaction active or not. |
Methods
RegisterDataset | protected | |
UnRegisterDataset | protected | |
AllowClose | protected | |
CloseDataset | protected | |
SetDatabase | protected | |
CloseTrans | protected | |
OpenTrans | protected | |
CheckDatabase | protected | |
CheckActive | protected | |
CheckInactive | protected | |
Commit | protected | |
CommitRetaining | protected | |
Rollback | protected | |
RollbackRetaining | protected | |
EndTransaction | protected | |
StartTransaction | protected | |
InternalHandleException | protected | |
Loaded | protected | Called when the component has finished loading. |
Create | public | Transaction property. |
Destroy | public | Remove a TDBTransaction instance from memory. |
CloseDataSets | public | Close 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.
