|
Oracle Fusion Middleware Java API Reference for Oracle TopLink (Deprecated) 11g Release 1 (11.1.1) B32476-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.toplink.indirection.IndirectSet oracle.toplink.indirection.EJBIndirectSet
public class EJBIndirectSet
EJBIndirectSet provides all the functionality of IndirectSet while being EJB friendly. That is, when it performs contains, remove, etc... with entity beans, the container uses the bean's 'isIdentical' method rather than the usual 'equals'.
This is necessary since serialization of the EJBObjects can cause the equality test to return false, even though they represent the same underlying entity bean.
IndirectSet
,
Serialized FormConstructor Summary | |
---|---|
EJBIndirectSet()
Construct an empty IndirectSet. |
|
EJBIndirectSet(java.util.Collection c)
Construct an IndirectSet containing the elements of the specified collection. |
|
EJBIndirectSet(int initialCapacity)
Construct an empty IndirectSet with the specified initial capacity. |
|
EJBIndirectSet(int initialCapacity,
float loadFactor)
Construct an empty IndirectSet with the specified initial capacity and load factor. |
Method Summary | |
---|---|
boolean |
contains(java.lang.Object o)
|
boolean |
containsAll(java.util.Collection c)
|
boolean |
remove(java.lang.Object o)
|
Methods inherited from class oracle.toplink.indirection.IndirectSet |
---|
add, addAll, clear, clone, equals, hashCode, isEmpty, isInstantiated, iterator, removeAll, retainAll, size, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EJBIndirectSet()
public EJBIndirectSet(int initialCapacity)
initialCapacity
- the initial capacity of the set
java.lang.IllegalArgumentException
- if the specified initial capacity
is negativepublic EJBIndirectSet(int initialCapacity, float loadFactor)
initialCapacity
- the initial capacity of the setloadFactor
- the load factor of the set
java.lang.IllegalArgumentException
- if the specified initial capacity
is negativepublic EJBIndirectSet(java.util.Collection c)
c
- the initial elements of the setMethod Detail |
---|
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection
contains
in interface java.util.Set
contains
in class IndirectSet
Set.contains(java.lang.Object)
public boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.Collection
containsAll
in interface java.util.Set
containsAll
in class IndirectSet
Vector.containsAll(java.util.Collection)
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection
remove
in interface java.util.Set
remove
in class IndirectSet
Set.remove(java.lang.Object)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |