borland Packages Class Hierarchy sql.dataset Package Index
java.lang.Object +----borland.jbcl.dataset.Provider +----borland.sql.dataset.JdbcProvider +----borland.sql.dataset.QueryProvider
Constructors Properties Methods
Implements LoadCancel, ConnectionUpdateListener, Task, Serializable, EventListener
The QueryProvider component is used to provide data to a DataSet by running a query through JDBC. This component is also a place holder for static methods for executing statements with parameters (see executeStatement()).
public QueryProvider()Creates a QueryProvider object.
public final QueryDescriptor getQuery() public final void setQuery(borland.sql.dataset.QueryDescriptor queryDescriptor)The QueryDescriptor object that contains query properties.
public void checkMasterLink(borland.jbcl.dataset.MasterLinkDescriptor masterLink)Called by the StorageDataSet to allow the provider to validate the masterLink property. When the MasterLinkDescriptor.fetchAsNeeded property is enabled (true), the QueryProvider uses this method to check if there is a WHERE clause in the query. If no WHERE clause is specified, the QueryProvider throws a DataSetException.
Overrides: borland.jbcl.dataset.Provider.checkMasterLink(borland.jbcl.dataset.MasterLinkDescriptor)
public static final int executeStatement(borland.sql.dataset.Database database, java.lang.String statement, borland.jbcl.dataset.ReadWriteRow parameters)Executes the statement with the specified parameters:
Parameters:
public static final int executeStatement(borland.sql.dataset.Database database, java.lang.String statement, borland.jbcl.dataset.ReadWriteRow[] parameters)Executes the statement with the specified parameters:
Parameters:
:1.PARM_NAME
public final String getQueryString(borland.jbcl.dataset.StorageDataSet sds)