Class ArrayMetaData

    • Field Detail

      • element

        protected org.datanucleus.metadata.ContainerComponent element
        Representation of the element of the array.
      • mayContainPersistableElements

        protected boolean mayContainPersistableElements
        wether this array may contain persistable elements
    • Constructor Detail

      • ArrayMetaData

        public ArrayMetaData​(ArrayMetaData arrmd)
        Constructor to create a copy of the passed metadata.
        arrmd - The metadata to copy
      • ArrayMetaData

        public ArrayMetaData()
        Default constructor. Set the fields using setters, before populate().
    • Method Detail

      • populate

        public void populate​(ClassLoaderResolver clr,
                             ClassLoader primary)
        Method to populate any defaults, and check the validity of the MetaData.
        clr - ClassLoaderResolver to use in loading any classes
        primary - the primary ClassLoader to use (or null)
      • elementIsPersistent

        public boolean elementIsPersistent()
      • getElementClassMetaData

        public AbstractClassMetaData getElementClassMetaData​(ClassLoaderResolver clr)
        Convenience accessor for the Element ClassMetaData.
        clr - ClassLoader resolver (in case we need to initialise it)
        element ClassMetaData
      • mayContainPersistableElements

        public boolean mayContainPersistableElements()
        Returns whether this array may contain persistable elements (as indicated by the user). TODO Remove this. The element-type of the array defines such things and this is not the solution
        whether this array may contain persistable elements
      • isEmbeddedElement

        public boolean isEmbeddedElement()
        Accessor for the embedded-element value
        embedded-element value
      • isSerializedElement

        public boolean isSerializedElement()
        Accessor for the serialized-element tag value
        serialized-element tag value
      • isDependentElement

        public boolean isDependentElement()
        Accessor for The dependent-element attribute indicates that the collection's element contains a reference that is to be deleted if the referring instance is deleted.
        dependent-element tag value
      • getElementType

        public String getElementType()
        Accessor for the element implementation types (when element is a reference type).
        element implementation types
      • getElementTypes

        public String[] getElementTypes()
      • setEmbeddedElement

        public ArrayMetaData setEmbeddedElement​(boolean embedded)
      • setSerializedElement

        public ArrayMetaData setSerializedElement​(boolean serialized)
      • setDependentElement

        public ArrayMetaData setDependentElement​(boolean dependent)