Methods Summary |
---|
public void | assertValidLocalObject(java.lang.Object o, java.lang.Object container)Called in a CMP-supported environment to verify that the specified object
is of a valid local interface type.
The Container instance is acquired via #getContainer(Object).
|
public void | assertValidRemoteObject(java.lang.Object o, java.lang.Object container)Called in a CMP-supported environment to verify that the specified object
is of a valid remote interface type.
The Container instance is acquired via #getContainer(Object).
|
public void | beginInternalTransaction(com.sun.jdo.api.persistence.support.PersistenceManager pm)Called in a unspecified transaction context of a managed environment.
According to p.364 of EJB 2.0 spec, CMP may need to manage
its own transaction when its transaction attribute is
NotSupported, Never, Supports.
|
public void | commitInternalTransaction(com.sun.jdo.api.persistence.support.PersistenceManager pm)Called in a unspecified transaction context of a managed environment.
According to p.364 of EJB 2.0 spec, CMP may need to manage
its own transaction when its transaction attribute is
NotSupported, Never, Supports.
|
public java.lang.Object | getContainer(java.lang.Object info)Called in a CMP-supported environment to get a Container helper instance that
will be passed unchanged to the required methods. In a non-managed environment
should not be called and throws JDOFatalInternalException.
The info argument can be an array of Objects if necessary.
|
public EJBLocalObject | getEJBLocalObject(java.lang.Object pk, java.lang.Object container)Called in a CMP-supported environment to get an EJBLocalObject reference for this
primary key instance and Container instance. In a non-managed environment
is not called.
The Container instance is acquired via #getContainer(Object).
|
public EJBLocalObject | getEJBLocalObject(java.lang.Object pk, java.lang.Object container, EJBContext context)Called in a CMP-supported environment to get an EJBLocalObject reference for this
primary key instance, Container object, and EJBContext of the calling bean.
Allows the container to check if this method is called during ejbRemove
that is part of a cascade-delete remove.
The Container instance is acquired via #getContainer(Object).
|
public EJBObject | getEJBObject(java.lang.Object pk, java.lang.Object container)Called in a CMP-supported environment to get an EJBObject reference for this
primary key instance and Container instance. In a non-managed environment
is not called.
The Container instance is acquired via #getContainer(Object).
|
public int | getNumericConverterPolicy(java.lang.Object container)Called in CMP environment to get NumericConverter policy referenced
by this Container instance.
|
public com.sun.jdo.api.persistence.support.PersistenceManagerFactory | getPersistenceManagerFactory(java.lang.Object container)Called in a CMP environment to lookup PersistenceManagerFactory
referenced by this Container instance as the CMP resource.
The Container instance is acquired via #getContainer(Object).
|
public void | preSelect(java.lang.Object container)Called in a CMP supported environment. Notifies the container that
ejbSelect had been called.
The Container instance is acquired via #getContainer(Object).
|
public void | removeByEJBLocalObject(EJBLocalObject ejb, java.lang.Object containerHelper)Called in a CMP-supported environment to remove a bean for a given
EJBLocalObject and Container instance.
The Container instance is acquired via #getContainerHelper(Object).
|
public void | removeByPK(java.lang.Object pk, java.lang.Object container)Called in a CMP-supported environment to remove a bean for a given primary key
and Container instance.
The Container instance is acquired via #getContainer(Object).
|
public void | resumeCurrentTransaction(javax.transaction.Transaction tx)Called from read-only beans to resume current transaction.
This will guarantee that the transaction continues to run after
read-only bean accessed its PersistenceManager.
|
public void | rollbackInternalTransaction(com.sun.jdo.api.persistence.support.PersistenceManager pm)Called in a unspecified transaction context of a managed environment.
According to p.364 of EJB 2.0 spec, CMP may need to manage
its own transaction when its transaction attribute is
NotSupported, Never, Supports.
|
public void | setCascadeDeleteAfterSuperEJBRemove(EntityContext context)Called in a CMP-supported environment to mark EntityContext as
already removed during cascade-delete operation.
The Container instance is acquired via #getContainer(Object).
Called by the generated ejbRemove method before calling ejbRemove of the
related beans (via removeByEJBLocalObject) that are to be cascade-deleted.
|
public javax.transaction.Transaction | suspendCurrentTransaction()Called from read-only beans to suspend current transaction.
This will guarantee that PersistenceManager is not bound to
any transaction.
|