Oracle Application Server TopLink API Reference
10g Release 2 (10.1.2)

B15903-01


oracle.toplink.ejb.bmp
Class BMPWrapperPolicy

java.lang.Object
  extended byoracle.toplink.ejb.EJBWrapperPolicy
      extended byoracle.toplink.ejb.bmp.BMPWrapperPolicy

All Implemented Interfaces:
java.io.Serializable, WrapperPolicy
Direct Known Subclasses:
BMPLocalWrapperPolicy

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

Field Summary

Fields inherited from interface oracle.toplink.descriptors.WrapperPolicy
Wrapping

Constructor Summary
BMPWrapperPolicy(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
void checkForNonCustomPrimaryKey(java.lang.Class primaryKeyClass)
Determine based on the primaryKeyClass whether this is a custom primary key
java.lang.Object lookupWrapperForBean(java.lang.Object bean, java.lang.Object primaryKeyObject, oracle.toplink.publicinterface.Session session)
Return the remote from the home by primary key.
java.lang.Object wrapObject(java.lang.Object bean, oracle.toplink.publicinterface.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

Constructor Detail

BMPWrapperPolicy

public BMPWrapperPolicy(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.String
homeInterfaceClass - java.lang.String
interfaceClass - java.lang.Class

Method Detail

checkForNonCustomPrimaryKey

public void checkForNonCustomPrimaryKey(java.lang.Class primaryKeyClass)
Determine based on the primaryKeyClass whether this is a custom primary key

lookupWrapperForBean

public java.lang.Object lookupWrapperForBean(java.lang.Object bean,
                                             java.lang.Object primaryKeyObject,
                                             oracle.toplink.publicinterface.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,
                                   oracle.toplink.publicinterface.Session session)
Wrap the bean with its remote.
Parameters:
session - the session to wrap the object against.
Returns:
java.lang.Object the wrapped object

Copyright © 1998, 2005 Oracle Corporation. All Rights Reserved.