public class TopiaFiresSupport extends Object implements TopiaListenableSupport
| 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<TopiaSchemaListener> |
topiaSchemaListeners |
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() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Register to the context a PropertyChangeListener about some entity's
property change.
|
void |
addTopiaEntitiesVetoable(TopiaEntitiesVetoable vetoable)
Register to the context a TopiaEntitiesVetoable about any TopiaEntity.
|
void |
addTopiaEntityListener(Class<? extends TopiaEntity> entityClass,
TopiaEntityListener listener)
Register to the context a TopiaEntityListener about the given entity
class.
|
void |
addTopiaEntityListener(TopiaEntityListener listener)
Register to the context a TopiaEntityListener about any TopiaEntity.
|
void |
addTopiaEntityVetoable(Class<? extends TopiaEntity> entityClass,
TopiaEntityVetoable vetoable)
Register to the context a TopiaEntityVetoable about the given entity
class.
|
void |
addTopiaEntityVetoable(TopiaEntityVetoable vetoable)
Register to the context a TopiaEntityVetoable about any TopiaEntity.
|
void |
addTopiaSchemaListener(TopiaSchemaListener listener)
Register to the context a TopiaSchemaListener about any schema
modification.
|
void |
addTopiaTransactionListener(TopiaTransactionListener listener)
Register to the context a TopiaTransactionListener about the transaction.
|
void |
addTopiaTransactionVetoable(TopiaTransactionVetoable vetoable)
Register to the context a TopiaTransactionVetoable about the transaction.
|
<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(TopiaPersistenceContext context)
Notify topia context listeners for create schema post operation
|
void |
firePostDropSchema(TopiaPersistenceContext context)
Notify topia context listeners for drop schema post operation
|
void |
firePostRestoreSchema(TopiaPersistenceContext context)
Notify topia context listeners for schema restore post operation
|
void |
firePostUpdateSchema(TopiaPersistenceContext context)
Notify topia context listeners for create schema post operation
|
void |
firePreCreateSchema(TopiaPersistenceContext context)
Notify topia context listeners for create schema pre operation
|
void |
firePreDropSchema(TopiaPersistenceContext context)
Notify topia context listeners for drop schema pre operation
|
void |
firePreRestoreSchema(TopiaPersistenceContext context)
Notify topia context listeners for schema restore pre operation
|
void |
firePreUpdateSchema(TopiaPersistenceContext context)
Notify topia context listeners for create schema pre operation
|
org.nuiton.util.CategorisedListenerSet<TopiaEntityListener> |
getEntityListeners() |
org.nuiton.util.CategorisedListenerSet<TopiaEntityVetoable> |
getEntityVetoables() |
org.nuiton.util.ListenerSet<TopiaEntitiesVetoable> |
getTopiaEntitiesVetoable() |
org.nuiton.util.ListenerSet<TopiaSchemaListener> |
getTopiaSchemaListeners() |
org.nuiton.util.ListenerSet<TopiaTransactionListener> |
getTransactionListeners() |
org.nuiton.util.ListenerSet<TopiaTransactionVetoable> |
getTransactionVetoable() |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Unregister the given PropertyChangeListener about some entity's
property change from the context
|
void |
removeTopiaEntitiesVetoable(TopiaEntitiesVetoable vetoable)
Unregister the given TopiaEntitiesVetoable about any TopiaEntity from the
context
|
void |
removeTopiaEntityListener(Class<? extends TopiaEntity> entityClass,
TopiaEntityListener listener)
Unregister the given TopiaEntityListener about the given entity class
from the context
|
void |
removeTopiaEntityListener(TopiaEntityListener listener)
Unregister the given TopiaEntityListener about any TopiaEntity from the
context
|
void |
removeTopiaEntityVetoable(Class<? extends TopiaEntity> entityClass,
TopiaEntityVetoable vetoable)
Unregister the given TopiaEntityVetoable about the given entity class
from the context
|
void |
removeTopiaEntityVetoable(TopiaEntityVetoable vetoable)
Unregister the given TopiaEntityVetoable about any TopiaEntity from the
context
|
void |
removeTopiaSchemaListener(TopiaSchemaListener listener)
Unregister the given TopiaSchemaListener about any schema modification
from the context
|
void |
removeTopiaTransactionListener(TopiaTransactionListener listener)
Unregister the given TopiaTransactionListener about the transaction from
the context
|
void |
removeTopiaTransactionVetoable(TopiaTransactionVetoable vetoable)
Unregister the given TopiaTransactionVetoable about the transaction from
the context
|
void |
warnOnCreateEntity(TopiaEntity entity)
used to register objects created during transaction.
|
void |
warnOnDeleteEntity(TopiaEntity entity)
used to register objects deleted during transaction.
|
void |
warnOnLoadEntity(TopiaEntity entity)
used to register objects loaded during transaction.
|
void |
warnOnReadEntity(TopiaEntity entity)
used to register objects loaded during transaction.
|
void |
warnOnUpdateEntity(TopiaEntity entity)
used to register objects modified during transaction.
|
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<TopiaSchemaListener> topiaSchemaListeners
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(TopiaPersistenceContext context)
public void fireOnPostCommit(TopiaPersistenceContext context)
public void fireOnPostRollback(TopiaPersistenceContext context)
public void fireOnPreCreate(TopiaPersistenceContext context, TopiaEntity entity, Object[] state)
public void fireOnPostCreate(TopiaPersistenceContext context, TopiaEntity entity, Object[] state)
public void fireOnPreLoad(TopiaPersistenceContext context, TopiaEntity entity, Object[] state)
public void fireOnPostLoad(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(TopiaPersistenceContext context)
context - topia contextpublic void firePostCreateSchema(TopiaPersistenceContext context)
context - topia contextpublic void firePreUpdateSchema(TopiaPersistenceContext context)
context - topia contextpublic void firePostUpdateSchema(TopiaPersistenceContext context)
context - topia contextpublic void firePreRestoreSchema(TopiaPersistenceContext context)
context - topia contextpublic void firePostRestoreSchema(TopiaPersistenceContext context)
context - topia contextpublic void firePreDropSchema(TopiaPersistenceContext context)
context - topia contextpublic void firePostDropSchema(TopiaPersistenceContext context)
context - topia contextpublic <E extends TopiaEntity> List<E> fireEntitiesLoad(TopiaJpaSupport 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<TopiaSchemaListener> getTopiaSchemaListeners()
public org.nuiton.util.ListenerSet<TopiaEntitiesVetoable> getTopiaEntitiesVetoable()
public void addTopiaEntityListener(TopiaEntityListener listener)
TopiaListenableSupportlistener instance will be notified AFTER any operation on
the entity.addTopiaEntityListener in interface TopiaListenableSupportlistener - the listener instance to registerpublic void addTopiaEntityListener(Class<? extends TopiaEntity> entityClass, TopiaEntityListener listener)
TopiaListenableSupportlistener instance will be notified AFTER any
operation on the entity.addTopiaEntityListener in interface TopiaListenableSupportentityClass - the TopiaEntity's class to listenlistener - the listener instance to registerpublic void addTopiaEntityVetoable(TopiaEntityVetoable vetoable)
TopiaListenableSupportvetoable instance will be notified BEFORE any operation on
the entity.addTopiaEntityVetoable in interface TopiaListenableSupportvetoable - the vetoable instance to registerpublic void addTopiaEntityVetoable(Class<? extends TopiaEntity> entityClass, TopiaEntityVetoable vetoable)
TopiaListenableSupportvetoable instance will be notified BEFORE any
operation on the entity.addTopiaEntityVetoable in interface TopiaListenableSupportentityClass - the TopiaEntity's class to listenvetoable - the vetoable instance to registerpublic void addTopiaTransactionListener(TopiaTransactionListener listener)
TopiaListenableSupportlistener instance will be notified AFTER any operation on
the transaction.addTopiaTransactionListener in interface TopiaListenableSupportlistener - the listener instance to registerpublic void addTopiaTransactionVetoable(TopiaTransactionVetoable vetoable)
TopiaListenableSupportvetoable instance will be notified BEFORE any operation on
the transaction.addTopiaTransactionVetoable in interface TopiaListenableSupportvetoable - the vetoable instance to registerpublic void addPropertyChangeListener(PropertyChangeListener listener)
TopiaListenableSupportlistener instance will be notified AFTER
any change on the entity's propertyaddPropertyChangeListener in interface TopiaListenableSupportlistener - the listener instance to registerpublic void addTopiaSchemaListener(TopiaSchemaListener listener)
TopiaListenableSupportlistener instance will be notified BEFORE and
AFTER any change on the schemaaddTopiaSchemaListener in interface TopiaListenableSupportlistener - the listener instance to registerpublic void addTopiaEntitiesVetoable(TopiaEntitiesVetoable vetoable)
TopiaListenableSupportvetoable instance will be notified BEFORE any entity loadaddTopiaEntitiesVetoable in interface TopiaListenableSupportvetoable - the vetoable instance to registerpublic void removeTopiaEntityListener(TopiaEntityListener listener)
TopiaListenableSupportremoveTopiaEntityListener in interface TopiaListenableSupportlistener - the listener instance to unregisterpublic void removeTopiaEntityListener(Class<? extends TopiaEntity> entityClass, TopiaEntityListener listener)
TopiaListenableSupportremoveTopiaEntityListener in interface TopiaListenableSupportentityClass - the listened TopiaEntity's classlistener - the listener instance to unregisterpublic void removeTopiaEntityVetoable(TopiaEntityVetoable vetoable)
TopiaListenableSupportremoveTopiaEntityVetoable in interface TopiaListenableSupportvetoable - the vetoable instance to unregisterpublic void removeTopiaEntityVetoable(Class<? extends TopiaEntity> entityClass, TopiaEntityVetoable vetoable)
TopiaListenableSupportremoveTopiaEntityVetoable in interface TopiaListenableSupportentityClass - the listened TopiaEntity's classvetoable - the vetoable instance to unregisterpublic void removeTopiaTransactionListener(TopiaTransactionListener listener)
TopiaListenableSupportremoveTopiaTransactionListener in interface TopiaListenableSupportlistener - the listener instance to unregisterpublic void removeTopiaTransactionVetoable(TopiaTransactionVetoable vetoable)
TopiaListenableSupportremoveTopiaTransactionVetoable in interface TopiaListenableSupportvetoable - the vetoable instance to unregisterpublic void removePropertyChangeListener(PropertyChangeListener listener)
TopiaListenableSupportremovePropertyChangeListener in interface TopiaListenableSupportlistener - the listener instance to unregisterpublic void removeTopiaSchemaListener(TopiaSchemaListener listener)
TopiaListenableSupportremoveTopiaSchemaListener in interface TopiaListenableSupportlistener - the listener instance to unregisterpublic void removeTopiaEntitiesVetoable(TopiaEntitiesVetoable vetoable)
TopiaListenableSupportremoveTopiaEntitiesVetoable in interface TopiaListenableSupportvetoable - the vetoable instance to unregisterCopyright © 2004–2014 CodeLutin. All rights reserved.