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.datastore
Interface JDOConnection

    public interface JDOConnection

The underlying connection that is being used by a `PersistenceManager`.

Since:
  2.0
Version:
  2.0

Method Summary
`void` | `close()` Returns this connection to the JDO implementation.
`java.lang.Object` | `getNativeConnection()` Returns the native, datastore-specific connection that this connection wraps.

Method Detail

### getNativeConnection

    java.lang.Object getNativeConnection()

  Returns the native, datastore-specific connection that this connection wraps. In general, it is not recommended that this native connection be used directly, since the JDO implementation has no way to intercept calls to it, so it is quite possible to put the `PersistenceManager`'s connection into an invalid state.

  Returns:
    the native connection
  Since:
    2.0

### close

    void close()

  Returns this connection to the JDO implementation. The object must be returned to the JDO implementation prior to calling any JDO method or performing any action on any persistent instance that might require the JDO implementation to use a connection. If the object has not been returned and the JDO implementation needs a connection, a `JDOUserException` is thrown.

  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-2011 Apache Software Foundation. All Rights Reserved.