Skip to content

Instantly share code, notes, and snippets.

@bachmanm
Created September 26, 2013 16:02
Show Gist options
  • Save bachmanm/6716282 to your computer and use it in GitHub Desktop.
Save bachmanm/6716282 to your computer and use it in GitHub Desktop.
ImprovedTransactionData with methods for nodes only, JavaDoc ommitted
public interface ImprovedTransactionData {
boolean hasBeenCreated(Node node);
Collection<Node> getAllCreatedNodes();
boolean hasBeenDeleted(Node node);
Node getDeleted(Node node);
Collection<Node> getAllDeletedNodes();
boolean hasBeenChanged(Node node);
Change<Node> getChanged(Node node);
Collection<Change<Node>> getAllChangedNodes();
boolean hasPropertyBeenCreated(Node node, String key);
Map<String, Object> createdProperties(Node node);
boolean hasPropertyBeenDeleted(Node node, String key);
Map<String, Object> deletedProperties(Node node);
boolean hasPropertyBeenChanged(Node node, String key);
Map<String, Change<Object>> changedProperties(Node node);
//and the same for relationships
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment