|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.gps.device.jpa.embedded.GenericJpaHelper
public class GenericJpaHelper
The generic embedded JPA helper can extract a Compass and a JpaCompassGps
out of either Hibernate JPA, OpenJPA, TopLink or EclipseLink by identifying it automatically.
| Constructor Summary | |
|---|---|
GenericJpaHelper(javax.persistence.EntityManagerFactory entityManagerFactory)
Constructs a new helper and tries to autmoatically identify from which JPA provide the embedded Compass can be extracted from. |
|
| Method Summary | |
|---|---|
Compass |
getCompass()
Returns the Compass instnace embedded within the JPA EMF. |
javax.persistence.EntityManagerFactory |
getEntityManagerFactory()
Returns the EMF provided. |
JpaCompassGps |
getJpaCompassGps()
Returns the JpaCompassGps instnace embedded within the JPA EMF. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericJpaHelper(javax.persistence.EntityManagerFactory entityManagerFactory)
entityManagerFactory - The entity manager factory to get the Compass instance from| Method Detail |
|---|
public javax.persistence.EntityManagerFactory getEntityManagerFactory()
public Compass getCompass()
Compass instnace embedded within the JPA EMF.
public JpaCompassGps getJpaCompassGps()
JpaCompassGps instnace embedded within the JPA EMF.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||