getIndexSettings(EntityManagerFactory emf) Returns the index settings that are configured within the
javax.persistence.EntityManagerFactory configuration.
A helper class to create the JpaCompasGps based on the passed device.
getCompass
public static Compass getCompass(EntityManagerFactory emf)(Code)
Returns the Compass instance assoicated with the given TopLink
javax.persistence.EntityManagerFactory .
This allows to get a Compass instnace in order to perform search operations for example outside of a JPA
transaction (for performance reasons, mostly there is no need to start a DB transaction).
getCompass
public static Compass getCompass(EntityManager em)(Code)
Returns the Compass instance assoicated with the given TopLink
javax.persistence.EntityManager .
This allows to get a Compass instnace in order to perform search operations for example outside of a JPA
transaction (for performance reasons, mostly there is no need to start a DB transaction).
Returns the Compass Gps instance associated with the given TopLink
javax.persistence.EntityManagerFactory .
Used in order to perform
org.compass.gps.device.jpa.embedded.JpaCompassGps.index operation. Note, the index
operation should not be perfomed within a running transaction.
Returns the Compass Gps instance associated with the given TopLink
javax.persistence.EntityManager .
Used in order to perform
org.compass.gps.device.jpa.embedded.JpaCompassGps.index operation. Note, the index
operation should not be perfomed within a running transaction.
Returns the current Compass session associated with the
javax.persistence.EntityManager .
Compass Session is associated with an Entity Manager when a transaction is started and removed when the
transaction commits/rollsback.
The session can be used to perform searches that needs to take into account current transactional changes
or to perform additional Compass operations that are not reflected by the mirroring feature.
Returns the current Compass session associated with the
javax.persistence.EntityManager .
Compass Session is associated with an Entity Manager when a transaction is started and removed when the
transaction commits/rollsback.
The session can be used to perform searches that needs to take into account current transactional changes
or to perform additional Compass operations that are not reflected by the mirroring feature.
getIndexSettings
public static Properties getIndexSettings(EntityManagerFactory emf)(Code)
Returns the index settings that are configured within the
javax.persistence.EntityManagerFactory configuration. Can be used to configure exteranally a
org.compass.gps.device.jpa.embedded.JpaCompassGps instance.
getIndexSettings
public static Properties getIndexSettings(EntityManager em)(Code)
Returns the index settings that are configured within the
javax.persistence.EntityManager configuration. Can be used to configure exteranally a
org.compass.gps.device.jpa.embedded.JpaCompassGps instnace.