|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.util.InvocableMapHelper.RoutingMapTriggerEntry
protected static class InvocableMapHelper.RoutingMapTriggerEntry
MapTrigger.Entry wrapper that routes the getValue() call onto getOriginalValue().
| Field Summary | |
|---|---|
protected InvocableMap.Entry |
m_entryThe underlying entry. |
| Constructor Summary | |
|---|---|
protected |
InvocableMapHelper.RoutingMapTriggerEntry(BinaryEntry entry)Construct a routing entry. |
protected |
InvocableMapHelper.RoutingMapTriggerEntry(MapTrigger.Entry entry)Construct a routing entry. |
| Method Summary | |
|---|---|
java.lang.Object |
extract(ValueExtractor extractor)Extract a value out of the Entry's value. |
java.lang.Object |
getKey()Return the key corresponding to this entry. |
java.lang.Object |
getOriginalValue()Determine the value that existed before the start of the mutating operation that is being evaluated by the trigger. |
java.lang.Object |
getValue()Return an OriginalValue from the underlying entry. |
boolean |
isOriginalPresent()Determine whether or not the Entry existed before the start of the mutating operation that is being evaluated by the trigger. |
boolean |
isPresent()Determine if this Entry exists in the Map. |
void |
remove(boolean fSynthetic)Remove this Entry from the Map if it is present in the Map. |
java.lang.Object |
setValue(java.lang.Object oValue)Store the value corresponding to this entry. |
void |
setValue(java.lang.Object oValue, boolean fSynthetic)Store the value corresponding to this entry. |
void |
update(ValueUpdater updater, java.lang.Object oValue)Update the Entry's value. |
| Methods inherited from interface java.util.Map.Entry |
|---|
equals, hashCode |
| Field Detail |
|---|
protected InvocableMap.Entry m_entry
| Constructor Detail |
|---|
protected InvocableMapHelper.RoutingMapTriggerEntry(MapTrigger.Entry entry)
entry - the underlying MapTrigger.Entryprotected InvocableMapHelper.RoutingMapTriggerEntry(BinaryEntry entry)
entry - the underlying BinaryEntry| Method Detail |
|---|
public java.lang.Object getKey()
InvocableMap.Entry.isPresent(), and to create the entry for the key, use InvocableMap.Entry.setValue(java.lang.Object).getKey in interface InvocableMap.EntrygetKey in interface java.util.Map.Entrypublic java.lang.Object getValue()
getValue in interface InvocableMap.EntrygetValue in interface java.util.Map.Entrypublic java.lang.Object extract(ValueExtractor extractor)
extract in interface QueryMap.Entryextractor - a ValueExtractor to apply to the Entry's valuepublic java.lang.Object getOriginalValue()
MapTrigger.EntrygetOriginalValue in interface MapTrigger.Entryjava.lang.UnsupportedOperationExceptionpublic java.lang.Object setValue(java.lang.Object oValue)
InvocableMap.EntrysetValue in interface InvocableMap.EntrysetValue in interface java.util.Map.EntryoValue - the new value for this Entryjava.lang.UnsupportedOperationException
public void setValue(java.lang.Object oValue,
boolean fSynthetic)
InvocableMap.EntryUnlike the other form of setValue, this form does not return the previous value, and as a result may be significantly less expensive (in terms of cost of execution) for certain Map implementations.
setValue in interface InvocableMap.EntryoValue - the new value for this EntryfSynthetic - pass true only if the insertion into or modification of the Map should be treated as a synthetic eventjava.lang.UnsupportedOperationException
public void update(ValueUpdater updater,
java.lang.Object oValue)
InvocableMap.EntryObject oTarget = entry.getValue(); updater.update(oTarget, oValue); entry.setValue(oTarget, false);The benefit of using this method is that it may allow the Entry implementation to significantly optimize the operation, such as for purposes of delta updates and backup maintenance.
update in interface InvocableMap.Entryupdater - a ValueUpdater used to modify the Entry's valueoValue - the new value for this Entryjava.lang.UnsupportedOperationExceptionpublic void remove(boolean fSynthetic)
InvocableMap.EntryThis method supports both the operation corresponding to Map.remove(java.lang.Object) as well as synthetic operations such as eviction. If the containing Map does not differentiate between the two, then this method will always be identical to InvocableMap.this.remove(getKey()).
remove in interface InvocableMap.EntryfSynthetic - pass true only if the removal from the Map should be treated as a synthetic eventjava.lang.UnsupportedOperationExceptionpublic boolean isPresent()
InvocableMap.EntryInvocableMap.Entry.setValue(Object) or InvocableMap.Entry.setValue(Object, boolean). If the Entry is present, it can be destroyed by calling InvocableMap.Entry.remove(boolean).isPresent in interface InvocableMap.Entryjava.lang.UnsupportedOperationExceptionpublic boolean isOriginalPresent()
MapTrigger.EntryisOriginalPresent in interface MapTrigger.Entryjava.lang.UnsupportedOperationException
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||