About connection

71-80 of 200Refresh
Manual
9

CRUD Database Operations with JPA

Given an EntityManager, em, that represents a JPA connection to the object database, we can use it to store, retrieve, update and delete database objects. Storing New Entity Objects The following code fragment stores 1,000 Point objects in the database: em.getTransaction().begin(); for (int i
JDO Doc
6

setConnectionFactory2(connectionFactory)

) Set the second data store connection factory. This is needed for managed environments to get nontransactional connections for optimistic transactions. JDO implementations will support specific connection factories. The connection factory interfaces are not part of the JDO specification. Parameters
Forum
5

EntityManagerFactory Fails To Swtich Over To Slave When Master Is Unavailable

; which generates the following exception below. What am I doing wrong? It appears the connection manager fails ... Failed to connect to server 10.9.2.15:9999 (Connection refused: connect) (error 522) at com.objectdb.jpa ... .o.UserException: Failed to connect to server 10.9.2.15:9999 (Connection refused: connect) at com
JDO Doc
5

getPersistenceManager(userid, password)

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
JDO Doc
5

javax.jdo.PersistenceManager

, this method obtains a datastore connection and verifies the consistency of the instances in the cache ... obtains a datastore connection, synchronizes the cache with the datastore using this connection and reports any exceptions. The connection obtained by this method is held until the end of the transaction
JDO Doc
5

setConnectionFactory(connectionFactory)

) Set the data store connection factory. JDO implementations will support specific connection factories. The connection factory interfaces are not part of the JDO specification. Parameters: connectionFactory - the data store connection factory. Since: JDO 1.0
Forum
5

Query problem after transaction commit

I have a machine running the objectdb server and the client on another machine connect to it. The client program can connect to the server and query to get all the records. However, after transaction ... below are done by through the UI buttons. line#> Screen Output [Remarks] 01> Test_Connection: connecting 02
JDO Doc
4

flush()

transaction is active, this method obtains a datastore connection, synchronizes the cache with the datastore using this connection and reports any exceptions. The connection obtained by this method
JDO Doc
4

getConnectionFactory2()

Method javax.jdo.PersistenceManagerFactory Object getConnectionFactory2() Get the second data store connection factory. This is needed for managed environments to get nontransactional connections for optimistic transactions. Returns: the data store connection factory. Since: JDO 1.0
JDO Doc
4

getConnectionFactory2Name()

Method javax.jdo.PersistenceManagerFactory String getConnectionFactory2Name() Get the name for the second data store connection factory. This is needed for managed environments to get nontransactional connections for optimistic transactions. Returns: the name of the data store connection factory. Since: JDO 1.0