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.

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

Author:
kimchy

Constructor Summary
JpaEntitiesLocatorDetector()
           
 
Method Summary
static JpaEntitiesLocator detectLocator(javax.persistence.EntityManagerFactory entityManagerFactory)
           
 
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)


Copyright (c) 2004-2006 The Compass Project.