Class InterfaceMapping

All Implemented Interfaces:
MappingCallbacks

public class InterfaceMapping extends ReferenceMapping
Mapping for Interface fields.
  • Field Details

    • implementationClasses

      private String implementationClasses
      Extension - if a field is declared with implementation-classes. Comma-separated list of implementation classes.
  • Constructor Details

    • InterfaceMapping

      public InterfaceMapping()
  • Method Details

    • initialize

      public void initialize(org.datanucleus.metadata.AbstractMemberMetaData mmd, Table table, org.datanucleus.ClassLoaderResolver clr)
      Initialisation.
      Overrides:
      initialize in class ReferenceMapping
      Parameters:
      mmd - MetaData for the field/property
      table - datastore container (table)
      clr - ClassLoader resolver
    • setImplementationClasses

      public void setImplementationClasses(String implementationClasses)
      Set the implementation classes. If the field defined what the implementation classes are, this mapping will only use it
      Parameters:
      implementationClasses - the implementation classes string
    • getObject

      public Object getObject(org.datanucleus.ExecutionContext ec, ResultSet rs, int[] pos)
      Method to retrieve an object of this type from the ResultSet.
      Overrides:
      getObject in class ReferenceMapping
      Parameters:
      ec - ExecutionContext
      rs - The ResultSet
      pos - The parameter positions
      Returns:
      The object