org.compass.gps.device.hibernate.lifecycle
Class HibernateEventListenerUtils

java.lang.Object
  extended by org.compass.gps.device.hibernate.lifecycle.HibernateEventListenerUtils

public abstract class HibernateEventListenerUtils
extends Object

Author:
kimchy

Constructor Summary
HibernateEventListenerUtils()
           
 
Method Summary
static Collection getAssociatedDependencies(Object entity, Map<Object,Collection> pendingMap)
           
static Collection getUnpersistedCascades(CompassGpsInterfaceDevice compassGps, Object entity, SessionFactoryImplementor sessionFactory, Cascade cascade, Collection visited)
           
static void persistPending(CompassSession session, Object entity, Map<Object,Collection> pendingMap, boolean create)
           
static void registerRemovalHook(EventSource eventSource, Map<Object,Collection> pendingMap, Object entity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateEventListenerUtils

public HibernateEventListenerUtils()
Method Detail

registerRemovalHook

public static void registerRemovalHook(EventSource eventSource,
                                       Map<Object,Collection> pendingMap,
                                       Object entity)

getAssociatedDependencies

public static Collection getAssociatedDependencies(Object entity,
                                                   Map<Object,Collection> pendingMap)

getUnpersistedCascades

public static Collection getUnpersistedCascades(CompassGpsInterfaceDevice compassGps,
                                                Object entity,
                                                SessionFactoryImplementor sessionFactory,
                                                Cascade cascade,
                                                Collection visited)

persistPending

public static void persistPending(CompassSession session,
                                  Object entity,
                                  Map<Object,Collection> pendingMap,
                                  boolean create)


Copyright (c) 2004-2009 The Compass Project.