|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.d2rq.values.BlankNodeIDValueMaker
public class BlankNodeIDValueMaker
A blank node identifier that uniquely identifies all resources generated from a specific ClassMap.
(Note: The implementation makes some assumptions about the Column class to keep the code simple and fast. This means BlankNodeIdentifier might not work with some hypothetical subclasses of Column.)
Field Summary |
---|
Fields inherited from interface org.d2rq.values.ValueMaker |
---|
NULL |
Constructor Summary | |
---|---|
BlankNodeIDValueMaker(String id,
List<ColumnName> columns)
Constructs a new blank node identifier. |
Method Summary | |
---|---|
void |
describeSelf(NodeSetFilter c)
|
List<ColumnName> |
getColumns()
|
String |
getID()
|
String |
makeValue(ResultRow row)
Creates an identifier from a database row. |
boolean |
matches(String value)
A string matches if it contains the correct number of delimiters, and the first delimited part is the correct ID. |
List<OrderOp.OrderSpec> |
orderSpecs(boolean ascending)
|
Set<ProjectionSpec> |
projectionSpecs()
Returns a set of all ProjectionSpec s containing data necessary
for this ValueSource. |
ValueMaker |
rename(Renamer renamer)
|
Expression |
toExpression()
|
String |
toString()
|
Expression |
valueExpression(String value,
DatabaseOp table,
Vendor vendor)
A SQL expression that selects only rows where this value maker produces the specified value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BlankNodeIDValueMaker(String id, List<ColumnName> columns)
id
- A string that is unique for the class map
whose resources are identified by this BlankNodeIdentifiercolumns
- A set of ColumnName
s that uniquely
identify the nodesMethod Detail |
---|
public List<ColumnName> getColumns()
public String getID()
public void describeSelf(NodeSetFilter c)
describeSelf
in interface ValueMaker
public boolean matches(String value)
matches
in interface ValueMaker
true
iff this node maker is capable of producing the valuepublic Expression valueExpression(String value, DatabaseOp table, Vendor vendor)
ValueMaker
Expression.FALSE
if this
value maker is incapable of producing the value.
valueExpression
in interface ValueMaker
value
- A valuetable
- The table to which the expression will be applicablevendor
- A vendor instance for datatyping etc.
public Set<ProjectionSpec> projectionSpecs()
ValueMaker
ProjectionSpec
s containing data necessary
for this ValueSource.
projectionSpecs
in interface ValueMaker
ProjectionSpec
spublic String makeValue(ResultRow row)
makeValue
in interface ValueMaker
row
- a database row
public ValueMaker rename(Renamer renamer)
rename
in interface ValueMaker
public List<OrderOp.OrderSpec> orderSpecs(boolean ascending)
orderSpecs
in interface ValueMaker
public String toString()
toString
in class Object
public Expression toExpression()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |