Package javax.jdo.spi

Class JDOImplHelper.Meta

java.lang.Object
javax.jdo.spi.JDOImplHelper.Meta
Enclosing class:
JDOImplHelper

static class JDOImplHelper.Meta extends Object
This is a helper class to manage metadata per persistence-capable class. The information is used at runtime to provide field names and field types to the JDO Model. This is the value of the HashMap which relates the PersistenceCapable Class as a key to the metadata.
  • Field Details

    • fieldNames

      String[] fieldNames
      This is an array of field names used for the Model at runtime. The field is passed by the static class initialization.
    • fieldTypes

      Class[] fieldTypes
      This is an array of field types used for the Model at runtime. The field is passed by the static class initialization.
    • fieldFlags

      byte[] fieldFlags
      This is an array of field flags used for the Model at runtime. The field is passed by the static class initialization.
    • persistenceCapableSuperclass

      Class persistenceCapableSuperclass
      This is the Class instance of the PersistenceCapable superclass.
    • pc

      This is an instance of PersistenceCapable, used at runtime to create new instances.
  • Constructor Details

    • Meta

      Meta(String[] fieldNames, Class[] fieldTypes, byte[] fieldFlags, Class persistenceCapableSuperclass, PersistenceCapable pc)
      Construct an instance of Meta.
      Parameters:
      fieldNames - An array of String
      fieldTypes - An array of Class
      fieldFlags - an array of int
      persistenceCapableSuperclass - the most immediate PersistenceCapable superclass
      pc - An instance of the PersistenceCapable class
  • Method Details

    • getFieldNames

      String[] getFieldNames()
      Get the field names from the metadata.
      Returns:
      the array of field names.
    • getFieldTypes

      Class[] getFieldTypes()
      Get the field types from the metadata.
      Returns:
      the array of field types.
    • getFieldFlags

      byte[] getFieldFlags()
      Get the field types from the metadata.
      Returns:
      the array of field types.
    • getPersistenceCapableSuperclass

      Class getPersistenceCapableSuperclass()
      Return the PersistenceCapable superclass.
      Returns:
      the PersistenceCapable superclass
    • getPC

      Get an instance of the PersistenceCapable class.
      Returns:
      an instance of the PersistenceCapable Class.
    • toString

      public String toString()
      Return the string form of the metadata.
      Overrides:
      toString in class Object
      Returns:
      the string form