|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.util.export.spotdata.JepDynamicField
public class JepDynamicField
A dynamic field implementation that uses a JEP expression to generate the expression that is needed to select the data. One instance of this class is considered to be equal to another if they are configured with the same jep expression and title.
Field Summary | |
---|---|
private Formula.AverageMethod |
averageMethod
|
private Formatter<?> |
formatter
|
private String |
jep
|
private String |
title
|
private Type |
type
|
Constructor Summary | |
---|---|
JepDynamicField()
Create a new object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
A jep dynamic field is equal to another field if it uses the same jep expression and has the same title. |
Formula.AverageMethod |
getAverageMethod()
Get the average method to use if the exporter is exporting averaged data. |
Expression |
getExpression(DbControl dc,
DynamicQuery query,
BioAssaySet source,
boolean forAverage)
Converts the configured JEP expression using the BioAssaySetUtil.createJepExpression(DbControl, String, DynamicQuery)
method. |
Formatter<?> |
getFormatter()
Get a formatter that converts the values in this field to strings. |
String |
getJep()
Get the configured JEP expression. |
String |
getTitle()
Get the column header. |
Type |
getType()
Get the data type of the field. |
int |
hashCode()
|
void |
setAverageMethod(Formula.AverageMethod averageMethod)
Set the average method to use when exporting averaged data. |
void |
setFormatter(Formatter<?> formatter)
Set a formatter to use for formatting the exported values. |
void |
setJep(String jep)
Set the expression used to select data in the query. |
void |
setTitle(String title)
Set the column header title. |
void |
setType(Type type)
Set the data type of the exported field. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private String jep
private String title
private Formula.AverageMethod averageMethod
private Formatter<?> formatter
private Type type
Constructor Detail |
---|
public JepDynamicField()
Method Detail |
---|
public Expression getExpression(DbControl dc, DynamicQuery query, BioAssaySet source, boolean forAverage)
BioAssaySetUtil.createJepExpression(DbControl, String, DynamicQuery)
method. If 'forAverage' is TRUE the confgured Formula.AverageMethod
is
allowed to transform the expression. If no average method has been configured the
average method specified by the IntensityTransform
from
the 'source' bioassay set is used.
getExpression
in interface DynamicField
dc
- The DbControl that is used for database accessquery
- The query the expression will be used withsource
- The source bioassay setforAverage
- TRUE if the expression should generate an
average of multiple values
public String getTitle()
ExportableField
getTitle
in interface ExportableField
public Type getType()
ExportableField
getType
in interface ExportableField
public Formatter<?> getFormatter()
ExportableField
getFormatter
in interface ExportableField
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public String getJep()
public void setJep(String jep)
Expressions
with the BioAssaySetUtil.createJepExpression(DbControl, String, DynamicQuery)
method.
public void setTitle(String title)
public void setType(Type type)
public Formula.AverageMethod getAverageMethod()
IntensityTransform
of the source bioassay set is used.
public void setAverageMethod(Formula.AverageMethod averageMethod)
public void setFormatter(Formatter<?> formatter)
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |