|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jrefinery.report.filter.ExpressionDataSource
A datasource that queries the datarow and computes a value using an expression. Expressions are simple stateless functions which do not maintain any state and get not informed of reportstate changes. All informations for expressions are queried using the datarow given in the connectDataRow method.
Expression
,
Serialized FormConstructor Summary | |
ExpressionDataSource()
Deprecated. Default constructor. |
|
ExpressionDataSource(java.lang.String expression)
Deprecated. Constructs a new expression data source. |
Method Summary | |
java.lang.Object |
clone()
Deprecated. Clones this 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. Gets the assigned dataRow. |
java.lang.String |
getExpression()
Deprecated. Returns the name of the expression bound to this datasource. |
java.lang.Object |
getValue()
Deprecated. Returns the value of the expression. |
void |
setExpression(java.lang.String field)
Deprecated. Sets the expression. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExpressionDataSource()
public ExpressionDataSource(java.lang.String expression)
expression
- The expression.Method Detail |
public void setExpression(java.lang.String field)
field
- the name of the expression as defined in the expression collection.public java.lang.String getExpression()
public java.lang.Object getValue()
getValue
in interface DataSource
java.lang.IllegalStateException
- if there is no datarow connected.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface DataSource
java.lang.CloneNotSupportedException
- if the cloning is not supported.public void connectDataRow(DataRow row) throws java.lang.IllegalStateException
If there is already a datarow connected, an IllegalStateException is thrown.
connectDataRow
in interface DataRowConnectable
row
- the datarow to be connected.
java.lang.NullPointerException
- if the given row is null
java.lang.IllegalStateException
- if there is a datarow already connected.public void disconnectDataRow(DataRow row) throws java.lang.IllegalStateException
disconnectDataRow
in interface DataRowConnectable
row
- the datarow to be disconnected.
java.lang.NullPointerException
- if the given row is null
java.lang.IllegalStateException
- if there is currently no datarow connected.protected DataRow getDataRow()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |