public class DeltaObserver
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.Map |
currentReferences |
protected static java.util.List |
fromDeltaKeys |
protected static java.util.List |
hasDeltaKeys |
protected static java.util.Map |
toDeltaIdNumbers |
protected static java.util.List |
toDeltaKeys |
| Constructor and Description |
|---|
DeltaObserver() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addFromDeltaKey(java.lang.Object key)
Keep a record of keys whose value had fromDelta called on them.
|
static void |
addHasDeltaKey(java.lang.Object key)
Keep a record of keys whose value had hasDelta called on them.
|
static void |
addReference(DeltaObject anObj)
Given a delta object, save it's object reference to a map for later
validation for cloning.
|
static java.lang.Object |
addToDeltaIdNumber(long idNumber,
java.lang.Object key)
Keep a record of toDelta id numbers received at the fromDelta calls.
|
static void |
addToDeltaKey(java.lang.Object key)
Keep a record of keys whose value had toDelta called on them.
|
static void |
clear()
Clear the saved lists.
|
static java.util.List |
getFromDeltaKeys()
Return the list of keys whose value had fromDelta called on them.
|
static java.util.List |
getHasDeltaKeys()
Return the list of keys whose value had hasDelta called on them.
|
static java.util.Map |
getReferences()
Return the Map of current region references (to be used for cloning validation).
|
static java.util.List |
getToDeltaKeys()
Return the list of keys whose value had toDelta called on them.
|
static void |
nullReference(java.lang.Object key)
Null the given object from the current references.
|
protected static java.util.List toDeltaKeys
protected static java.util.List fromDeltaKeys
protected static java.util.List hasDeltaKeys
protected static java.util.Map toDeltaIdNumbers
protected static java.util.Map currentReferences
public static void addToDeltaKey(java.lang.Object key)
public static void addFromDeltaKey(java.lang.Object key)
public static void addHasDeltaKey(java.lang.Object key)
public static void addReference(DeltaObject anObj)
anObj - The DeltaObject whose object reference is savedpublic static void nullReference(java.lang.Object key)
key - The key to null.public static java.lang.Object addToDeltaIdNumber(long idNumber,
java.lang.Object key)
idNumber - The id number encoded into the toDelta call, which is now being
retrieved in a fromDelta call.key - The key corresponding to the DeltaObject for the fromDelta call containing
the idNumber.public static java.util.List getFromDeltaKeys()
public static java.util.List getToDeltaKeys()
public static java.util.List getHasDeltaKeys()
public static java.util.Map getReferences()
public static void clear()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.