public class SunContainerHelper extends SunTransactionHelper implements ContainerHelper
| Modifier and Type | Method and Description |
|---|---|
void |
assertValidLocalObject(Object o,
Object container)
Verify that this instance is of a valid local interface type for
a given Container helper.
|
void |
assertValidRemoteObject(Object o,
Object container)
Verify that this instance is of a valid remote interface type for
a given Container helper.
|
void |
beginInternalTransaction(PersistenceManager pm)
Called in a unspecified transaction context of a managed environment.
|
void |
commitInternalTransaction(PersistenceManager pm)
Called in a unspecified transaction context of a managed environment.
|
Object |
getContainer(Object info)
Get a Container helper instance that will be passed unchanged to the
required methods.
|
javax.ejb.EJBLocalObject |
getEJBLocalObject(Object pk,
Object container)
Get an EJBLocalObject reference for this primary key and Container helper.
|
javax.ejb.EJBLocalObject |
getEJBLocalObject(Object pk,
Object container,
javax.ejb.EJBContext context)
Get an EJBLocalObject reference for this primary key and Container helper,
and EJBContext of the calling bean.
|
javax.ejb.EJBObject |
getEJBObject(Object pk,
Object container)
Get an EJBObject reference for this primary key and Container helper.
|
int |
getNumericConverterPolicy(Object container)
Called in CMP environment to get NumericConverter policy referenced
by this Container instance.
|
PersistenceManagerFactory |
getPersistenceManagerFactory(Object container)
Called in a CMP environment to lookup PersistenceManagerFactory
referenced by this Container instance as the CMP resource.
|
void |
preSelect(Object container)
Called in a CMP supported environment.
|
void |
removeByEJBLocalObject(javax.ejb.EJBLocalObject ejb,
Object container)
Remove a bean for a given EJBLocalObject and Container helper.
|
void |
removeByPK(Object pk,
Object container)
Remove a bean for a given primary key and Container helper.
|
void |
resumeCurrentTransaction(Transaction tx)
Called from read-only beans to resume current transaction.
|
void |
rollbackInternalTransaction(PersistenceManager pm)
Called in a unspecified transaction context of a managed environment.
|
void |
setCascadeDeleteAfterSuperEJBRemove(javax.ejb.EntityContext context)
Mark the bean as already removed during cascade-delete
operation for a given EntityContext.
|
Transaction |
suspendCurrentTransaction()
Called from read-only beans to suspend current transaction.
|
connectorNamingEventPerformed, getDDLNamePrefix, getLocalTransactionManager, getNonTransactionalConnection, getTransaction, getUserTransaction, notifyApplicationUnloaded, registerApplicationLifeCycleEventListener, registerSynchronization, replaceInternalPersistenceManagerFactorygetConnection, isManaged, postInvoke, preInvoke, setPersistenceManagerFactoryDefaults, translateStatus, unwrapStatementpublic Object getContainer(Object info)
getContainer in interface ContainerHelperinfo - Object with the request information that is application server
specific.getEJBObject(Object, Object),
getEJBLocalObject(Object, Object),
getEJBLocalObject(Object, Object, EJBObject),
removeByEJBLocalObject(EJBLocalObject, Object),
removeByPK(Object, Object)public javax.ejb.EJBObject getEJBObject(Object pk, Object container)
getEJBObject in interface ContainerHelperpk - the primary key instance.container - a Container instance for the request.getContainer(Object)public javax.ejb.EJBLocalObject getEJBLocalObject(Object pk, Object container)
getEJBLocalObject in interface ContainerHelperpk - the primary key instance.container - a helper instance for the request.getContainer(Object)public javax.ejb.EJBLocalObject getEJBLocalObject(Object pk, Object container, javax.ejb.EJBContext context)
getEJBLocalObject in interface ContainerHelperpk - the primary key instance.container - a helper instance for the request.context - an EJBContext of the calling bean.getContainer(Object)public void removeByEJBLocalObject(javax.ejb.EJBLocalObject ejb,
Object container)
removeByEJBLocalObject in interface ContainerHelperejb - the EJBLocalObject for the bean to be removed.container - a Container instance for the request.getContainer(Object)public void removeByPK(Object pk, Object container)
removeByPK in interface ContainerHelperpk - the primary key for the bean to be removed.container - a Container instance for the request.getContainer(Object)public void assertValidLocalObject(Object o, Object container)
assertValidLocalObject in interface ContainerHelpero - the instance to be verified.container - a Container instance for the request.getContainer(Object)public void assertValidRemoteObject(Object o, Object container)
assertValidRemoteObject in interface ContainerHelpero - the instance to be verified.container - a Container instance for the request.getContainer(Object)public void setCascadeDeleteAfterSuperEJBRemove(javax.ejb.EntityContext context)
setCascadeDeleteAfterSuperEJBRemove in interface ContainerHelpercontext - the EntityContext of the bean beeing removed.public void preSelect(Object container)
preSelect in interface ContainerHelpercontainer - a Container instance for the request.getContainer(Object)public PersistenceManagerFactory getPersistenceManagerFactory(Object container)
getPersistenceManagerFactory in interface ContainerHelpercontainer - a Container instance for the request.getContainer(Object)public int getNumericConverterPolicy(Object container)
getNumericConverterPolicy in interface ContainerHelpercontainer - a Container instance for the requestgetContainer(Object)public void beginInternalTransaction(PersistenceManager pm)
beginInternalTransaction in interface ContainerHelperpm - PersistenceManagerpublic void commitInternalTransaction(PersistenceManager pm)
commitInternalTransaction in interface ContainerHelperpm - PersistenceManagerpublic void rollbackInternalTransaction(PersistenceManager pm)
rollbackInternalTransaction in interface ContainerHelperpm - PersistenceManagerpublic Transaction suspendCurrentTransaction()
suspendCurrentTransaction in interface ContainerHelperpublic void resumeCurrentTransaction(Transaction tx)
resumeCurrentTransaction in interface ContainerHelpertx - - The javax.transaction.Transaction object that
represents the transaction to be resumed. If this object had been
returned by #suspendCurrentTransaction() call it will be null in
case calling thread was not associated with a transaction.Copyright © 2017. All rights reserved.