Oracle Application Server TopLink API Reference
10g (9.0.4.3)

B10491-02

oracle.toplink.ejb.bmp
Class BMPLocalWrapperPolicy

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

All Implemented Interfaces:
java.io.Serializable, WrapperPolicy

public class BMPLocalWrapperPolicy
extends BMPWrapperPolicy

PUBLIC:

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

Field Summary

 

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

 

Constructor Summary
BMPLocalWrapperPolicy(java.lang.String homeLookUpName, java.lang.Class homeInterfaceClass, java.lang.Class primaryKeyClass, java.lang.Class interfaceClass, java.util.Hashtable contextProperties)
          PUBLIC: This constructor creates a Wrapper policy for a particular bean class

 

Method Summary
 java.lang.Object getPrimaryKeyFromObject(java.lang.Object object, oracle.toplink.publicinterface.Session session)
          INTERNAL: Get the primary key from this object through the methods in EJBObject
 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.

 

Methods inherited from class oracle.toplink.ejb.bmp.BMPWrapperPolicy
checkForNonCustomPrimaryKey, wrapObject

 

Methods inherited from class oracle.toplink.ejb.EJBWrapperPolicy
buildBeanFromPrimaryKey, buildPrimaryKeyFromBean, dumpPrimaryKeyIntoBean, getDescriptor, getHomeInterface, getHomeName, getPrimaryKeyClass, getRemoteInterface, hasCustomPrimaryKey, initialize, isTraversable, isWrapped, setDescriptor, setHasCustomPrimaryKey, setHomeInterface, setHomeName, setPrimaryKeyClass, setRemoteInterface, unwrapObject

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

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
PUBLIC: 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

getPrimaryKeyFromObject

public java.lang.Object getPrimaryKeyFromObject(java.lang.Object object,
                                                oracle.toplink.publicinterface.Session session)
INTERNAL: Get the primary key from this object through the methods in EJBObject
Overrides:
getPrimaryKeyFromObject in class EJBWrapperPolicy

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.
Overrides:
lookupWrapperForBean in class BMPWrapperPolicy

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