public class HibernateListener extends Object implements org.hibernate.event.spi.PreInsertEventListener, org.hibernate.event.spi.PostInsertEventListener
| Modifier and Type | Field and Description |
|---|---|
protected Map<Class<?>,AbstractPluginObject> |
entities
Map of objects inserted.
|
protected String |
keyBefore
Key of object before inclusion.
|
| Constructor and Description |
|---|
HibernateListener(Map<Class<?>,AbstractPluginObject> entities)
Creates a listener with a entities mapping.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onPostInsert(org.hibernate.event.spi.PostInsertEvent event) |
boolean |
onPreInsert(org.hibernate.event.spi.PreInsertEvent event) |
boolean |
requiresPostCommitHanding(org.hibernate.persister.entity.EntityPersister persister) |
protected Map<Class<?>,AbstractPluginObject> entities
protected String keyBefore
public HibernateListener(Map<Class<?>,AbstractPluginObject> entities)
entities - The entity mapping by type.public boolean onPreInsert(org.hibernate.event.spi.PreInsertEvent event)
onPreInsert in interface org.hibernate.event.spi.PreInsertEventListenerpublic void onPostInsert(org.hibernate.event.spi.PostInsertEvent event)
onPostInsert in interface org.hibernate.event.spi.PostInsertEventListenerpublic boolean requiresPostCommitHanding(org.hibernate.persister.entity.EntityPersister persister)
requiresPostCommitHanding in interface org.hibernate.event.spi.PostInsertEventListenerCopyright © 2017. All rights reserved.