Package org.javers.core.graph
Class ObjectNode
- java.lang.Object
-
- org.javers.core.graph.ObjectNode
-
public class ObjectNode extends java.lang.ObjectNode in client's domain object graph. Reflects oneCdoorCdoSnapshot. Cdo could be anEntityTypeor aValueObjectTypeImplementation should delegate equals() and hashCode() toCdo
-
-
Constructor Summary
Constructors Constructor Description ObjectNode(Cdo cdo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)CdogetCdo()GlobalIdgetGlobalId()shortcut toCdo.getGlobalId()ManagedTypegetManagedType()java.lang.ObjectgetPropertyValue(Property property)GlobalIdgetReference(Property property)returns null if property is not ManagedTypeinthashCode()booleanisNull(Property property)java.util.Optional<java.lang.Object>wrappedCdo()
-
-
-
Constructor Detail
-
ObjectNode
public ObjectNode(Cdo cdo)
-
-
Method Detail
-
wrappedCdo
public java.util.Optional<java.lang.Object> wrappedCdo()
- Returns:
- returns
Optional.EMPTYfor snapshots
-
getGlobalId
public GlobalId getGlobalId()
shortcut toCdo.getGlobalId()
-
getReference
public GlobalId getReference(Property property)
returns null if property is not ManagedType
-
getPropertyValue
public java.lang.Object getPropertyValue(Property property)
-
isNull
public boolean isNull(Property property)
-
getManagedType
public ManagedType getManagedType()
-
getCdo
public Cdo getCdo()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-