net.wotonomy.control
Class ArrayFault
java.lang.Object
net.wotonomy.foundation.NSArray
net.wotonomy.control.ArrayFault
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Iterable, java.util.Collection, java.util.List
public class ArrayFault
- extends net.wotonomy.foundation.NSArray
A class that extends NSArray to intercept any accessor calls
in order to defer loading until the last possible moment.
Because ArrayFault inherits from NSArray which implements
List which implements Collection, data objects may declare
their relationships to be of type NSArray, List, or Collection.
This class should be returned by implementations of
EOObjectStore.arrayFaultForSourceGlobalID().
- See Also:
- Serialized Form
Fields inherited from class net.wotonomy.foundation.NSArray |
EmptyArray, NotFound |
Methods inherited from class net.wotonomy.foundation.NSArray |
add, add, addAll, addAll, arrayBackedByList, arrayByAddingObject, arrayByAddingObjectsFromArray, clear, componentsJoinedByString, componentsSeparatedByString, containsAll, containsObject, count, firstObjectCommonWithArray, getObjects, getObjects, immutableClone, indexOfIdenticalObject, indexOfIdenticalObject, indexOfObject, indexOfObject, isEqualToArray, lastObject, mutableClone, objectAtIndex, objectEnumerator, protectedAdd, protectedAddAll, remove, remove, removeAll, retainAll, reverseObjectEnumerator, set, subarrayWithRange |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
ArrayFault
public ArrayFault(EOGlobalID aSourceID,
java.lang.String aRelationshipKey,
EOEditingContext aContext)
isFetched
public boolean isFetched()
fireFault
protected void fireFault()
clone
public java.lang.Object clone()
- Overrides:
clone
in class net.wotonomy.foundation.NSArray
contains
public boolean contains(java.lang.Object elem)
- Specified by:
contains
in interface java.util.Collection
- Specified by:
contains
in interface java.util.List
- Overrides:
contains
in class net.wotonomy.foundation.NSArray
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interface java.util.Collection
- Specified by:
equals
in interface java.util.List
- Overrides:
equals
in class net.wotonomy.foundation.NSArray
get
public java.lang.Object get(int index)
- Specified by:
get
in interface java.util.List
- Overrides:
get
in class net.wotonomy.foundation.NSArray
hashCode
public int hashCode()
- Overridden to return the identity hash.
This somewhat violates the List contract,
but otherwise calling hash code would
fire the fault. Bottom line: don't use
array faults as keys in hash maps.
- Specified by:
hashCode
in interface java.util.Collection
- Specified by:
hashCode
in interface java.util.List
- Overrides:
hashCode
in class net.wotonomy.foundation.NSArray
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOf
in interface java.util.List
- Overrides:
indexOf
in class net.wotonomy.foundation.NSArray
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface java.util.Collection
- Specified by:
isEmpty
in interface java.util.List
- Overrides:
isEmpty
in class net.wotonomy.foundation.NSArray
iterator
public java.util.Iterator iterator()
- Specified by:
iterator
in interface java.lang.Iterable
- Specified by:
iterator
in interface java.util.Collection
- Specified by:
iterator
in interface java.util.List
- Overrides:
iterator
in class net.wotonomy.foundation.NSArray
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOf
in interface java.util.List
- Overrides:
lastIndexOf
in class net.wotonomy.foundation.NSArray
listIterator
public java.util.ListIterator listIterator()
- Specified by:
listIterator
in interface java.util.List
- Overrides:
listIterator
in class net.wotonomy.foundation.NSArray
listIterator
public java.util.ListIterator listIterator(int index)
- Specified by:
listIterator
in interface java.util.List
- Overrides:
listIterator
in class net.wotonomy.foundation.NSArray
size
public int size()
- Specified by:
size
in interface java.util.Collection
- Specified by:
size
in interface java.util.List
- Overrides:
size
in class net.wotonomy.foundation.NSArray
subList
public java.util.List subList(int fromIndex,
int toIndex)
- Specified by:
subList
in interface java.util.List
- Overrides:
subList
in class net.wotonomy.foundation.NSArray
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray
in interface java.util.Collection
- Specified by:
toArray
in interface java.util.List
- Overrides:
toArray
in class net.wotonomy.foundation.NSArray
toArray
public java.lang.Object[] toArray(java.lang.Object[] a)
- Specified by:
toArray
in interface java.util.Collection
- Specified by:
toArray
in interface java.util.List
- Overrides:
toArray
in class net.wotonomy.foundation.NSArray
toString
public java.lang.String toString()
- Overridden to display information about
the fault only if not fetched.
Calls to super if fetched.
- Overrides:
toString
in class net.wotonomy.foundation.NSArray
Copyright © 2006 null. All Rights Reserved.