|
@@ -52,7 +52,6 @@ type
|
|
TSQLScript = class;
|
|
TSQLScript = class;
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
TDBEventType = (detCustom, detPrepare, detExecute, detFetch, detCommit,detRollBack);
|
|
TDBEventType = (detCustom, detPrepare, detExecute, detFetch, detCommit,detRollBack);
|
|
TDBEventTypes = set of TDBEventType;
|
|
TDBEventTypes = set of TDBEventType;
|
|
TDBLogNotifyEvent = Procedure (Sender : TSQLConnection; EventType : TDBEventType; Const Msg : String) of object;
|
|
TDBLogNotifyEvent = Procedure (Sender : TSQLConnection; EventType : TDBEventType; Const Msg : String) of object;
|
|
@@ -81,17 +80,6 @@ type
|
|
Comp : TComponent; AErrorCode: integer; ASQLState: string); overload;
|
|
Comp : TComponent; AErrorCode: integer; ASQLState: string); overload;
|
|
end;
|
|
end;
|
|
|
|
|
|
- { TSQLDBParam }
|
|
|
|
-
|
|
|
|
- TSQLDBParam = Class(TParam)
|
|
|
|
- private
|
|
|
|
- FFieldDef: TFieldDef;
|
|
|
|
- FData : Pointer;
|
|
|
|
- Public
|
|
|
|
- Property FieldDef : TFieldDef Read FFieldDef Write FFieldDef;
|
|
|
|
- Property SQLDBData : Pointer Read FData Write FData;
|
|
|
|
- end;
|
|
|
|
-
|
|
|
|
{ TSQLDBFieldDef }
|
|
{ TSQLDBFieldDef }
|
|
|
|
|
|
TSQLDBFieldDef = Class(TFieldDef)
|
|
TSQLDBFieldDef = Class(TFieldDef)
|
|
@@ -107,6 +95,18 @@ type
|
|
Protected
|
|
Protected
|
|
Class Function FieldDefClass : TFieldDefClass; override;
|
|
Class Function FieldDefClass : TFieldDefClass; override;
|
|
end;
|
|
end;
|
|
|
|
+
|
|
|
|
+ { TSQLDBParam }
|
|
|
|
+
|
|
|
|
+ TSQLDBParam = Class(TParam)
|
|
|
|
+ private
|
|
|
|
+ FFieldDef: TFieldDef;
|
|
|
|
+ FData : Pointer;
|
|
|
|
+ Public
|
|
|
|
+ Property FieldDef : TFieldDef Read FFieldDef Write FFieldDef;
|
|
|
|
+ Property SQLDBData : Pointer Read FData Write FData;
|
|
|
|
+ end;
|
|
|
|
+
|
|
{ TSQLDBParams }
|
|
{ TSQLDBParams }
|
|
|
|
|
|
TSQLDBParams = Class(TParams)
|
|
TSQLDBParams = Class(TParams)
|
|
@@ -244,7 +244,7 @@ type
|
|
property OnLogin;
|
|
property OnLogin;
|
|
end;
|
|
end;
|
|
|
|
|
|
-{ TSQLTransaction }
|
|
|
|
|
|
+ { TSQLTransaction }
|
|
|
|
|
|
TCommitRollbackAction = (caNone, caCommit, caCommitRetaining, caRollback,
|
|
TCommitRollbackAction = (caNone, caCommit, caCommitRetaining, caRollback,
|
|
caRollbackRetaining);
|
|
caRollbackRetaining);
|
|
@@ -348,11 +348,11 @@ type
|
|
Property Transaction;
|
|
Property Transaction;
|
|
end;
|
|
end;
|
|
|
|
|
|
-{ TCustomSQLQuery }
|
|
|
|
|
|
+ { TCustomSQLQuery }
|
|
|
|
|
|
TCustomSQLQuery = class (TCustomBufDataset)
|
|
TCustomSQLQuery = class (TCustomBufDataset)
|
|
private
|
|
private
|
|
- FSchemaType: TSchemaType;
|
|
|
|
|
|
+ FSchemaType : TSchemaType;
|
|
FUpdateable : boolean;
|
|
FUpdateable : boolean;
|
|
FTableName : string;
|
|
FTableName : string;
|
|
FStatement : TCustomSQLStatement;
|
|
FStatement : TCustomSQLStatement;
|
|
@@ -427,12 +427,12 @@ type
|
|
procedure BeforeRefreshOpenCursor; override;
|
|
procedure BeforeRefreshOpenCursor; override;
|
|
procedure SetReadOnly(AValue : Boolean); override;
|
|
procedure SetReadOnly(AValue : Boolean); override;
|
|
procedure Notification(AComponent: TComponent; Operation: TOperation); override;
|
|
procedure Notification(AComponent: TComponent; Operation: TOperation); override;
|
|
|
|
+ class function FieldDefsClass : TFieldDefsClass; override;
|
|
// IProviderSupport methods
|
|
// IProviderSupport methods
|
|
function PSGetUpdateException(E: Exception; Prev: EUpdateError): EUpdateError; override;
|
|
function PSGetUpdateException(E: Exception; Prev: EUpdateError): EUpdateError; override;
|
|
|
|
|
|
Function LogEvent(EventType : TDBEventType) : Boolean;
|
|
Function LogEvent(EventType : TDBEventType) : Boolean;
|
|
Procedure Log(EventType : TDBEventType; Const Msg : String); virtual;
|
|
Procedure Log(EventType : TDBEventType; Const Msg : String); virtual;
|
|
- class function FieldDefsClass : TFieldDefsClass; override;
|
|
|
|
public
|
|
public
|
|
constructor Create(AOwner : TComponent); override;
|
|
constructor Create(AOwner : TComponent); override;
|
|
destructor Destroy; override;
|
|
destructor Destroy; override;
|
|
@@ -446,12 +446,10 @@ type
|
|
Property SQLConnection : TSQLConnection Read GetSQLConnection Write SetSQLConnection;
|
|
Property SQLConnection : TSQLConnection Read GetSQLConnection Write SetSQLConnection;
|
|
Property SQLTransaction: TSQLTransaction Read GetSQLTransaction Write SetSQLTransaction;
|
|
Property SQLTransaction: TSQLTransaction Read GetSQLTransaction Write SetSQLTransaction;
|
|
protected
|
|
protected
|
|
-
|
|
|
|
- // redeclared data set properties
|
|
|
|
|
|
+ // redeclared TDataSet properties
|
|
property Active;
|
|
property Active;
|
|
property Filter;
|
|
property Filter;
|
|
property Filtered;
|
|
property Filtered;
|
|
-// property FilterOptions;
|
|
|
|
property BeforeOpen;
|
|
property BeforeOpen;
|
|
property AfterOpen;
|
|
property AfterOpen;
|
|
property BeforeClose;
|
|
property BeforeClose;
|