|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.util.ContextFilter
ome.tools.hibernate.UpdateFilter
public class UpdateFilter
responsible for correlating entity identities during multiple calls to merge.
This occurs when collections
or arrays are passed into the
UpdateImpl
save methods.
IUpdate
,
UpdateImpl
Field Summary |
---|
Fields inherited from class ome.util.ContextFilter |
---|
_cache, _context |
Constructor Summary | |
---|---|
UpdateFilter()
|
Method Summary | |
---|---|
protected boolean |
alreadySeen(Object o)
|
Collection |
filter(String fieldId,
Collection c)
overrides ContextFilter.filter(String, Collection) to return
previously checked collections . |
ome.util.Filterable |
filter(String fieldId,
ome.util.Filterable f)
overrides ContextFilter.filter(String, Filterable) to return
previously merged or previously checked items. |
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. |
Methods inherited from class ome.util.ContextFilter |
---|
addSeen, afterFilter, beforeFilter, currentContext, doFilter, doFilter, doFilter, enter, exit, filter, filter, hasntSeen, pop, previousContext, push |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UpdateFilter()
Method Detail |
---|
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 system
filter
in interface ome.util.Filter
filter
in class ome.util.ContextFilter
public ome.util.Filterable filter(String fieldId, ome.util.Filterable f)
ContextFilter.filter(String, Filterable)
to return
previously merged or previously checked items.
filter
in interface ome.util.Filter
filter
in class ome.util.ContextFilter
public Collection filter(String fieldId, Collection c)
ContextFilter.filter(String, Collection)
to return
previously checked collections
.
filter
in interface ome.util.Filter
filter
in class ome.util.ContextFilter
protected boolean hasReplacement(Object o)
protected boolean alreadySeen(Object o)
protected Object returnSeen(Object o)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.