|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.topia.framework.TopiaFiresSupport
public class TopiaFiresSupport
TODO-fdesbois-20100507 : Need translation of javadoc.
Contient l'ensemble de la partie listener et vetoable c'est à dire la gestion, les fires, ...
| Nested Class Summary | |
|---|---|
static class |
TopiaFiresSupport.TopiaHibernateEvent
Object permettant de faire le lien entre les events hibernate et topia |
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
TopiaFiresSupport()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public TopiaFiresSupport()
| Method Detail |
|---|
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 entitypublic 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)
public void fireOnPostUpdate(TopiaContextImplementor context,
TopiaEntity entity,
Object[] state)
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 context
public <E extends TopiaEntity> List<E> fireEntitiesLoad(TopiaContextImplementor context,
List<E> entities)
E - type of entitiescontext - context usedentities - entities loaded
public 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||