|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.toplink.ejb.cmp.EJBCollectionHelper
public class EJBCollectionHelper
Constructor Summary | |
---|---|
EJBCollectionHelper()
EJBIndexer constructor comment. |
Method Summary | |
---|---|
static boolean |
contains(javax.ejb.EJBObject ejbObject,
java.util.Vector vector)
With vectors of EJBObjects you cannot use the regular contains() method since this will use the .equals() method for comparing EJBObjects which is not valid - isIdentical should be used instead. |
static int |
indexOf(javax.ejb.EJBObject ejbObject,
java.util.Vector vector)
When dealing with collections of EJBObjects, it is wrong to use standard Vector methods such as indexOf() because these use .equals insead of the ejb method .isIdentical(). |
static boolean |
remove(javax.ejb.EJBObject ejbObject,
java.util.Vector vector)
With vectors of EJBObjects you cannot use the regular contains() method since this will use the .equals() method for comparing EJBObjects which is not valid - isIdentical should be used instead. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EJBCollectionHelper()
Method Detail |
---|
public static boolean contains(javax.ejb.EJBObject ejbObject, java.util.Vector vector)
ejbObject
- javax.ejb.EJBObjectvector
- java.util.Vectorpublic static int indexOf(javax.ejb.EJBObject ejbObject, java.util.Vector vector)
ejbObject
- javax.ejb.EJBObjectvector
- java.util.Vector
public static boolean remove(javax.ejb.EJBObject ejbObject, java.util.Vector vector)
ejbObject
- javax.ejb.EJBObjectvector
- java.util.Vector
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |