Interface JDOEJB20Helper
-
- All Superinterfaces:
JDOEJB11Helper
- All Known Implementing Classes:
JDOEJB20HelperImpl
public interface JDOEJB20Helper extends JDOEJB11Helper
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
assertInstanceOfLocalInterfaceImpl(Object o)
Validates that this instance is of the correct implementation class of a local interface type.Collection
convertCollectionEJBLocalObjectToPC(Collection coll, PersistenceManager pm, boolean validate)
Converts Collection of EJBLocalObjects to a Collection of persistence-capable instances.Collection
convertCollectionPCToEJBLocalObject(Collection pcs, PersistenceManager pm)
Converts Collection of persistence-capable instances to a Collection of EJBLocalObjects.Set
convertCollectionPCToEJBLocalObjectSet(Collection pcs, PersistenceManager pm)
Converts Collection of persistence-capable instances to a Set of EJBLocalObjects.Object
convertEJBLocalObjectToPC(jakarta.ejb.EJBLocalObject o, PersistenceManager pm, boolean validate)
Converts EJBLocalObject to persistence-capable instance.jakarta.ejb.EJBLocalObject
convertPCToEJBLocalObject(Object pc, PersistenceManager pm)
Converts persistence-capable instance to EJBLocalObject.jakarta.ejb.EJBLocalObject
convertPCToEJBLocalObject(Object pc, PersistenceManager pm, jakarta.ejb.EJBContext context)
Converts persistence-capable instance to EJBLocalObject.-
Methods inherited from interface com.sun.jdo.spi.persistence.support.sqlstore.ejb.JDOEJB11Helper
assertInstanceOfRemoteInterfaceImpl, convertCollectionEJBObjectToPC, convertCollectionObjectIdToPrimaryKey, convertCollectionPCToEJBObject, convertCollectionPCToEJBObjectSet, convertCollectionPCToPrimaryKey, convertCollectionPrimaryKeyToObjectId, convertEJBObjectToPC, convertObjectIdToPrimaryKey, convertPCToEJBObject, convertPCToPrimaryKey, convertPrimaryKeyToObjectId, getContainer, getNumericConverter, getPCClass, readSerializableObjectFromByteArray, writeSerializableObjectToByteArray
-
-
-
-
Method Detail
-
convertPCToEJBLocalObject
jakarta.ejb.EJBLocalObject convertPCToEJBLocalObject(Object pc, PersistenceManager pm)
Converts persistence-capable instance to EJBLocalObject.- Parameters:
pc
- the persistence-capable instance to be converted as an Object.pm
- the associated instance of PersistenceManager.- Returns:
- instance of EJBLocalObject.
-
convertPCToEJBLocalObject
jakarta.ejb.EJBLocalObject convertPCToEJBLocalObject(Object pc, PersistenceManager pm, jakarta.ejb.EJBContext context)
Converts persistence-capable instance to EJBLocalObject. Returns null if the instance is already removed via cascade-delete operation.- Parameters:
pc
- the persistence-capable instance to be converted as an Object.pm
- the associated instance of PersistenceManager.context
- the EJBContext of the calling bean.- Returns:
- instance of EJBLocalObject.
-
convertEJBLocalObjectToPC
Object convertEJBLocalObjectToPC(jakarta.ejb.EJBLocalObject o, PersistenceManager pm, boolean validate)
Converts EJBLocalObject to persistence-capable instance.- Parameters:
o
- the EJBLocalObject instance to be converted.pm
- the associated instance of PersistenceManager.validate
- true if the existence of the instance is to be validated.- Returns:
- persistence-capable instance.
- Throws:
IllegalArgumentException
- if validate is true and instance does not exist in the database or is deleted.
-
convertCollectionPCToEJBLocalObject
Collection convertCollectionPCToEJBLocalObject(Collection pcs, PersistenceManager pm)
Converts Collection of persistence-capable instances to a Collection of EJBLocalObjects.- Parameters:
pcs
- the Collection of persistence-capable instance to be converted.pm
- the associated instance of PersistenceManager.- Returns:
- Collection of EJBLocalObjects.
-
convertCollectionPCToEJBLocalObjectSet
Set convertCollectionPCToEJBLocalObjectSet(Collection pcs, PersistenceManager pm)
Converts Collection of persistence-capable instances to a Set of EJBLocalObjects.- Parameters:
pcs
- the Collection of persistence-capable instance to be converted.pm
- the associated instance of PersistenceManager.- Returns:
- Set of EJBLocalObjects.
-
convertCollectionEJBLocalObjectToPC
Collection convertCollectionEJBLocalObjectToPC(Collection coll, PersistenceManager pm, boolean validate)
Converts Collection of EJBLocalObjects to a Collection of persistence-capable instances.- Parameters:
coll
- the Collection of EJBLocalObject instances to be converted.pm
- the associated instance of PersistenceManager.validate
- true if the existence of the instances is to be validated.- Returns:
- Collection of persistence-capable instance.
- Throws:
IllegalArgumentException
- if validate is true and at least one instance does not exist in the database or is deleted.
-
assertInstanceOfLocalInterfaceImpl
void assertInstanceOfLocalInterfaceImpl(Object o)
Validates that this instance is of the correct implementation class of a local interface type.- Parameters:
o
- the instance to validate.- Throws:
IllegalArgumentException
- if validation fails.
-
-