wt.dataops.objectcol.resolution
Class DefaultCollectionGraph
java.lang.Object
java.util.AbstractCollection
wt.fc.collections.AbstractWTCollection
wt.fc.collections.WTHashSet
wt.dataops.objectcol.resolution.DefaultCollectionGraph
- All Implemented Interfaces:
- Cloneable, Collection, CollectionGraph, Externalizable, ReferenceBased, ResultProcessor, Serializable, Set, WTCollection, WTSet
- public class DefaultCollectionGraph
- extends WTHashSet
- implements CollectionGraph, Serializable
Supported API: false
Extendable: false
- See Also:
- Serialized Form
Fields inherited from class wt.fc.collections.WTHashSet |
|
Method Summary |
boolean |
addDependantObject(Persistable source,
Dependency dependency,
Persistable dependant)
Supported API: false |
Dependency[] |
getAllDependencies(Persistable seed)
Supported API: false |
WTCollection |
getDependantObjects(Persistable object,
Dependency dependency)
Supported API: false |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source,
which is not the current version. |
protected boolean |
readVersion(DefaultCollectionGraph thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
boolean |
remove(Persistable object,
boolean withDependants)
Supported API: false |
protected void |
removeDependents(Persistable object,
WTSet toRemove,
WTSet toClean)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class wt.fc.collections.WTHashSet |
add, add, add, addElement, classIterator, clear, clone, clone, contains, contains, containsInstance, containsNonPersisted, equals, getInitialCapacity, getKeyMask, getReference, getReference, getReference, getReferences, hashCode, inflate, isDeflatedOnSerialization, persistableIterator, persistableIterator, queryKeyIterator, queryKeyIterator, readVersion, referenceIterator, referenceIterator, remove, remove, removeAll, removeNonPersisted, retainAll, setDeflatedOnSerialization, size, subCollection |
Methods inherited from class wt.fc.collections.AbstractWTCollection |
add, addAll, addAll, connect, connect, connect, connect, connect, connect, connectAll, connectAll, contains, contains, containsOnly, deflate, getLastReturnedReference, isEnabled, iterator, persistableCollection, remove, remove, setLastReturnedReference, subCollection, toArray, toArray, toArray, toArray, toArray, toArray, toIdArray |
Methods inherited from interface wt.fc.collections.WTCollection |
add, add, add, add, addAll, addAll, classIterator, connect, connect, connect, connect, connect, connect, connectAll, connectAll, contains, contains, contains, contains, containsInstance, containsOnly, deflate, getKeyMask, inflate, isDeflatedOnSerialization, isEnabled, iterator, persistableCollection, persistableIterator, persistableIterator, queryKeyIterator, queryKeyIterator, referenceIterator, referenceIterator, remove, remove, remove, remove, removeAll, retainAll, setDeflatedOnSerialization, subCollection, subCollection, toArray, toArray, toArray, toArray, toArray, toArray, toIdArray |
Methods inherited from interface java.util.Set |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
RESOURCE
private static final String RESOURCE
- See Also:
- Constant Field Values
CLASSNAME
private static final String CLASSNAME
sourceDependencyMap
private WTKeyedHashMap sourceDependencyMap
dependencyDependantsMap
private Map dependencyDependantsMap
dependentCollectionsMap
private WTKeyedHashMap dependentCollectionsMap
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
EXTERNALIZATION_VERSION_UID
public static final long EXTERNALIZATION_VERSION_UID
- See Also:
- Constant Field Values
OLD_FORMAT_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
- See Also:
- Constant Field Values
DefaultCollectionGraph
public DefaultCollectionGraph()
Supported API: false
writeExternal
public void writeExternal(ObjectOutput output)
throws IOException
- Writes the non-transient fields of this class to an external source.
Supported API: false
- Specified by:
writeExternal
in interface Externalizable
- Overrides:
writeExternal
in class WTHashSet
- Parameters:
output
-
- Throws:
IOException
readExternal
public void readExternal(ObjectInput input)
throws IOException,
ClassNotFoundException
- Reads the non-transient fields of this class from an external source.
Supported API: false
- Specified by:
readExternal
in interface Externalizable
- Overrides:
readExternal
in class WTHashSet
- Parameters:
input
-
- Throws:
IOException
ClassNotFoundException
readVersion
protected boolean readVersion(DefaultCollectionGraph thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
throws IOException,
ClassNotFoundException
- Reads the non-transient fields of this class from an external source.
Supported API: false
- Parameters:
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
- Returns:
- boolean
- Throws:
IOException
ClassNotFoundException
readOldVersion
private boolean readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
throws IOException,
ClassNotFoundException
- Reads the non-transient fields of this class from an external source,
which is not the current version.
- Parameters:
input
- readSerialVersionUID
- passThrough
- superDone
-
- Returns:
- boolean
- Throws:
IOException
ClassNotFoundException
remove
public boolean remove(Persistable object,
boolean withDependants)
Supported API: false
- Specified by:
remove
in interface CollectionGraph
- Parameters:
object
- withDependants
-
- Returns:
- boolean
addDependantObject
public boolean addDependantObject(Persistable source,
Dependency dependency,
Persistable dependant)
Supported API: false
- Specified by:
addDependantObject
in interface CollectionGraph
- Parameters:
source
- dependency
- dependant
-
- Returns:
- boolean
getAllDependencies
public Dependency[] getAllDependencies(Persistable seed)
throws WTException
Supported API: false
- Specified by:
getAllDependencies
in interface CollectionGraph
- Parameters:
seed
-
- Returns:
- Dependency[]
- Throws:
WTException
getDependantObjects
public WTCollection getDependantObjects(Persistable object,
Dependency dependency)
throws WTException
Supported API: false
- Specified by:
getDependantObjects
in interface CollectionGraph
- Parameters:
object
- dependency
-
- Returns:
- WTCollection
- Throws:
WTException
removeDependents
protected void removeDependents(Persistable object,
WTSet toRemove,
WTSet toClean)
throws WTException
- Throws:
WTException