Class ImplementsMetaData

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

public class ImplementsMetaData extends MetaData
The implements element declares a persistence-capable interface implemented by the persistence-capable class that contains this element. An extent of persistence-capable classes that implement this interface is managed by the JDO implementation. The extent can be used for queries or for iteration just like an extent of persistence-capable instances. The attribute name is required, and is the name of the interface. The java class naming rules apply: if the interface name is unqualified, the package is the name of the enclosing package.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • name

      protected String name
      Name of the interface implemented.
    • properties

      protected final List<PropertyMetaData> properties
      Properties implemented.
  • Constructor Details

    • ImplementsMetaData

      public ImplementsMetaData(String name)
      Constructor.
      Parameters:
      name - Name of the interface being implemented
  • Method Details

    • populate

      public void populate(ClassLoaderResolver clr, ClassLoader primary)
      Method to populate the details of the implements.
      Parameters:
      clr - ClassLoaderResolver to use in loading any classes
      primary - the primary ClassLoader to use (or null)
    • getName

      public String getName()
      Accessor for name.
      Returns:
      Returns the name.
    • addProperty

      public void addProperty(PropertyMetaData pmd)
      Method to add a property to this interface.
      Parameters:
      pmd - Property