org.compass.gps.device.jpa.entities
Class JpaEntitiesLocatorDetector

java.lang.Object
  extended by org.compass.gps.device.jpa.entities.JpaEntitiesLocatorDetector

public abstract class JpaEntitiesLocatorDetector
extends Object

A JpaEntitiesLocator detector. Tries to check for the actual implementation of JPA EntityManagerFactory, and based on it, check if the current set of actual JPA implementations is one of compass supported ones (like Hibernate).

If no implementation is found for the native EntityManagerFactory implementation, uses the DefaultJpaEntitiesLocator.

Currently support the following JPA implementations: Hibernate, TopLink Essentials (Glassfish Persistence), OpenJPA.

Assumes that the EntityManagerFactory is the native one, since the NativeJpaExtractor of the JpaGpsDevice was used to extract it.

Author:
kimchy

Constructor Summary
JpaEntitiesLocatorDetector()
           
 
Method Summary
static JpaEntitiesLocator detectLocator(javax.persistence.EntityManagerFactory entityManagerFactory, CompassSettings settings)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpaEntitiesLocatorDetector

public JpaEntitiesLocatorDetector()
Method Detail

detectLocator

public static JpaEntitiesLocator detectLocator(javax.persistence.EntityManagerFactory entityManagerFactory,
                                               CompassSettings settings)


Copyright (c) 2004-2009 The Compass Project.