org.eobjects.metamodel.data
Interface RowPublisher


public interface RowPublisher

An object on which a push-style data reader can publish records to a RowPublisherDataSet. The RowPublisher acts as a buffer between the publishing and consuming part of a dataset scenario. It will manage a queue of rows and will block calls if the queue is not being read/emptied as fast as it is being filled.

Author:
Kasper Sørensen

Method Summary
 void finished()
          Invoked to indicate to the consumer that no more rows will be published.
 boolean publish(Object[] values)
          Publishes a row, represented by an array of values.
 boolean publish(Object[] values, Style[] styles)
          Publishes a row, represented by an array of values and an array of styles.
 boolean publish(Row row)
          Publishes a row
 

Method Detail

publish

boolean publish(Row row)
Publishes a row

Parameters:
row - the Row to publish.
Returns:
a boolean indicating whether or not the consumer is still interested in more rows.

publish

boolean publish(Object[] values)
Publishes a row, represented by an array of values.

Parameters:
values - the objects to convert to a row.
Returns:
a boolean indicating whether or not the consumer is still interested in more rows.

publish

boolean publish(Object[] values,
                Style[] styles)
Publishes a row, represented by an array of values and an array of styles.

Parameters:
values - the objects to convert to a row.
styles - the styles that correspond to the values.
Returns:
a boolean indicating whether or not the consumer is still interested in more rows.

finished

void finished()
Invoked to indicate to the consumer that no more rows will be published.



Copyright © 2007-2013. All Rights Reserved.