public class FilteredTransactionData extends BaseImprovedTransactionData implements ImprovedTransactionData, TransactionDataContainer
ImprovedTransactionData with filtering capabilities defined by InclusionPolicies, delegating to
FilteredNodeTransactionData and FilteredRelationshipTransactionData.
Results of methods returning Collections and Maps will be filtered. boolean
and single object returning methods will always return the full truth no matter the policies. So for example:
BaseImprovedTransactionData.getAllCreatedNodes() can return 5 nodes, but BaseImprovedTransactionData.hasBeenCreated(org.neo4j.graphdb.Node) can
return true for more of them, as it ignores the filtering.
When traversing the graph using an object returned by this API (such as FilteredNode),
nodes, properties, and relationships not included by the InclusionPolicies will be excluded. The only exception
to this are relationship start and end nodes - they are returned even if they would normally be filtered out. This is
a design decision in order to honor the requirement that relationships must have start and end node.| Constructor and Description |
|---|
FilteredTransactionData(TransactionDataContainer transactionDataContainer,
InclusionPolicies inclusionPolicies)
Construct a new filtered transaction data.
|
| Modifier and Type | Method and Description |
|---|---|
NodeTransactionData |
getNodeTransactionData()
Get
NodeTransactionData to delegate to. |
RelationshipTransactionData |
getRelationshipTransactionData()
Get
RelationshipTransactionData to delegate to. |
boolean |
mutationsOccurred()
Have any mutations actually occurred?
|
assignedLabels, changedProperties, changedProperties, createdProperties, createdProperties, deletedProperties, deletedProperties, getAllChangedNodes, getAllChangedRelationships, getAllCreatedNodes, getAllCreatedRelationships, getAllDeletedNodes, getAllDeletedRelationships, getChanged, getChanged, getDeleted, getDeleted, getDeletedRelationships, getDeletedRelationships, getWrapped, hasBeenChanged, hasBeenChanged, hasBeenCreated, hasBeenCreated, hasBeenDeleted, hasBeenDeleted, hasLabelBeenAssigned, hasLabelBeenRemoved, hasPropertyBeenChanged, hasPropertyBeenChanged, hasPropertyBeenCreated, hasPropertyBeenCreated, hasPropertyBeenDeleted, hasPropertyBeenDeleted, mutationsToStrings, removedLabelsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitassignedLabels, changedProperties, changedProperties, createdProperties, createdProperties, deletedProperties, deletedProperties, getAllChangedNodes, getAllChangedRelationships, getAllCreatedNodes, getAllCreatedRelationships, getAllDeletedNodes, getAllDeletedRelationships, getChanged, getChanged, getDeleted, getDeleted, getDeletedRelationships, getDeletedRelationships, hasBeenChanged, hasBeenChanged, hasBeenCreated, hasBeenCreated, hasBeenDeleted, hasBeenDeleted, hasLabelBeenAssigned, hasLabelBeenRemoved, hasPropertyBeenChanged, hasPropertyBeenChanged, hasPropertyBeenCreated, hasPropertyBeenCreated, hasPropertyBeenDeleted, hasPropertyBeenDeleted, mutationsToStrings, removedLabelsgetWrappedpublic FilteredTransactionData(TransactionDataContainer transactionDataContainer, InclusionPolicies inclusionPolicies)
transactionDataContainer - container for original unfiltered transaction data.inclusionPolicies - policies for filtering.public NodeTransactionData getNodeTransactionData()
NodeTransactionData to delegate to.getNodeTransactionData in interface TransactionDataContainergetNodeTransactionData in class BaseImprovedTransactionDatapublic RelationshipTransactionData getRelationshipTransactionData()
RelationshipTransactionData to delegate to.getRelationshipTransactionData in interface TransactionDataContainergetRelationshipTransactionData in class BaseImprovedTransactionDatapublic boolean mutationsOccurred()
mutationsOccurred in interface ImprovedTransactionDatamutationsOccurred in class BaseImprovedTransactionDataImprovedTransactionData.getAllCreatedNodes(), ImprovedTransactionData.getAllCreatedRelationships(), ImprovedTransactionData.getAllDeletedNodes(),
ImprovedTransactionData.getAllDeletedRelationships(), ImprovedTransactionData.getAllChangedNodes(), ImprovedTransactionData.getAllChangedRelationships().ImprovedTransactionData.mutationsOccurred()Copyright © 2013-2016–2020 Graph Aware Limited. All rights reserved.