IBX.IBTable.TIBTable.PSGetIndexDefs

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function PSGetIndexDefs(IndexTypes: TIndexOptions): TIndexDefs; override;

C++

virtual Data::Db::TIndexDefs* __fastcall PSGetIndexDefs(Data::Db::TIndexOptions IndexTypes);

Properties

Type Visibility Source Unit Parent
function protected
IBX.IBTable.pas
IBX.IBTable.hpp
IBX.IBTable TIBTable

Description

Returns the definitions of all specified indexes defined for the dataset.

IBX.IBTable.TIBTable.PSGetIndexDefs inherits from Data.DB.TDataSet.PSGetIndexDefs. All content below this line refers to Data.DB.TDataSet.PSGetIndexDefs.

Returns the definitions of all specified indexes defined for the dataset.

The provider component calls PSGetIndexDefs to locate an index that contains information it needs. For example, it uses PSGetIndexDefs to locate an index that contains the key fields returned by PSGetKeyFields. This information allows the provider to locate the records that need to change when it applies updates. The provider also calls this method to locate indexes that it adds to the metadata of data packets.

IndexTypes indicates the options required of the returned indexes. PSGetIndexDefs returns all indexes whose Options property includes the specified flags.

PSGetIndexDefs returns a TIndexDefs object that contains all the indexes of the dataset that match the IndexTypes parameter.

This method is an implementation of the IProviderSupport.PSGetIndexDefs method and, by default, returns nil for Delphi and NULL for C++, because TDataSet does not implement a provider by default. To use it, every TDataSet descendant must override it in its specific way.

See Also