Class ContainerMetaData

java.lang.Object
org.datanucleus.metadata.MetaData
org.datanucleus.metadata.ContainerMetaData
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ArrayMetaData, CollectionMetaData, MapMetaData

public class ContainerMetaData extends MetaData
Representation of the Meta-Data for a container. This is subclassed by Array, Collection, and Map.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • allowNulls

      Boolean allowNulls
      Whether this container allows nulls to be stored (as elements/keys/values).
  • Constructor Details

    • ContainerMetaData

      public ContainerMetaData()
      Constructor.
    • ContainerMetaData

      public ContainerMetaData(ContainerMetaData contmd)
      Copy constructor.
      Parameters:
      contmd - Container metadata to copy
  • Method Details

    • populate

      public void populate()
      Method to populate any defaults, and check the validity of the MetaData.
    • allowNulls

      public Boolean allowNulls()
      Whether this container allows nulls. For a collection/array this is whether there can be null elements. For a map this whether there can be null keys AND values (really we ought to treat them independent, but not done like that currently).
      Returns:
      Whether nulls are allowed to be stored in the container
    • getMemberMetaData

      public AbstractMemberMetaData getMemberMetaData()
      Accessor for the parent field/property MetaData.
      Returns:
      Parent metadata
    • getMemberName

      public String getMemberName()
      Accessor for the parent member name
      Returns:
      Parent member name.