org.datanucleus.store.valuegenerator
Interface ValueGenerationConnectionProvider


public interface ValueGenerationConnectionProvider

Connection provider for a ValueGenerator that requires connections to their datastore.


Method Summary
 void releaseConnection()
          Releases the Connection.
 ManagedConnection retrieveConnection()
          Provides a Connection for a ValueGenerator.
 

Method Detail

retrieveConnection

ManagedConnection retrieveConnection()
Provides a Connection for a ValueGenerator. The returned connection should be cast to the appropriate type for the datastore.

Returns:
The connection

releaseConnection

void releaseConnection()
Releases the Connection. Inform to the provider that connection is no longer in use.



Copyright © 2011. All Rights Reserved.