public class TopiaFiresSupport extends AbstractTopiaListenableSupport implements TopiaListenableSupport
| Modifier and Type | Field and Description |
|---|---|
protected static Object |
NO_CHANGE
used to fire read event
|
protected TopiaFiresSupport |
parent
Each TopiaFiresSupport may have a parent on which events will be propagated.
|
entitiesVetoables, entityListeners, entityVetoables, propertyChangeListeners, topiaSchemaListeners, transactionEntities, transactionListeners, transactionVetoables| Constructor and Description |
|---|
TopiaFiresSupport() |
TopiaFiresSupport(TopiaFiresSupport parent) |
| Modifier and Type | Method and Description |
|---|---|
<E extends TopiaEntity> |
fireEntitiesLoad(TopiaJpaSupport context,
List<E> entities)
Notify entities listeners for load operation
|
void |
fireOnBeginTransaction(TopiaPersistenceContext context) |
void |
fireOnPostCommit(TopiaPersistenceContext context) |
void |
fireOnPostCreate(TopiaPersistenceContext context,
TopiaEntity entity,
Object[] state) |
void |
fireOnPostDelete(TopiaPersistenceContext context,
TopiaEntity entity,
Object[] state) |
void |
fireOnPostLoad(TopiaPersistenceContext context,
TopiaEntity entity,
Object[] state) |
void |
fireOnPostRead(PropertyChangeSupport listeners,
TopiaEntity entity,
String propertyName,
int index,
Object value) |
void |
fireOnPostRead(PropertyChangeSupport listeners,
TopiaEntity entity,
String propertyName,
Object value) |
void |
fireOnPostRollback(TopiaPersistenceContext context) |
void |
fireOnPostUpdate(TopiaPersistenceContext context,
TopiaEntity entity,
Object[] state) |
void |
fireOnPostWrite(PropertyChangeSupport listeners,
TopiaEntity entity,
String propertyName,
int index,
Object oldValue,
Object newValue) |
void |
fireOnPostWrite(PropertyChangeSupport listeners,
TopiaEntity entity,
String propertyName,
Object oldValue,
Object newValue) |
void |
fireOnPreCreate(TopiaPersistenceContext context,
TopiaEntity entity,
Object[] state) |
void |
fireOnPreDelete(TopiaPersistenceContext context,
TopiaEntity entity,
Object[] state) |
void |
fireOnPreLoad(TopiaPersistenceContext context,
TopiaEntity entity,
Object[] state) |
void |
fireOnPreRead(VetoableChangeSupport vetoables,
TopiaEntity entity,
String propertyName,
Object value) |
void |
fireOnPreUpdate(TopiaPersistenceContext context,
TopiaEntity entity,
Object[] state) |
void |
fireOnPreWrite(VetoableChangeSupport vetoables,
TopiaEntity entity,
String propertyName,
Object oldValue,
Object newValue) |
void |
firePostCreateSchema(TopiaApplicationContext context)
Notify topia context listeners for create schema post operation
|
void |
firePostDropSchema(TopiaApplicationContext context)
Notify topia context listeners for drop schema post operation
|
void |
firePostUpdateSchema(TopiaApplicationContext context)
Notify topia context listeners for create schema post operation
|
void |
firePreCreateSchema(TopiaApplicationContext context)
Notify topia context listeners for create schema pre operation
|
void |
firePreDropSchema(TopiaApplicationContext context)
Notify topia context listeners for drop schema pre operation
|
void |
firePreUpdateSchema(TopiaApplicationContext context)
Notify topia context listeners for create schema pre operation
|
protected EntityState |
getEntityState(TopiaEntity entity)
Get or create the entity state from the
AbstractTopiaListenableSupport.transactionEntities map. |
protected boolean |
isNotEmpty(org.nuiton.util.CategorisedListenerSet<?> set,
Class<?> category) |
protected boolean |
isNotEmpty(org.nuiton.util.ListenerSet<?> set) |
protected boolean |
isNotEmpty(Set<?> set) |
void |
notifyEntityCreated(TopiaEntity entity)
Register an entity created during the current transaction.
|
void |
notifyEntityDeleted(TopiaEntity entity)
used to register objects deleted during transaction.
|
void |
notifyEntityLoaded(TopiaEntity entity)
Register an entity loaded during the current transaction.
|
void |
notifyEntityRead(TopiaEntity entity)
used to register objects loaded during transaction.
|
void |
notifyEntityUpdated(TopiaEntity entity)
used to register objects modified (update) during transaction.
|
void |
notifyEntityWritten(TopiaEntity entity)
used to register objects modified (setter) during transaction.
|
addPropertyChangeListener, addTopiaEntitiesVetoable, addTopiaEntityListener, addTopiaEntityListener, addTopiaEntityVetoable, addTopiaEntityVetoable, addTopiaSchemaListener, addTopiaTransactionListener, addTopiaTransactionVetoable, removePropertyChangeListener, removeTopiaEntitiesVetoable, removeTopiaEntityListener, removeTopiaEntityListener, removeTopiaEntityVetoable, removeTopiaEntityVetoable, removeTopiaSchemaListener, removeTopiaTransactionListener, removeTopiaTransactionVetoableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, addTopiaEntitiesVetoable, addTopiaEntityListener, addTopiaEntityListener, addTopiaEntityVetoable, addTopiaEntityVetoable, addTopiaSchemaListener, addTopiaTransactionListener, addTopiaTransactionVetoable, removePropertyChangeListener, removeTopiaEntitiesVetoable, removeTopiaEntityListener, removeTopiaEntityListener, removeTopiaEntityVetoable, removeTopiaEntityVetoable, removeTopiaSchemaListener, removeTopiaTransactionListener, removeTopiaTransactionVetoableprotected static final Object NO_CHANGE
protected TopiaFiresSupport parent
public TopiaFiresSupport()
public TopiaFiresSupport(TopiaFiresSupport parent)
protected EntityState getEntityState(TopiaEntity entity)
AbstractTopiaListenableSupport.transactionEntities map. This method always returns an instance.entity - the entity instanceEntityState for the given entity.public void notifyEntityLoaded(TopiaEntity entity)
entity - the loaded entitypublic void notifyEntityCreated(TopiaEntity entity)
entity - the created entitypublic void notifyEntityRead(TopiaEntity entity)
entity - the read entitypublic void notifyEntityUpdated(TopiaEntity entity)
entity - the updated entitypublic void notifyEntityWritten(TopiaEntity entity)
entity - the updated entitypublic void notifyEntityDeleted(TopiaEntity entity)
entity - the deleted entityprotected boolean isNotEmpty(org.nuiton.util.ListenerSet<?> set)
protected boolean isNotEmpty(Set<?> set)
protected boolean isNotEmpty(org.nuiton.util.CategorisedListenerSet<?> set,
Class<?> category)
public void fireOnBeginTransaction(TopiaPersistenceContext context)
public void fireOnPostCommit(TopiaPersistenceContext context)
public void fireOnPostRollback(TopiaPersistenceContext context)
public void fireOnPreLoad(TopiaPersistenceContext context, TopiaEntity entity, Object[] state)
public void fireOnPostLoad(TopiaPersistenceContext context, TopiaEntity entity, Object[] state)
public void fireOnPreCreate(TopiaPersistenceContext context, TopiaEntity entity, Object[] state)
public void fireOnPostCreate(TopiaPersistenceContext context, TopiaEntity entity, Object[] state)
public void fireOnPreUpdate(TopiaPersistenceContext context, TopiaEntity entity, Object[] state)
public void fireOnPostUpdate(TopiaPersistenceContext context, TopiaEntity entity, Object[] state)
public void fireOnPreDelete(TopiaPersistenceContext context, TopiaEntity entity, Object[] state)
public void fireOnPostDelete(TopiaPersistenceContext 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(TopiaApplicationContext context)
context - topia contextpublic void firePostCreateSchema(TopiaApplicationContext context)
context - topia contextpublic void firePreUpdateSchema(TopiaApplicationContext context)
context - topia contextpublic void firePostUpdateSchema(TopiaApplicationContext context)
context - topia contextpublic void firePreDropSchema(TopiaApplicationContext context)
context - topia contextpublic void firePostDropSchema(TopiaApplicationContext context)
context - topia contextpublic <E extends TopiaEntity> List<E> fireEntitiesLoad(TopiaJpaSupport context, List<E> entities)
E - type of entitiescontext - context usedentities - entities loadedCopyright © 2004–2014 CodeLutin. All rights reserved.