org.compass.gps.device.hibernate
Interface NativeHibernateExtractor

All Known Implementing Classes:
SpringNativeHibernateExtractor

public interface NativeHibernateExtractor

A native SessionFactory extractor. Should be used with code/frameworks that wrap the actual SessionFactory.

Author:
kimchy

Method Summary
 SessionFactory extractNative(SessionFactory sessionFactory)
          Returns the actual EntityManagerFactory based on the given EntityManagerFactory.
 

Method Detail

extractNative

SessionFactory extractNative(SessionFactory sessionFactory)
                             throws HibernateGpsDeviceException
Returns the actual EntityManagerFactory based on the given EntityManagerFactory. Should return the same EntityManagerFactory if not wrapping has been done.

Parameters:
sessionFactory - The (possibly) wrapped EntityManagerFactory.
Returns:
The actual EntityManagerFactory implementation.
Throws:
HibernateGpsDeviceException


Copyright (c) 2004-2009 The Compass Project.