Class JDOEJB20HelperImpl
java.lang.Object
com.sun.jdo.spi.persistence.support.ejb.cmp.JDOEJB11HelperImpl
com.sun.jdo.spi.persistence.support.ejb.cmp.JDOEJB20HelperImpl
- All Implemented Interfaces:
com.sun.jdo.spi.persistence.support.sqlstore.ejb.JDOEJB11Helper,com.sun.jdo.spi.persistence.support.sqlstore.ejb.JDOEJB20Helper
public abstract class JDOEJB20HelperImpl
extends JDOEJB11HelperImpl
implements com.sun.jdo.spi.persistence.support.sqlstore.ejb.JDOEJB20Helper
-
Field Summary
Fields inherited from class com.sun.jdo.spi.persistence.support.ejb.cmp.JDOEJB11HelperImpl
logger, messages -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidValidates that this instance is of the correct implementation class of a local interface type.protected voidassertInstanceOfLocalInterfaceImpl(Object o, String beanName) Validates that this instance is of the correct implementation class of a local interface.convertCollectionEJBLocalObjectToPC(Collection coll, com.sun.jdo.api.persistence.support.PersistenceManager pm, boolean validate) Converts Collection of EJBLocalObjects to a Collection of persistence-capable instances.convertCollectionPCToEJBLocalObject(Collection pcs, com.sun.jdo.api.persistence.support.PersistenceManager pm) Converts Collection of persistence-capable instances to a Collection of EJBLocalObjects.convertCollectionPCToEJBLocalObjectSet(Collection pcs, com.sun.jdo.api.persistence.support.PersistenceManager pm) Converts Collection of persistence-capable instances to a Set of EJBLocalObjects.convertEJBLocalObjectToPC(jakarta.ejb.EJBLocalObject o, com.sun.jdo.api.persistence.support.PersistenceManager pm, boolean validate) Converts EJBLocalObject to persistence-capable instance.jakarta.ejb.EJBLocalObjectconvertPCToEJBLocalObject(Object pc, com.sun.jdo.api.persistence.support.PersistenceManager pm) Converts persistence-capable instance to EJBLocalObject.jakarta.ejb.EJBLocalObjectconvertPCToEJBLocalObject(Object pc, com.sun.jdo.api.persistence.support.PersistenceManager pm, jakarta.ejb.EJBContext context) Converts persistence-capable instance to EJBLocalObject.Methods inherited from class com.sun.jdo.spi.persistence.support.ejb.cmp.JDOEJB11HelperImpl
assertInstanceOfRemoteInterfaceImpl, assertInstanceOfRemoteInterfaceImpl, assertObjectIdNotNull, assertPrimaryKeyFieldNotNull, assertPrimaryKeyNotNull, convertCollectionEJBObjectToPC, convertCollectionObjectIdToPrimaryKey, convertCollectionPCToEJBObject, convertCollectionPCToEJBObjectSet, convertCollectionPCToPrimaryKey, convertCollectionPrimaryKeyToObjectId, convertEJBObjectToPC, convertObjectIdToPrimaryKey, convertPCToEJBObject, convertPCToPrimaryKey, convertPrimaryKeyToObjectId, convertPrimaryKeyToPC, getNumericConverter, getPCClass, readSerializableObjectFromByteArray, writeSerializableObjectToByteArrayMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
Constructor Details
-
JDOEJB20HelperImpl
public JDOEJB20HelperImpl()
-
-
Method Details
-
convertPCToEJBLocalObject
public jakarta.ejb.EJBLocalObject convertPCToEJBLocalObject(Object pc, com.sun.jdo.api.persistence.support.PersistenceManager pm) Converts persistence-capable instance to EJBLocalObject.- Specified by:
convertPCToEJBLocalObjectin interfacecom.sun.jdo.spi.persistence.support.sqlstore.ejb.JDOEJB20Helper- Parameters:
pc- the persistence-capable instance to be converted as an Object.pm- the associated instance of PersistenceManager.- Returns:
- instance of EJBLocalObject.
-
convertPCToEJBLocalObject
public jakarta.ejb.EJBLocalObject convertPCToEJBLocalObject(Object pc, com.sun.jdo.api.persistence.support.PersistenceManager pm, jakarta.ejb.EJBContext context) Converts persistence-capable instance to EJBLocalObject. Returns null if the instance is already removed via cascade-delete operation.- Specified by:
convertPCToEJBLocalObjectin interfacecom.sun.jdo.spi.persistence.support.sqlstore.ejb.JDOEJB20Helper- 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
public Object convertEJBLocalObjectToPC(jakarta.ejb.EJBLocalObject o, com.sun.jdo.api.persistence.support.PersistenceManager pm, boolean validate) Converts EJBLocalObject to persistence-capable instance.- Specified by:
convertEJBLocalObjectToPCin interfacecom.sun.jdo.spi.persistence.support.sqlstore.ejb.JDOEJB20Helper- 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
public Collection convertCollectionPCToEJBLocalObject(Collection pcs, com.sun.jdo.api.persistence.support.PersistenceManager pm) Converts Collection of persistence-capable instances to a Collection of EJBLocalObjects.- Specified by:
convertCollectionPCToEJBLocalObjectin interfacecom.sun.jdo.spi.persistence.support.sqlstore.ejb.JDOEJB20Helper- Parameters:
pcs- the Collection of persistence-capable instance to be converted.pm- the associated instance of PersistenceManager.- Returns:
- Collection of EJBLocalObjects.
-
convertCollectionPCToEJBLocalObjectSet
public Set convertCollectionPCToEJBLocalObjectSet(Collection pcs, com.sun.jdo.api.persistence.support.PersistenceManager pm) Converts Collection of persistence-capable instances to a Set of EJBLocalObjects.- Specified by:
convertCollectionPCToEJBLocalObjectSetin interfacecom.sun.jdo.spi.persistence.support.sqlstore.ejb.JDOEJB20Helper- Parameters:
pcs- the Collection of persistence-capable instance to be converted.pm- the associated instance of PersistenceManager.- Returns:
- Set of EJBLocalObjects.
-
convertCollectionEJBLocalObjectToPC
public Collection convertCollectionEJBLocalObjectToPC(Collection coll, com.sun.jdo.api.persistence.support.PersistenceManager pm, boolean validate) Converts Collection of EJBLocalObjects to a Collection of persistence-capable instances.- Specified by:
convertCollectionEJBLocalObjectToPCin interfacecom.sun.jdo.spi.persistence.support.sqlstore.ejb.JDOEJB20Helper- 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
Validates that this instance is of the correct implementation class of a local interface type.- Specified by:
assertInstanceOfLocalInterfaceImplin interfacecom.sun.jdo.spi.persistence.support.sqlstore.ejb.JDOEJB20Helper- Parameters:
o- the instance to validate.- Throws:
IllegalArgumentException- if validation fails.
-
assertInstanceOfLocalInterfaceImpl
Validates that this instance is of the correct implementation class of a local interface. Throws IllegalArgumentException if the passed argument is of a wrong type.- Parameters:
o- the instance to validate.beanName- as String.- Throws:
IllegalArgumentException- if validation fails.
-