Class EmbeddedFieldAccessor

  • All Implemented Interfaces:
    Serializable, Accessor

    public class EmbeddedFieldAccessor
    extends Object
    implements Accessor
    An accessor for fields storing embedded objects. This accessor will initialize null fields with appropriate embeddable objects when needed during get and set calls.
    See Also:
    Serialized Form
    • Field Detail

      • propertyPath

        protected String propertyPath
      • embeddedAccessor

        protected Accessor embeddedAccessor
      • embeddableAccessor

        protected Accessor embeddableAccessor
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: Accessor
        Returns property name.
        Specified by:
        getName in interface Accessor
      • getEmbeddable

        protected Object getEmbeddable​(Object owner)
        Returns an embeddable object for the owner object, initializing embeddable if it is null. Currently supports only one level of embedding.