Class ObjectNode<T extends Cdo>

  • Direct Known Subclasses:
    LiveNode

    public abstract class ObjectNode<T extends Cdo>
    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​(T cdo)
    • Method Detail

      • wrappedCdo

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

        public T getCdo()
      • cdoHashCode

        public int cdoHashCode()