Class ObjectNode


  • public class ObjectNode
    extends java.lang.Object
    Node in client's domain object graph. Reflects one Cdo or CdoSnapshot.

    Cdo could be an EntityType or a ValueObjectType

    Implementation should delegate equals() and hashCode() to Cdo

    • Constructor Detail

      • ObjectNode

        public ObjectNode​(Cdo cdo)
    • Method Detail

      • wrappedCdo

        public java.util.Optional<java.lang.Object> wrappedCdo()
        Returns:
        returns Optional.EMPTY for snapshots
      • 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)
      • getCdo

        public Cdo getCdo()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object