Home » Search

About EntityManagerFactory

21-30 of 200 Refresh
Manual
18

Database Replication and Clustering

, the master database can be accessed ordinarily as follows: EntityManagerFactory emf = Persistence ... different url is required in order to access the slave database: EntityManagerFactory emf ... can also be used: EntityManagerFactory emf = Persistence.createEntityManagerFactory( "objectdb
Tutorial
18

Step 4: Add a Servlet Class

ServletException, IOException { // Obtain a database connection: EntityManagerFactory emf = ( EntityManagerFactory)getServletContext().getAttribute("emf ... ); } } GuestServlet performs the following operations on every http request: The EntityManagerFactory
Tutorial
18

Step 4: Add a Servlet Class

{ // Obtain a database connection: EntityManagerFactory emf = ( EntityManagerFactory ... operations on every http request: The EntityManagerFactory is retrieved from the application scope attribute
Manual
14

JPA Persistence Unit

to instantiate an EntityManagerFactory in JPA (as explained in the JPA Overview section) requires ... an EntityManagerFactory. It may also have optional sub elements: The provider element indicates which JPA
Manual
14

Locking in JPA

> For an EntityManagerFactory - using the createEntityManagerFacotory method:   Map EntityManagerFactory emf =       Persistence.createEntityManagerFactory("pu", properties); For an EntityManager
Result
14

ObjectDB Object Database Features

Automatic connection pool managed by EntityManagerFactory. Configurable - minimum/maximum connections ...  (per EntityManagerFactory). Database file page cache. Query program cache (for repeating queries
Manual
14

Setting and Tuning of JPA Queries

> For an EntityManagerFactory - using the createEntityManagerFacotory method:   Map properties = new HashMap();   properties.put("javax.persistence.query.timeout", 4000);    EntityManagerFactory emf
Result
10

Posting to ObjectDB Website - Important Instructions

static void main(String[] args) {         EntityManagerFactory emf =             Persistence
Manual
10

Entity Management Settings

of the shared level 2 cache that is managed by the EntityManagerFactory and shared by
Manual
10

JPA Criteria API Queries

the EntityManagerFactory's getCriteriaBuilder method or by the EntityManager's getCriteriaBuilder method