com.jrefinery.report.filter
Class ReportDataSource

java.lang.Object
  |
  +--com.jrefinery.report.filter.ReportDataSource
All Implemented Interfaces:
java.lang.Cloneable, DataRowConnectable, DataSource, java.io.Serializable

Deprecated. use DataRowDataSource as unified access class instead

public class ReportDataSource
extends java.lang.Object
implements DataSource, DataRowConnectable, java.io.Serializable

A data source that returns the value of a field in the report's TableModel.

The field is identified by the column name.

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
ReportDataSource()
          Deprecated. Default constructor.
ReportDataSource(java.lang.String field)
          Deprecated. Constructs a new report data source.
 
Method Summary
 java.lang.Object clone()
          Deprecated. Clones the data source.
 void connectDataRow(DataRow row)
          Deprecated. Connects the DataRowBackend with the named DataSource or DataFilter.
 void disconnectDataRow(DataRow row)
          Deprecated. Releases the connection to the datarow.
protected  DataRow getDataRow()
          Deprecated. Returns the data row.
 java.lang.String getField()
          Deprecated. Returns the field name.
 java.lang.Object getValue()
          Deprecated. Returns the value of the data source.
 void setField(java.lang.String field)
          Deprecated. Sets the field name.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportDataSource

public ReportDataSource()
Deprecated. 
Default constructor.


ReportDataSource

public ReportDataSource(java.lang.String field)
Deprecated. 
Constructs a new report data source.

Parameters:
field - The field name.
Method Detail

setField

public void setField(java.lang.String field)
Deprecated. 
Sets the field name.

The field name should correspond to the name of one of the columns in the report's TableModel.

Parameters:
field - The field name.

getField

public java.lang.String getField()
Deprecated. 
Returns the field name.

Returns:
The field name.

getValue

public java.lang.Object getValue()
Deprecated. 
Returns the value of the data source.

Specified by:
getValue in interface DataSource
Returns:
The value.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Deprecated. 
Clones the data source.

Specified by:
clone in interface DataSource
Overrides:
clone in class java.lang.Object
Returns:
the clone.
Throws:
java.lang.CloneNotSupportedException - this should never happen.

connectDataRow

public void connectDataRow(DataRow row)
                    throws java.lang.IllegalStateException
Deprecated. 
Connects the DataRowBackend with the named DataSource or DataFilter. The filter is now able to query the other DataSources to compute the result.

Specified by:
connectDataRow in interface DataRowConnectable
Parameters:
row - the data row.
Throws:
java.lang.IllegalStateException - if there is already a data row connected.

disconnectDataRow

public void disconnectDataRow(DataRow row)
                       throws java.lang.IllegalStateException
Deprecated. 
Releases the connection to the datarow.

Specified by:
disconnectDataRow in interface DataRowConnectable
Parameters:
row - the data row.
Throws:
java.lang.IllegalStateException - if no datarow is connected.

getDataRow

protected DataRow getDataRow()
Deprecated. 
Returns the data row.

Returns:
the data row.