137 words

javax.jdo.datastore.JDOConnection - JDO interface

javax.jdo.datastore
Interface JDOConnection

The underlying connection that is being used by a javax.jdo.PersistenceManager.
Since:
JDO 2.0
void close()
Returns this connection to the JDO implementation.
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:
JDO 2.0
Returns the native, datastore-specific connection that this connection wraps.
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:
JDO 2.0

This documentation page is derived (with some adjustments) from the JDO 2.2 API
and is available under the terms of the Apache License, v. 2.0.