public class UpdateFilter extends ContextFilter
collections
or arrays are passed into the
UpdateImpl
save methods.IUpdate
,
UpdateImpl
_cache, _context
Constructor and Description |
---|
UpdateFilter() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
alreadySeen(Object o) |
Collection |
filter(String fieldId,
Collection c)
overrides
ContextFilter.filter(String, Collection) to return
previously checked collections . |
Filterable |
filter(String fieldId,
Filterable f)
overrides
ContextFilter.filter(String, Filterable) to return
previously merged or previously checked items. |
Map |
filter(String fieldId,
Map m)
Prevents CountPerOwner from being loaded unnecessarily.
|
Object |
filter(String fieldId,
Object o)
overrides
ContextFilter.filter(String, Object) to allow only
certain types to enter the Hibernate system |
protected boolean |
hasReplacement(Object o) |
protected Object |
returnSeen(Object o) |
void |
unloadReplacedObjects()
provides an external hook to unload all files which have already been
merged.
|
addSeen, afterFilter, beforeFilter, currentContext, doFilter, doFilter, doFilter, enter, exit, filter, hasntSeen, pop, previousContext, push
public void unloadReplacedObjects()
Merging produces a copy of an entity, so that all old entities should be
considered stale. By unloading them, one is forcing the API user to use
the replacement
instead.
The replacement is set by MergeEventListener
and this is the
signal that that entity can be unloaded. Usually, this method is invoked
by UpdateImpl
MergeEventListener
,
UpdateImpl
,
IObject.unload()
public Object filter(String fieldId, Object o)
ContextFilter.filter(String, Object)
to allow only
certain types to enter the Hibernate systemfilter
in interface Filter
filter
in class ContextFilter
public Filterable filter(String fieldId, Filterable f)
ContextFilter.filter(String, Filterable)
to return
previously merged or previously checked items.filter
in interface Filter
filter
in class ContextFilter
public Collection filter(String fieldId, Collection c)
ContextFilter.filter(String, Collection)
to return
previously checked collections
.filter
in interface Filter
filter
in class ContextFilter
public Map filter(String fieldId, Map m)
filter
in interface Filter
filter
in class ContextFilter
ticket:3978
protected boolean hasReplacement(Object o)
protected boolean alreadySeen(Object o)
Version: 5.1.4-ice35-b55
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.