|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-02 |
||||||||
| 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 Form| Constructor 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 setjava.lang.IllegalArgumentException - if the specified initial capacity is negative
public EJBIndirectSet(int initialCapacity,
float loadFactor)
initialCapacity - the initial capacity of the setloadFactor - the load factor of the setjava.lang.IllegalArgumentException - if the specified initial capacity is negativepublic EJBIndirectSet(java.util.Collection c)
c - the initial elements of the set| Method Detail |
|---|
public boolean contains(java.lang.Object o)
contains in interface java.util.Collectioncontains in interface java.util.Setcontains in class IndirectSetSet.contains(java.lang.Object)public boolean containsAll(java.util.Collection c)
containsAll in interface java.util.CollectioncontainsAll in interface java.util.SetcontainsAll in class IndirectSetVector.containsAll(java.util.Collection)public boolean remove(java.lang.Object o)
remove in interface java.util.Collectionremove in interface java.util.Setremove in class IndirectSetSet.remove(java.lang.Object)
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||