oracle.toplink.ejb.bmp
Class BMPWrapperPolicy
java.lang.Object
|
+--oracle.toplink.ejb.EJBWrapperPolicy
|
+--oracle.toplink.ejb.bmp.BMPWrapperPolicy
- All Implemented Interfaces:
- java.io.Serializable, WrapperPolicy
- public class BMPWrapperPolicy
- extends EJBWrapperPolicy
Purpose: Allow for EntityBean descriptors to store information about the bean properties.
- Since:
- TOPLink/Java 3.0
- See Also:
- Serialized Form
BMPWrapperPolicy(java.lang.String homeLookUpName,
java.lang.Class homeInterfaceClass,
java.lang.Class primaryKeyClass,
java.lang.Class remoteInterfaceClass,
java.util.Hashtable contextProperties)
This constructor creates a Wrapper policy for a particular bean class |
Type | Method |
void |
checkForNonCustomPrimaryKey(java.lang.Class primaryKeyClass)
Determine based on the primaryKeyClass whether this is a custom primary key |
java.lang.Object |
lookupRemoteForBean(java.lang.Object bean,
java.lang.Object primaryKeyObject,
Session session)
Return the remote from the home by primary key. |
java.lang.Object |
wrapObject(java.lang.Object bean,
Session session)
Wrap the bean with its remote. |
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 |
BMPWrapperPolicy
public BMPWrapperPolicy(java.lang.String homeLookUpName,
java.lang.Class homeInterfaceClass,
java.lang.Class primaryKeyClass,
java.lang.Class remoteInterfaceClass,
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.ClassRemoteInterfaceClass
- java.lang.Classproperties
- java.util.Hashtable This parameter contains the initial context properties
checkForNonCustomPrimaryKey
public void checkForNonCustomPrimaryKey(java.lang.Class primaryKeyClass)
- Determine based on the primaryKeyClass whether this is a custom primary key
lookupRemoteForBean
public java.lang.Object lookupRemoteForBean(java.lang.Object bean,
java.lang.Object primaryKeyObject,
Session session)
- Return the remote from the home by primary key.
Validate inheritance for the object.
wrapObject
public java.lang.Object wrapObject(java.lang.Object bean,
Session session)
- Wrap the bean with its remote.
- Following copied from interface:
oracle.toplink.descriptors.WrapperPolicy
- Parameters:
original,
- the object to be wrappedsession
- the session to wrap the object against.- Returns:
- java.lang.Object the wrapped object