Class ContainerComponent

java.lang.Object
org.datanucleus.metadata.ContainerComponent
All Implemented Interfaces:
Serializable

class ContainerComponent extends Object implements Serializable
Representation of the details of an object stored in a container. This can be an element in a collection/array, or the key/value of a Map.
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • embedded

      protected Boolean embedded
      Whether the component is stored embedded.
    • serialized

      protected Boolean serialized
      Whether the component is stored serialised.
    • dependent

      protected Boolean dependent
      Whether the component is dependent on the container (i.e should be deleted with the container).
    • typeName

      protected String typeName
      Type of the component.
    • classMetaData

      protected AbstractClassMetaData classMetaData
      ClassMetaData for the component.
  • Constructor Details

    • ContainerComponent

      public ContainerComponent()
      Default constructor. Set fields using setters, before populate().
  • Method Details

    • getEmbedded

      public Boolean getEmbedded()
    • setEmbedded

      public void setEmbedded(Boolean embedded)
    • getSerialized

      public Boolean getSerialized()
    • setSerialized

      public void setSerialized(Boolean serialized)
    • getDependent

      public Boolean getDependent()
    • setDependent

      public void setDependent(Boolean dependent)
    • getTypeName

      public String getTypeName()
    • setTypeName

      public void setTypeName(String type)
    • populate

      void populate(String packageName, ClassLoaderResolver clr, ClassLoader primary)
      Method to update the "type" field to cater for it maybe being in the same package as the owning class, or being in java.lang as per JDO spec rules.
      Parameters:
      packageName - The package of the owning class
      clr - ClassLoader resolver
      primary - Primary class loader
    • toString

      public String toString()
      Overrides:
      toString in class Object