org.compass.gps.device.hibernate.lifecycle
Interface HibernateMirrorFilter


public interface HibernateMirrorFilter

Allows to hook filtering of object during the mirroring process.

Note, Compass event listeners (within org.compass.core.events) should be used instead of this filter for generic cases that do not require the actual Hibernate event objects.

Author:
kimchy

Method Summary
 boolean shouldFilterCollection(AbstractCollectionEvent postCollectionEvent)
          Should the post collection event be filtered or not.
 boolean shouldFilterDelete(PostDeleteEvent postDeleteEvent)
          Should the post delete hibernate event be filtered or not
 boolean shouldFilterInsert(PostInsertEvent postInsertEvent)
          Should the post insert hibernate event be filtered or not
 boolean shouldFilterUpdate(PostUpdateEvent postUpdateEvent)
          Should the post update hibernate event be filtered or not
 

Method Detail

shouldFilterInsert

boolean shouldFilterInsert(PostInsertEvent postInsertEvent)
Should the post insert hibernate event be filtered or not

Parameters:
postInsertEvent - The Hibernate post insert event
Returns:
true if the event should be filtered, false otherwise

shouldFilterUpdate

boolean shouldFilterUpdate(PostUpdateEvent postUpdateEvent)
Should the post update hibernate event be filtered or not

Parameters:
postUpdateEvent - The Hibernate post update event
Returns:
true if the event should be filtered, false otherwise

shouldFilterDelete

boolean shouldFilterDelete(PostDeleteEvent postDeleteEvent)
Should the post delete hibernate event be filtered or not

Parameters:
postDeleteEvent - The Hibernate post delete event
Returns:
true if the event should be filtered, false otherwise

shouldFilterCollection

boolean shouldFilterCollection(AbstractCollectionEvent postCollectionEvent)
Should the post collection event be filtered or not.



Copyright (c) 2004-2008 The Compass Project.