Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## javax.jdo.spi
Interface Detachable

    public interface Detachable

This interface is implemented by classes that can be detached from the persistence context and later attached. The interface includes the contract by which the StateManager can set the object id, version, BitSet of loaded fields, and BitSet of modified fields so they are preserved while outside the persistence environment.

The detached state is stored as a field in each instance of Detachable. The field is serialized so as to maintain the state of the instance while detached. While detached, only the BitSet of modified fields will be modified. The structure of the Object[] jdoDetachedState is as follows:

- jdoDetachedState[0]: the Object Id of the instance
- jdoDetachedState[1]: the Version of the instance
- jdoDetachedState[2]: a BitSet of loaded fields
- jdoDetachedState[3]: a BitSet of modified fields

Version:
  2.0

Method Summary
`void` | `jdoReplaceDetachedState()` This method calls the StateManager with the current detached state instance as a parameter and replaces the current detached state instance with the value provided by the StateManager.

Method Detail

### jdoReplaceDetachedState

    void jdoReplaceDetachedState()

  This method calls the StateManager with the current detached state instance as a parameter and replaces the current detached state instance with the value provided by the StateManager.

  Since:
    2.0

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005-2006 Apache Software Foundation. All Rights Reserved.