public class Column extends Object implements ValueMaker
ValueMaker
that takes its values from a single
column.NULL
Modifier and Type | Method and Description |
---|---|
void |
describeSelf(NodeSetFilter c) |
String |
makeValue(ResultRow row)
Retrieves a value from a database row according to some rule or pattern.
|
List<OrderSpec> |
orderSpecs(boolean ascending) |
Set<ProjectionSpec> |
projectionSpecs()
Returns a set of all
ProjectionSpec s containing data necessary
for this ValueSource. |
ValueMaker |
renameAttributes(ColumnRenamer renamer) |
String |
toString() |
Expression |
valueExpression(String value)
A SQL expression that selects only rows where this value maker
produces the specified value.
|
public Column(Attribute attribute)
public String makeValue(ResultRow row)
ValueMaker
makeValue
in interface ValueMaker
row
- the database rowpublic void describeSelf(NodeSetFilter c)
describeSelf
in interface ValueMaker
public Expression valueExpression(String value)
ValueMaker
Expression.FALSE
if this
value maker is incapable of producing the value.valueExpression
in interface ValueMaker
value
- A valuepublic Set<ProjectionSpec> projectionSpecs()
ValueMaker
ProjectionSpec
s containing data necessary
for this ValueSource.projectionSpecs
in interface ValueMaker
ProjectionSpec
spublic ValueMaker renameAttributes(ColumnRenamer renamer)
renameAttributes
in interface ValueMaker
public List<OrderSpec> orderSpecs(boolean ascending)
orderSpecs
in interface ValueMaker