Sign in Join
FPDoc Onlineexperiment

TDBDataset class

In unit DB

Dataset connected to a database.

Declaration

pascal
TDBDataset = class(TDataSet)

Inheritance

  1. TDBDataset
  2. TDataSet
  3. TComponent
  4. TPersistent
  5. TObject

Descends from it: TCustomBufDataset

Description

TDBDataset is a TDataset descendent which introduces the concept of a database: a central component ( TDatabase) which represents a connection to a database. This central component is exposed in the Database property. When the database is no longer connected, or is no longer in memory, all TDBDataset instances connected to it are disabled.

TDBDataset also introduces the notion of a transaction, exposed in the Transaction property.

TDBDataset is an abstract class, it should never be used directly.

Dataset component writers should descend their component from TDBDataset if they wish to introduce a central database connection component. The database connection logic will be handled automatically by TDBDataset.

See also

Properties

DataBasepublicDatabase this dataset is connected to.
TransactionpublicTransaction in which this dataset is running.

Methods

SetDatabaseprotected
SetTransactionprotected
CheckDatabaseprotected
destroypublicRemove the TDBDataset instance from memory.

Inherited

From TDataSet (245)

ActivateBuffers Active ActiveBuffer ActiveRecord AfterCancel AfterClose AfterDelete AfterEdit AfterInsert AfterOpen AfterPost AfterRefresh AfterScroll AllocRecordBuffer Append AppendRecord AutoCalcFields BeforeCancel BeforeClose BeforeDelete BeforeEdit BeforeInsert BeforeOpen BeforePost BeforeRefresh BeforeScroll BindFields BlobFieldCount BlockReadNext BlockReadSize BOF Bookmark BookmarkAvailable BookmarkSize BookmarkValid BufferCount Buffers CalcBuffer CalcFieldsSize CalculateFields Cancel CanModify CheckActive CheckBiDirectional CheckBrowseMode CheckInactive ClearBuffers ClearCalcFields ClearFields Close CloseBlob CloseCursor CompareBookmarks Constraints ControlsDisabled Create CreateBlobStream CreateFields CurrentRecord CursorPosChanged DataConvert DataEvent DataSource DefaultFields Delete DestroyFields DisableControls DoAfterCancel DoAfterClose DoAfterDelete DoAfterEdit DoAfterInsert DoAfterOpen DoAfterPost DoAfterRefresh DoAfterScroll DoBeforeCancel DoBeforeClose DoBeforeDelete DoBeforeEdit DoBeforeInsert DoBeforeOpen DoBeforePost DoBeforeRefresh DoBeforeScroll DoOnCalcFields DoOnNewRecord Edit EnableControls EOF FieldByName FieldByNumber FieldCount FieldDefs FieldDefsClass Fields FieldsClass FieldValues Filter Filtered FilterOptions FindField FindFirst FindLast FindNext FindPrior FindRecord First Found FreeBookmark FreeFieldBuffers FreeRecordBuffer GetBookmark GetBookmarkData GetBookmarkFlag GetBookmarkStr GetCalcFields GetCanModify GetChildren GetCurrentRecord GetDataSource GetDefaultBufferCount GetFieldClass GetfieldCount GetFieldData GetFieldList GetFieldNames GetFieldValues GetIndexDefs GetIsIndexField GetNextRecord GetNextRecords GetPriorRecord GetPriorRecords GetRecNo GetRecord GetRecordCount GetRecordSize GotoBookmark InitFieldDefs InitFieldDefsFromFields InitRecord Insert InsertRecord InternalAddRecord InternalCalcFields InternalCancel InternalClose InternalDelete InternalEdit InternalFirst InternalGotoBookmark InternalHandleException InternalInitFieldDefs InternalInitRecord InternalInsert InternalLast InternalOpen InternalPost InternalRefresh InternalSetToRecord IsCursorOpen IsEmpty IsLinkedTo IsSequenced IsUniDirectional Last Loaded Locate Lookup Modified MoveBy MyDataSourceCount MyDataSources Next OnCalcFields OnDeleteError OnEditError OnFilterRecord OnNewRecord OnPostError Open OpenCursor OpenCursorcomplete Post Prior PSEndTransaction PSExecute PSExecuteStatement PSGetAttributes PSGetCommandText PSGetCommandType PSGetDefaultOrder PSGetIndexDefs PSGetKeyFields PSGetParams PSGetQuoteChar PSGetTableName PSGetUpdateException PSInTransaction PSIsSQLBased PSIsSQLSupported PSReset PSSetCommandText PSSetParams PSStartTransaction PSUpdateRecord RecalcBufListSize RecNo RecordCount RecordSize Refresh RefreshInternalCalcFields RestoreState Resync SetActive SetBookmarkData SetBookmarkFlag SetBookmarkStr SetBufListSize SetChildOrder SetCurrentRecord SetDefaultFields SetFieldData SetFields SetFieldValues SetFiltered SetFilterOptions SetFilterText SetFound SetModified SetName SetOnFilterRecord SetRecNo SetState SetTempState SetUniDirectional SparseArrays State TempBuffer Translate UpdateCursorPos UpdateIndexDefs UpdateRecord UpdateStatus

From TComponent (70)

_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DefineProperties DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent 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 SetDesigning SetDesignInstance SetInline 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.