Package javax.jdo.spi


package javax.jdo.spi

This package contains the interfaces and classes used by JDO implementations.

JDO defines interfaces and classes to be used by application programmers when using classes whose instances are to be stored in persistent storage (persistence-capable classes), and specifies the contracts between suppliers of persistence-capable classes and the runtime environment (which is part of the JDO implementation).

The PersistenceCapable interface is implemented by all classes whose instances are to be made persistent. The implementation might be done by a combination of techniques, as determined by the JDO vendor:

  • Pre-processing .java files
  • Post-processing .class files
  • Generating .java or .class files directly from an abstraction

The StateManager interface is the implementation's contact point with the PersistenceCapable instances. It defines methods that are called by the PersistenceCapable instances to implement the required PersistenceCapable behavior for persistent and transactional instances.

The JDOPermission class is used to manage security controls on JDO implementations.

The RegisterClassEvent class and RegisterClassListener interface are used by JDO implementations that need access to metadata of PersistenceCapable classes.

The JDOImplHelper class contains helper methods for JDO implementations.

  • Class
    Description
    This interface is implemented by classes that can be detached from the persistence context and later attached.
    Helper class for constructing messages from bundles.
    This class is a helper class for JDO implementations.
    This is a helper class to manage metadata per persistence-capable class.
    This is an interface used to interrogate the state of an instance that does not implement PersistenceCapable.
    This is an interface used to interrogate the state of an instance that does not implement PersistenceCapable.
    Construct an instance of a key class using a String as input.
    The JDOPermission class is for operations that are reserved for JDO implementations and should not be called by other code.
    A class that can be managed by a binary-compatible JDO implementation must implement this interface.
    This interface is used to store fields from the Object id instance.
    This interface is a convenience interface that allows an instance to implement both ObjectIdFieldSupplier and ObjectIdFieldConsumer.
    This interface is used to provide fields to the Object id instance.
    A RegisterClassEvent event gets delivered whenever a persistence-capable class registers itself with the JDOImplHelper.
    A "RegisterClassEvent" event gets fired whenever a persistence-capable class is loaded and gets registered with the JDOImplHelper.
    This interface is implemented by a non-binary-compatible JDO implementation to provide state interrogation for non-enhanced persistent classes.
    This interface is the point of contact between managed instances of PersistenceCapable classes and the JDO implementation.