TCustomConnection class
Abstract class for connections to a server.
Declaration
TCustomConnection = class(TComponent)Inheritance
- TCustomConnection
- TComponent
- TPersistent
- TObject
Descends from it: TDatabase
Description
TCustomConnection must be used for all database classes that need a connection to a server.
The class introduces some methods and classes to activate the connection (
Open)
and to deactivate the connection (
Close), plus a property to inspect the state
(
Connected) of the connected.See also
Properties
ForcedClose | protected | |
StreamedConnected | protected | |
DataSetCount | public | Number of datasets connected to this connection. |
DataSets | public | Datasets linked to this connection. |
Connected | published | Is the connection established or not. |
LoginPrompt | published | Should the OnLogin be triggered. |
AfterConnect | published | Event triggered after a connection is made. |
AfterDisconnect | published | Event triggered after a connection is closed. |
BeforeConnect | published | Event triggered before a connection is made. |
BeforeDisconnect | published | Event triggered before a connection is closed. |
Methods
DoCloseError | protected | |
SetForcedClose | protected | |
CloseForDestroy | protected | |
DoLoginPrompt | protected | |
DoConnect | protected | |
DoDisconnect | protected | |
GetConnected | protected | |
GetDataset | protected | |
GetDataSetCount | protected | |
GetLoginParams | protected | |
InternalHandleException | protected | |
Loaded | protected | Called when the component has finished loading. |
SetConnected | protected | |
SetLoginParams | protected | |
Close | public | Close the connection. |
Destroy | public | Remove the TCustomconnection instance from memory. |
Open | public | Makes the connection to the server. |
Events
OnLogin | published | Event triggered when a login prompt is shown. |
OnCloseError | published |
Inherited
From TComponent (74)
_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle Create 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.
