TCustomConnection
Abstract class for connections to a server.
Declaration
Source position: db.pas line 2233
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 (TCustomConnection.Close), plus a property to inspect the state (Connected) of the connected.
Properties
| Member |
Visibility |
Description |
| 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. |
| Connected |
published |
Is the connection established or not. |
| DataSetCount read only |
public |
Number of datasets connected to this connection. |
| DataSets read only |
public |
Datasets linked to this connection. |
| LoginPrompt |
published |
Should the OnLogin be triggered. |
See all PropertiesMethods
| Member |
Visibility |
Description |
| Close |
public |
Close the connection. |
| Destroy |
public |
Remove the TCustomconnection instance from memory. |
| Open |
public |
Makes the connection to the server. |
See all Methods