Sign in Join
FPDoc Onlineexperiment

TSQLTransaction class

In unit SQLDB

Transaction in which a TSQLQuery is handled.

Declaration

pascal
TSQLTransaction = class(TDBTransaction)

Inheritance

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

Description

TSQLTransaction represents the transaction in which one or more TSQLQuery instances are doing their work. It contains the methods for committing or doing a rollback of the results of query. At least one TSQLTransaction must be used for each TSQLConnection used in an application.

See also

Properties

HandlepublicLow-level transaction handle.
SQLConnectionpublicDatabase as TSQLConnection.
ActionpublishedCurrently unused in SQLDB.
DatabasepublishedDatabase for which this component is handling connections.
ParamspublishedTransaction parameters.
OptionspublishedTransaction options.

Methods

UnPrepareStatementsprotected
MaybeStartTransactionprotected
AllowCloseprotected
CloseDatasetprotected
GetHandleprotected
SetDatabaseprotected
LogEventprotected
Logprotected
CreatepublicCreate a new transaction.
DestroypublicDestroy transaction component.
CommitpublicCommit the transaction, end transaction context.
CommitRetainingpublicCommit the transaction, retain transaction context.
RollbackpublicRoll back all changes made in the current transaction.
RollbackRetainingpublicRoll back changes made in the transaction, keep transaction context.
StartTransactionpublicStart a new transaction.
EndTransactionpublicEnd the transaction.

Inherited

From TDBTransaction (13)

Active CheckActive CheckDatabase CheckInactive CloseDataSets CloseTrans DatasetCount Datasets InternalHandleException Loaded OpenTrans RegisterDataset UnRegisterDataset

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.