Package org.javers.core.graph
Class ObjectNode<T extends Cdo>
- java.lang.Object
-
- org.javers.core.graph.ObjectNode<T>
-
public abstract class ObjectNode<T extends Cdo> 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(T cdo)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcdoHashCode()TgetCdo()protected abstract java.lang.ObjectgetDehydratedPropertyValue(java.lang.String propertyName)abstract java.lang.ObjectgetDehydratedPropertyValue(JaversProperty property)GlobalIdgetGlobalId()shortcut toCdo.getGlobalId()ManagedTypegetManagedType()java.lang.ObjectgetPropertyValue(Property property)abstract GlobalIdgetReference(Property property)returns null if property is not ManagedTypeabstract java.util.List<GlobalId>getReferences(JaversProperty property)returns null if property is not Collection of ManagedTypeabstract booleanisEdge()booleanisNull(Property property)java.util.Optional<java.lang.Object>wrappedCdo()
-
-
-
Constructor Detail
-
ObjectNode
public ObjectNode(T cdo)
-
-
Method Detail
-
wrappedCdo
public java.util.Optional<java.lang.Object> wrappedCdo()
- Returns:
- returns
Optional.empty()for snapshots
-
getGlobalId
public GlobalId getGlobalId()
shortcut toCdo.getGlobalId()
-
getReference
public abstract GlobalId getReference(Property property)
returns null if property is not ManagedType
-
getReferences
public abstract java.util.List<GlobalId> getReferences(JaversProperty property)
returns null if property is not Collection of ManagedType
-
getDehydratedPropertyValue
protected abstract java.lang.Object getDehydratedPropertyValue(java.lang.String propertyName)
-
getDehydratedPropertyValue
public abstract java.lang.Object getDehydratedPropertyValue(JaversProperty property)
-
getPropertyValue
public java.lang.Object getPropertyValue(Property property)
-
isNull
public boolean isNull(Property property)
-
getManagedType
public ManagedType getManagedType()
-
getCdo
public T getCdo()
-
cdoHashCode
public int cdoHashCode()
-
isEdge
public abstract boolean isEdge()
-
-