|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - Type of Node this layout handlespublic interface INodeLayout<T extends org.openrdf.model.Value>
Provides read/write access to persisted nodes.
| Method Summary | |
|---|---|
T |
convert(java.lang.String value,
java.lang.Long modifier)
Convert raw value from database into Node of appropriate type |
java.lang.Long |
fetchId(T n)
Fetches a node's ID from the database |
T |
fetchValue(java.lang.Long id)
Fetches a nodes value from the database based on its long identifier and NodeType. |
NodeType |
getType()
|
java.util.Map<java.lang.Long,T> |
resolveStoredIds(java.util.Set<java.lang.Long> ids)
This method will determine which IDs in a list of given Ids are already stored in the database. |
java.util.Map<T,java.lang.Long> |
resolveStoredNodes(java.util.Set<T> nodes,
boolean storeUnresolvedNodes)
This method will determine which nodes in a list of given nodes are already stored in the database. |
java.lang.Long |
store(T n)
Stores a node in the database |
| Method Detail |
|---|
java.lang.Long store(T n)
n - The node to be stored
java.lang.Long fetchId(T n)
n - The node who's ID is to be found
T fetchValue(java.lang.Long id)
id - The ID of the node to be found
java.util.Map<T,java.lang.Long> resolveStoredNodes(java.util.Set<T> nodes,
boolean storeUnresolvedNodes)
nodes - The nodes which need to be resolved to whether they are already stored or need to be stored.storeUnresolvedNodes - Store nodes that are not already stored
java.util.Map<java.lang.Long,T> resolveStoredIds(java.util.Set<java.lang.Long> ids)
ids - The ids which need to be resolved to whether they are already stored.
NodeType getType()
T convert(java.lang.String value,
java.lang.Long modifier)
value - raw value of node from databasemodifier - for literal values
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||