public interface DataProvider
DataProvider
allows retrieval of accumulated data.
See DataVisitor
and DataListener
for description
of corresponding contracts.
AbstractRecordProvider
or use RecordBuffer
as a high-performance implementation of it when data is available in advance.
New code is also discouraged from using this interface unless it is need for interoperability with
legacy code. Various legacy APIs will be gradually migrated to NG interfaces and classes.Modifier and Type | Method and Description |
---|---|
boolean |
retrieveData(DataVisitor visitor)
Retrieves accumulated data into specified data visitor.
|
void |
setDataListener(DataListener listener)
Sets new data listener to receive notifications about data.
|
boolean retrieveData(DataVisitor visitor)
true
if some data still remains in the provider
or false
if all accumulated data were retrieved.void setDataListener(DataListener listener)
null
to set empty data listener (no notifications).
NOTE: if there is accumulated data available, then specified listener will be notified by this method.
Copyright © 2002–2025 Devexperts LLC. All rights reserved.