public class TopiaFiresSupport extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TopiaFiresSupport.TopiaHibernateEvent
Object permettant de faire le lien entre les events hibernate et topia
|
Modifier and Type | Field and Description |
---|---|
protected org.nuiton.util.ListenerSet<TopiaEntitiesVetoable> |
entitiesVetoables |
protected org.nuiton.util.CategorisedListenerSet<TopiaEntityListener> |
entityListeners |
protected org.nuiton.util.CategorisedListenerSet<TopiaEntityVetoable> |
entityVetoables |
protected Set<PropertyChangeListener> |
propertyChangeListeners |
protected org.nuiton.util.ListenerSet<TopiaContextListener> |
topiaContextListeners |
protected Map<TopiaEntity,EntityState> |
transactionEntities
used to collect entity modification during transaction
|
protected org.nuiton.util.ListenerSet<TopiaTransactionListener> |
transactionListeners |
protected org.nuiton.util.ListenerSet<TopiaTransactionVetoable> |
transactionVetoables |
Constructor and Description |
---|
TopiaFiresSupport() |
protected Map<TopiaEntity,EntityState> transactionEntities
protected Set<PropertyChangeListener> propertyChangeListeners
protected org.nuiton.util.ListenerSet<TopiaTransactionListener> transactionListeners
protected org.nuiton.util.ListenerSet<TopiaTransactionVetoable> transactionVetoables
protected org.nuiton.util.CategorisedListenerSet<TopiaEntityListener> entityListeners
protected org.nuiton.util.CategorisedListenerSet<TopiaEntityVetoable> entityVetoables
protected org.nuiton.util.ListenerSet<TopiaEntitiesVetoable> entitiesVetoables
protected org.nuiton.util.ListenerSet<TopiaContextListener> topiaContextListeners
public void warnOnLoadEntity(TopiaEntity entity)
entity
- the loaded entitypublic void warnOnCreateEntity(TopiaEntity entity)
entity
- the created entitypublic void warnOnReadEntity(TopiaEntity entity)
entity
- the read entitypublic void warnOnUpdateEntity(TopiaEntity entity)
entity
- the updated entitypublic void warnOnDeleteEntity(TopiaEntity entity)
entity
- the deleted entityprotected boolean isNotEmpty(org.nuiton.util.ListenerSet<?> set)
protected boolean isNotEmpty(org.nuiton.util.CategorisedListenerSet<?> set, Class<?> category)
public void fireOnBeginTransaction(TopiaContextImplementor context)
public void fireOnPostCommit(TopiaContextImplementor context)
public void fireOnPostRollback(TopiaContextImplementor context)
public void fireOnPreCreate(TopiaContextImplementor context, TopiaEntity entity, Object[] state)
public void fireOnPostCreate(TopiaContextImplementor context, TopiaEntity entity, Object[] state)
public void fireOnPreLoad(TopiaContextImplementor context, TopiaEntity entity, Object[] state)
public void fireOnPostLoad(TopiaContextImplementor context, TopiaEntity entity, Object[] state)
public void fireOnPreUpdate(TopiaContextImplementor context, TopiaEntity entity, Object[] state, Object[] oldState)
public void fireOnPostUpdate(TopiaContextImplementor context, TopiaEntity entity, Object[] state, Object[] oldState, int[] dirtyProperties)
public void fireOnPreDelete(TopiaContextImplementor context, TopiaEntity entity, Object[] state)
public void fireOnPostDelete(TopiaContextImplementor context, TopiaEntity entity, Object[] state)
public void fireOnPreRead(VetoableChangeSupport vetoables, TopiaEntity entity, String propertyName, Object value)
public void fireOnPostRead(PropertyChangeSupport listeners, TopiaEntity entity, String propertyName, Object value)
public void fireOnPostRead(PropertyChangeSupport listeners, TopiaEntity entity, String propertyName, int index, Object value)
public void fireOnPreWrite(VetoableChangeSupport vetoables, TopiaEntity entity, String propertyName, Object oldValue, Object newValue)
public void fireOnPostWrite(PropertyChangeSupport listeners, TopiaEntity entity, String propertyName, Object oldValue, Object newValue)
public void fireOnPostWrite(PropertyChangeSupport listeners, TopiaEntity entity, String propertyName, int index, Object oldValue, Object newValue)
public void firePreCreateSchema(TopiaContext context)
context
- topia contextpublic void firePostCreateSchema(TopiaContext context)
context
- topia contextpublic void firePreUpdateSchema(TopiaContext context)
context
- topia contextpublic void firePostUpdateSchema(TopiaContext context)
context
- topia contextpublic void firePreRestoreSchema(TopiaContext context)
context
- topia contextpublic void firePostRestoreSchema(TopiaContext context)
context
- topia contextpublic <E extends TopiaEntity> List<E> fireEntitiesLoad(TopiaContextImplementor context, List<E> entities)
E
- type of entitiescontext
- context usedentities
- entities loadedpublic org.nuiton.util.CategorisedListenerSet<TopiaEntityListener> getEntityListeners()
public org.nuiton.util.CategorisedListenerSet<TopiaEntityVetoable> getEntityVetoables()
public org.nuiton.util.ListenerSet<TopiaTransactionListener> getTransactionListeners()
public org.nuiton.util.ListenerSet<TopiaTransactionVetoable> getTransactionVetoable()
public org.nuiton.util.ListenerSet<TopiaContextListener> getTopiaContextListeners()
public org.nuiton.util.ListenerSet<TopiaEntitiesVetoable> getTopiaEntitiesVetoable()
public void addTopiaEntityListener(TopiaEntityListener listener)
public void addTopiaEntityListener(Class<? extends TopiaEntity> entityClass, TopiaEntityListener listener)
public void addTopiaEntityVetoable(TopiaEntityVetoable vetoable)
public void addTopiaEntityVetoable(Class<? extends TopiaEntity> entityClass, TopiaEntityVetoable vetoable)
public void addTopiaTransactionListener(TopiaTransactionListener listener)
public void addTopiaTransactionVetoable(TopiaTransactionVetoable vetoable)
public void addPropertyChangeListener(PropertyChangeListener listener)
public void addTopiaContextListener(TopiaContextListener listener)
public void addTopiaEntitiesVetoable(TopiaEntitiesVetoable vetoable)
public void removeTopiaEntityListener(TopiaEntityListener listener)
public void removeTopiaEntityListener(Class<? extends TopiaEntity> entityClass, TopiaEntityListener listener)
public void removeTopiaEntityVetoable(TopiaEntityVetoable vetoable)
public void removeTopiaEntityVetoable(Class<? extends TopiaEntity> entityClass, TopiaEntityVetoable vetoable)
public void removeTopiaTransactionListener(TopiaTransactionListener listener)
public void removeTopiaTransactionVetoable(TopiaTransactionVetoable vetoable)
public void removePropertyChangeListener(PropertyChangeListener listener)
public void removeTopiaContextListener(TopiaContextListener listener)
public void removeTopiaEntitiesVetoable(TopiaEntitiesVetoable vetoable)
Copyright © 2004–2022 Code Lutin. All rights reserved.