Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Variables
Constants
Functions and Procedures
Identifiers

Class TSLCustomFun

Unit

SLFunAgr

Declaration

type TSLCustomFun = class()

Description

Base class for functions and aggregations

This class is registered in TFunArgManager, so both functions and aggregations can be stored in one manager. When Active is true function's object is registered in.

Fields

 NameDescription
Protected FActive  
Protected FDB  
Protected FFunName  
Protected FHandle  
Protected FResType  

Methods

Overview

Public function AggregateContext (aFunObject: TObject; nBytes: Integer): Pointer;
Public function AggregateCount (aFunObject: TObject): Pointer;
Public constructor Create (AOwner: TComponent); override;
Public destructor Destroy; override;
Protected procedure Loaded; override;
Protected procedure SetActive (const aValue: Boolean); virtual; abstract;
Protected procedure SetDB (const aValue: TSLDatabase);
Public procedure SetResultDouble (aFunObject: TObject; const aRes: Double);
Public procedure SetResultError (aFunObject: TObject; const aRes: String);
Public procedure SetResultInt (aFunObject: TObject; const aRes: Integer);
Public procedure SetResultString (aFunObject: TObject; const aRes: String);
Public function UserData (aFunObject: TObject): Pointer;

Description

Public function AggregateContext (aFunObject: TObject; nBytes: Integer): Pointer;

 

Public function AggregateCount (aFunObject: TObject): Pointer;

 

Public constructor Create (AOwner: TComponent); override;

 

Public destructor Destroy; override;

 

Protected procedure Loaded; override;

 

Protected procedure SetActive (const aValue: Boolean); virtual; abstract;

 

Protected procedure SetDB (const aValue: TSLDatabase);

 

Public procedure SetResultDouble (aFunObject: TObject; const aRes: Double);

 

Public procedure SetResultError (aFunObject: TObject; const aRes: String);

 

Public procedure SetResultInt (aFunObject: TObject; const aRes: Integer);

 

Public procedure SetResultString (aFunObject: TObject; const aRes: String);

 

Public function UserData (aFunObject: TObject): Pointer;

 

Properties

Overview

Published property Active: Boolean;
Published property Database: TSLDatabase;
Published property FunName: String;
Public property Handle: Pointer;
Published property ResultType: TSLFunResType;

Description

Published property Active: Boolean;

abstract(function/aggregation is registered in SQLite engine / DB There is no deactivation API function so once activated function will be active until dabtabase deactivation.

Published property Database: TSLDatabase;

abstract(Database in which function is registered (created))

Published property FunName: String;

abstract(Name of function / aggregation used in query)

Public property Handle: Pointer;

abstract(Pointer used by SQLite to recognise function)

Published property ResultType: TSLFunResType;

 


Generated by PasDoc 0.8.7 on N 16- lis 2003 16:05:18