Methods Summary |
---|
private boolean | affectedEntity(java.util.Set querySpaces, java.io.Serializable[] entitySpaces)returns true if no queryspaces or if there are a match
if(querySpaces==null || querySpaces.isEmpty()) {
return true;
}
for ( int i = 0; i < entitySpaces.length; i++ ) {
if ( querySpaces.contains( entitySpaces[i] ) ) {
return true;
}
}
return false;
|
public void | afterTransactionCompletion(boolean success)
///////////////////////////////////////////////////////////////////////
// HACK ALERT!!!!!
if ( session.getFactory().getSettings().getCacheProvider() instanceof org.hibernate.cache.OptimisticTreeCacheProvider
|| session.getFactory().getSettings().getCacheProvider() instanceof org.hibernate.cache.TreeCacheProvider ) {
return;
}
///////////////////////////////////////////////////////////////////////
evictEntityRegions();
evictCollectionRegions();
|
public void | beforeExecutions()
// nothing to do
|
private void | evictCollectionRegions()
if ( affectedCollectionRoles != null ) {
Iterator itr = affectedCollectionRoles.iterator();
while ( itr.hasNext() ) {
final String roleName = ( String ) itr.next();
session.getFactory().evictCollection( roleName );
}
}
|
private void | evictEntityRegions()
if ( affectedEntityNames != null ) {
Iterator itr = affectedEntityNames.iterator();
while ( itr.hasNext() ) {
final String entityName = ( String ) itr.next();
session.getFactory().evictEntity( entityName );
}
}
|
public void | execute()
// nothing to do
|
public java.io.Serializable[] | getPropertySpaces()
return spaces;
|
public boolean | hasAfterTransactionCompletion()
return true;
|
public void | init()
evictEntityRegions();
evictCollectionRegions();
|