📄 tadatabase.html
字号:
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<title>TDatabase</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
<td align=center bgColor=#009999>
<font class=fontmainbig color="#FFFFFF">
<b>DOCI Components for Direct Oracle Access <br></b>
</font>
<br>
<font class=fontmain color="#FFFFFF">
<b>Version 1.19</b><br>
</font>
</td>
</tr>
</table>
<font class=fontmain>
<p>Copyright © 1998-2003 by Andrey Romanchenko<br>
All rights reserved.
<p>
<table cellspacing=2 cellpadding=0>
<tr>
<td><font class=fontmain>
<i>e-mail: </i></font>
</td>
<td><font class=fontmain>
<a href="mailto:lasersquad@tut.by?subject=TADatabase">lasersquad@tut.by</a></font>
</td>
</tr>
<tr>
<td><font class=fontmain>
<i>web site: </i></font>
</td>
<td><font class=fontmain>
<a href="http://www.suptas.com" target=_new>http://www.suptas.com</a><br>
<a href="http://sourceforge.net/projects/delphioci/" target=_new>http://sourceforge.net/projects/delphioci/</a></font>
</td>
</tr>
</table>
<br><br>
<h1 align=center>TADatabase</h1>
TDatabase component is an ancestor for TOraDB. <br>
It's maintains a list of
TDataSet components which have the Database property set to the currect
TADatabase and provides the framework for safety linking and unlinking
of TDataSet components.<br>
For example when TADatabase components is closing it automatically closes
all linked TDataSets.<br>
When TADatabase component destroes it unlink yourself from all TDataSets it linked
to.
<br><br>
<table cellspacing="0" cellpadding="5" border="1">
<tr bgcolor="#009999">
<td colspan="2" align="center" valign="middle">
<font class=fontcaption>
Properties
</font>
</td>
</tr>
<tr>
<td> <font class=fontcode>
property <b>Active</b>:boolean;
</font>
</td>
<td><font class=fontmain >
Calls abstract Opens or Closes methods.
</font>
</td>
</tr>
<tr bgcolor="#009999">
<td colspan="2" align="center" valign="middle">
<font class=fontcaption>
Methods
</font>
</td>
</tr>
<tr>
<td>
<font class=fontcode>
constructor <b>Create</b>(AOwner:TComponent); override;
</font>
</td>
<td>
<font class=fontmain>
Creates a TADatabase object. Initializes member variables.
</font>
</td>
</tr>
<tr>
<td>
<font class=fontcode>
destructor <b>Destroy</b>; override;
</font>
</td>
<td>
<font class=fontmain>
Destroes TADatabase and remove yourself from all linked datasets (TDataSet).
</font>
</td>
</tr>
<tr>
<a name=""></a>
<td>
<font class=fontcode>
procedure <b>Open</b>;abstract;
</font>
</td>
<td>
<font class=fontmain>
Abstract method for establishing connection to the database. Should be
implemented in descendants.
</font>
</td>
</tr>
<tr>
<td>
<font class=fontcode>
procedure <b>Close</b>;abstract;
</font>
</td>
<td>
<font class=fontmain>
Abstract method for closing database connection. All linked
datasets (TDataSet) automatically closed.
Should be implemented in descendants.
</font>
</td>
</tr>
<tr>
<td>
<font class=fontcode>
procedure <b>AddDataSet</b>(DataSet:TDataSet);
</font>
</td>
<td>
<font class=fontmain>
Adds the DataSet to the list of linked datasets. <br>
This method for internal use. Do not directly call this method
in your application.
</font>
</td>
</tr>
<tr>
<td>
<font class=fontcode>
procedure <b>RemoveDataSet</b>(DataSet:TDataSet);
</font>
</td>
<td>
<font class=fontmain>
Removes the DataSet from the list of linked datasets. <br>
This method for internal use. Do not directly call this method
in your application.
</font>
</td>
</tr>
</table>
<br>
</font>
<div align=right>
<font class=fontsmall>
Copyright (c) by Andrey Romanchenko
</font>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -