oracle.toplink.ejb.bmp
Class BMPLocalWrapperPolicy
java.lang.Object
oracle.toplink.ejb.EJBWrapperPolicy
oracle.toplink.ejb.bmp.BMPWrapperPolicy
oracle.toplink.ejb.bmp.BMPLocalWrapperPolicy
- All Implemented Interfaces:
- java.io.Serializable, WrapperPolicy
public class BMPLocalWrapperPolicy
- extends BMPWrapperPolicy
Purpose: Allow for EntityBean descriptors to store information about the bean properties.
BMPLocalWrapperPolicy should be used for local beans rather than remote beans.
- See Also:
- Serialized Form
Constructor Summary |
BMPLocalWrapperPolicy(java.lang.String homeLookUpName,
java.lang.Class homeInterfaceClass,
java.lang.Class primaryKeyClass,
java.lang.Class interfaceClass,
java.util.Hashtable contextProperties)
This constructor creates a Wrapper policy for a particular bean class |
Method Summary |
java.lang.Object |
lookupWrapperForBean(java.lang.Object bean,
java.lang.Object primaryKeyObject,
oracle.toplink.internal.sessions.AbstractSession session)
Return the remote from the home by primary key. |
Methods inherited from class oracle.toplink.ejb.EJBWrapperPolicy |
getHomeInterface, getHomeName, getPrimaryKeyClass, getRemoteInterface, hasCustomPrimaryKey, isTraversable, setHasCustomPrimaryKey, setHomeInterface, setHomeName, setPrimaryKeyClass, setRemoteInterface, unwrapObject |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BMPLocalWrapperPolicy
public BMPLocalWrapperPolicy(java.lang.String homeLookUpName,
java.lang.Class homeInterfaceClass,
java.lang.Class primaryKeyClass,
java.lang.Class interfaceClass,
java.util.Hashtable contextProperties)
throws ValidationException
- This constructor creates a Wrapper policy for a particular bean class
- Parameters:
homeLookUpName
- java.lang.StringhomeInterfaceClass
- java.lang.StringPrimaryKeyClass
- java.lang.ClassinterfaceClass
- java.lang.Classproperties
- java.util.Hashtable This parameter contains the initial context properties
- Throws:
ValidationException
lookupWrapperForBean
public java.lang.Object lookupWrapperForBean(java.lang.Object bean,
java.lang.Object primaryKeyObject,
oracle.toplink.internal.sessions.AbstractSession session)
- Return the remote from the home by primary key.
Validate inheritance for the object.
- Overrides:
lookupWrapperForBean
in class BMPWrapperPolicy