ObjectDB ObjectDB

getPersistenceManager(userid, password) - JDO PersistenceManagerFactory's method

Method
javax.jdo.PersistenceManagerFactory
PersistenceManager getPersistenceManager(
  String userid,
  String password
)

Get an instance of PersistenceManager from this factory. The instance has default values for options. The parameters userid and password are used when obtaining datastore connections from the connection pool.

After the first use of getPersistenceManager, no "set" methods will succeed.

Parameters:
userid - the userid for the connection
password - the password for the connection
Returns:
a PersistenceManager instance with default options.
Since:
JDO 1.0