public final class Neo4jTupleSnapshot extends Object implements TupleSnapshot
The columns of the tuple are mapped as properties of the node.
Constructor and Description |
---|
Neo4jTupleSnapshot(org.neo4j.graphdb.Node node,
EntityKeyMetadata entityKeyMetadata) |
Neo4jTupleSnapshot(org.neo4j.graphdb.Node node,
Map<String,AssociatedEntityKeyMetadata> associatedEntityKeyMetadata,
Map<String,String> rolesByColumn,
EntityKeyMetadata entityKeyMetadata) |
Modifier and Type | Method and Description |
---|---|
Object |
get(String column)
Get the value of a column in the tuple
|
Set<String> |
getColumnNames()
Get columns names composing the tuple
|
org.neo4j.graphdb.Node |
getNode() |
boolean |
isEmpty()
Check if the tuple contains some values
|
public Neo4jTupleSnapshot(org.neo4j.graphdb.Node node, EntityKeyMetadata entityKeyMetadata)
public Neo4jTupleSnapshot(org.neo4j.graphdb.Node node, Map<String,AssociatedEntityKeyMetadata> associatedEntityKeyMetadata, Map<String,String> rolesByColumn, EntityKeyMetadata entityKeyMetadata)
public Object get(String column)
TupleSnapshot
get
in interface TupleSnapshot
column
- the name of the columnnull
if the value is not setpublic boolean isEmpty()
TupleSnapshot
isEmpty
in interface TupleSnapshot
true
is there is at lease one value in the tuple, false
otherwise.public Set<String> getColumnNames()
TupleSnapshot
getColumnNames
in interface TupleSnapshot
public org.neo4j.graphdb.Node getNode()
Copyright © 2010-2015 Red Hat, Inc., Emmanuel Bernard and various contributors. All Rights Reserved.