Microsoft SDK for Java

getDataSource

The getDataSource and setDataSource methods of the Recordset class retrieve or specify an object containing data to be represented as a Recordset object, respectively.

Syntax

public IUnknown getDataSource();
public void setDataSource(IUnknown dataSource);

Return Value

Returns an object containing data to be represented as a Recordset object.

Parameters

dataSource The data source containing the data object.

Remarks

Use getDataSource to create data-bound controls with the data environment. The data environment maintains collections of data (data sources) containing named objects (data members) that will be represented as a Recordset object.

The getDataMember and getDataSource methods must be used in conjunction with each other.

The object referenced must implement the IDataSource interface.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.